:root {
  color-scheme: dark;
  --bg-top: #0a0b0e;
  --bg-mid: #111318;
  --bg-end: #17191e;
  --panel: #14161b;
  --text: #f7f8fa;
  --muted: rgba(247, 248, 250, 0.66);
  --soft: rgba(247, 248, 250, 0.08);
  --soft-strong: rgba(247, 248, 250, 0.14);
  --border: rgba(247, 248, 250, 0.14);
  --accent: #4da6ff;
  --accent-strong: #cfe6ff;
  --accent-soft: rgba(77, 166, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.4);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent {
  color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2f7fd6);
  color: #051324;
  box-shadow: 0 8px 24px -8px rgba(77, 166, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(77, 166, 255, 0.65);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Hero */

.hero {
  padding: 64px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero mockup */

.hero-visual {
  min-width: 0;
  perspective: 1400px;
}

.mockup-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77, 166, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #14161b 0%, #0d0f13 100%);
  box-shadow: 0 40px 80px -32px var(--shadow);
  padding: 18px;
  transform: rotateY(-6deg) rotateX(2deg);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
}

.mockup-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.mockup-tab.is-active {
  background: var(--accent);
  color: #051324;
  font-weight: 600;
}

.mockup-search {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mockup-card {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: linear-gradient(160deg, hsl(var(--h) 45% 34%), hsl(var(--h) 55% 14%));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

.mockup-card.is-selected {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--accent), 0 12px 24px -8px rgba(77, 166, 255, 0.5);
}

.mockup-hints {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--soft);
}

.mockup-hints span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--soft-strong);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
}

/* Trust strip */

.trust-strip {
  padding: 8px 0 64px;
  text-align: center;
}

.trust-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  font-weight: 600;
  color: var(--text);
}

/* Section heading */

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Features */

.features {
  padding: 96px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--soft);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.is-reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-copy p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.mini-card {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #14161b, #0d0f13);
  padding: 20px;
  box-shadow: 0 24px 48px -28px var(--shadow);
}

.mini-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mini-tabs span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.76rem;
  color: var(--muted);
}

.mini-tabs span.is-active {
  background: var(--accent);
  color: #051324;
  font-weight: 600;
}

.mini-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(160deg, hsl(var(--h) 45% 34%), hsl(var(--h) 55% 14%));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-cover.has-download::after {
  content: "↓";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #051324;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controller-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.controller-legend .legend-row .glyph {
  min-width: 44px;
  flex: none;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft);
  font-size: 0.9rem;
}

.download-row:last-child {
  border-bottom: none;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.status-muted {
  background: var(--soft-strong);
  color: var(--muted);
}

.status-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-done {
  background: rgba(109, 255, 143, 0.16);
  color: #a3ffc0;
}

.theme-card {
  text-align: center;
}

.theme-swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw-bg);
  border: 2px solid var(--sw-accent);
}

.theme-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.local-card .local-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.local-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--soft);
  font-size: 0.82rem;
  color: var(--accent-strong);
}

/* How it works */

.how-it-works {
  padding: 96px 0;
  background: rgba(255, 255, 255, 0.02);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps li {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #14161b, #0d0f13);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* FAQ */

.faq {
  padding: 96px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted);
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* Final CTA */

.final-cta {
  padding: 96px 0 120px;
}

.final-cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77, 166, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #14161b, #0d0f13);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
}

.final-cta p {
  margin-top: 14px;
  color: var(--muted);
}

.final-cta .btn {
  margin-top: 28px;
}

.final-cta .hero-note {
  margin-top: 16px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--soft);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .faq-answer,
  .site-header {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .mockup-frame {
    transform: none;
  }

  .feature-row,
  .feature-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .feature-row .feature-copy {
    order: 1;
  }

  .feature-row .feature-visual {
    order: 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-small {
    display: none;
  }

  .mockup-topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .mockup-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mockup-grid .mockup-card:nth-child(9),
  .mockup-grid .mockup-card:nth-child(10) {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 40px 0 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-list {
    gap: 10px 20px;
    font-size: 0.9rem;
  }

  .mini-covers {
    grid-template-columns: repeat(4, 1fr);
  }
}
