.home-prototype {
  position: relative;
  background: #0b1020;
  color: #fff;
  overflow-x: hidden;
}

.home-prototype a {
  color: inherit;
}

.home-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.home-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 24rem;
  height: 24rem;
  filter: blur(90px);
  opacity: 0.35;
}

.home-glow--left {
  top: 0;
  left: 0;
  background: #3b82f6;
}

.home-glow--right {
  top: 10rem;
  right: 0;
  background: #22d3ee;
}

.home-header,
.home-main,
.home-footer {
  position: relative;
  z-index: 1;
}

.home-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.home-header {
  padding: 24px 0 12px;
}

.home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.home-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #3b82f6 0%, #22d3ee 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.28);
}

.home-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  color: #aab3c9;
}

.home-nav a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.home-nav a:hover {
  color: #fff;
}

.home-lang-select {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  border-radius: 12px;
  outline: none;
}

.home-lang-select:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.home-hero {
  padding: 96px 0 72px;
  text-align: center;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.home-hero-desc {
  max-width: 52rem;
  color: #97a3bf;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.home-search-wrap {
  width: min(100%, 42rem);
  margin-top: 40px;
}

.home-search {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.home-search::placeholder {
  color: #8f99b2;
}

.home-search:focus {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.home-tools,
.home-why,
.home-faq {
  padding-bottom: 96px;
}

.home-section {
  margin-bottom: 48px;
}

.home-section:last-child {
  margin-bottom: 0;
}

.home-section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.home-card-grid--wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.home-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(4, 8, 20, 0.24);
}

.home-tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 184px;
  padding: 24px;
  border-radius: 28px;
  text-decoration: none;
}

.home-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: #8bc4ff;
}

.home-tool-icon svg {
  width: 24px;
  height: 24px;
}

.home-tool-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

.home-tool-card p {
  color: #8f99b2;
  line-height: 1.6;
}

.home-empty {
  padding: 20px 22px;
  border-radius: 24px;
  color: #8f99b2;
}

.home-empty[hidden] {
  display: none;
}

.home-why h2,
.home-faq h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: #fff;
}

.home-feature-grid,
.home-faq-list {
  display: grid;
  gap: 24px;
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-faq-list {
  grid-template-columns: 1fr;
}

.home-feature-card,
.home-faq-item {
  border-radius: 28px;
  padding: 24px;
}

.home-feature-card h3,
.home-faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-feature-card p,
.home-faq-item p {
  color: #97a3bf;
  line-height: 1.7;
}

.home-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  color: #97a3bf;
}

.home-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.home-footer a {
  text-decoration: none;
}

.home-footer a:hover {
  color: #fff;
}

.home-floating-qr {
  position: fixed;
  right: 16px;
  bottom: 30vh;
  z-index: 30;
}

.home-floating-qr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 16px 36px rgba(7, 12, 24, 0.3);
  user-select: none;
  animation: homeQrFloat 3.2s ease-in-out infinite;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.home-floating-qr-toggle:hover,
.home-floating-qr.is-open .home-floating-qr-toggle,
.home-floating-qr:focus-within .home-floating-qr-toggle {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 22px 42px rgba(7, 12, 24, 0.36);
}

.home-floating-qr-toggle svg {
  width: 22px;
  height: 22px;
  stroke: #67e8f9;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.home-floating-qr-toggle span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-floating-qr-card {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 0;
  width: 228px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 16, 32, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px rgba(6, 10, 20, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.98);
  transform-origin: right center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
}

.home-floating-qr:hover .home-floating-qr-card,
.home-floating-qr.is-open .home-floating-qr-card,
.home-floating-qr:focus-within .home-floating-qr-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.home-floating-qr-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.home-floating-qr-card-subtitle {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #9fb0cc;
}

.home-floating-qr-image {
  display: block;
  width: 100%;
  margin-top: 14px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

@keyframes homeQrFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1200px) {
  .home-card-grid,
  .home-card-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-header-inner,
  .home-footer-inner {
    flex-direction: column;
  }

  .home-card-grid,
  .home-card-grid--wide,
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-shell {
    width: min(100% - 32px, 1280px);
  }

  .home-header {
    padding-top: 20px;
  }

  .home-nav {
    justify-content: center;
    gap: 16px;
    font-size: 0.95rem;
  }

  .home-hero {
    padding: 72px 0 56px;
  }

  .home-card-grid,
  .home-card-grid--wide,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-card,
  .home-feature-card,
  .home-faq-item {
    border-radius: 24px;
  }

  .home-floating-qr {
    right: 12px;
    bottom: 20px;
  }

  .home-floating-qr-toggle {
    min-width: auto;
    padding: 12px;
    border-radius: 16px;
  }

  .home-floating-qr-toggle span {
    display: none;
  }

  .home-floating-qr-card {
    right: 0;
    bottom: calc(100% + 12px);
    width: min(228px, calc(100vw - 24px));
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;
  }

  .home-floating-qr:hover .home-floating-qr-card,
  .home-floating-qr.is-open .home-floating-qr-card,
  .home-floating-qr:focus-within .home-floating-qr-card {
    transform: translateY(0) scale(1);
  }
}
