:root {
  --bg: #0A0B0E;
  --surface: #15171D;
  --surface-elevated: #1C1F27;
  --glass: rgba(28, 31, 39, 0.55);
  --hairline: #2A2D37;
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --text-primary: #F5F1E8;
  --text-secondary: #9B9CA8;
  --text-tertiary: #6C6E7A;
  --gold: #E8B04B;
  --gold-bright: #FFCE73;
  --gold-dim: #B98A38;
  --blue: #4E8FE8;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* ---------- Nav ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark img { width: 26px; height: 26px; border-radius: 7px; }
.wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline-soft);
}
.lang-switch a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch a.active { color: #16130A; background: var(--gold); }

.mobile-menu .lang-switch {
  padding: 4px;
  margin-top: 8px;
  align-self: flex-start;
}
.mobile-menu .lang-switch a { font-size: 13px; padding: 7px 12px; }

@media (max-width: 760px) {
  .nav-right .lang-switch { display: none; }
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-soft);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--text-primary); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--hairline-soft);
}
.mobile-menu a {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
nav.top.menu-open .mobile-menu { display: flex; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #16130A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px rgba(232, 176, 75, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 12px 28px rgba(232, 176, 75, 0.35); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hairline-soft);
  color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 16px; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-gold {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232, 176, 75, 0.35), transparent 70%);
  top: -180px; left: 50%;
  transform: translateX(-60%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-blue {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(78, 143, 232, 0.22), transparent 70%);
  top: 40px; right: -120px;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 30px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(232, 176, 75, 0.1);
  border: 1px solid rgba(232, 176, 75, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 0 0;
}
.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.btn-primary svg, .btn-ghost svg { width: 17px; height: 17px; }

/* ---------- Phone stage ---------- */
.phone-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 72px 0 20px;
  perspective: 1400px;
}
.phone-stage .phone {
  width: clamp(120px, 24vw, 240px);
  height: auto;
  flex-shrink: 0;
  border-radius: 8%;
}
.phone-stage .phone-center {
  width: clamp(150px, 30vw, 300px);
  z-index: 2;
  margin: 0 clamp(-20px, -4vw, -10px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(232, 176, 75, 0.15));
  animation: float 6s ease-in-out infinite;
}
.phone-stage .phone-side {
  opacity: 0.7;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) saturate(0.9) brightness(0.85);
}
.phone-stage .phone-left {
  transform: rotateY(18deg) rotateZ(-4deg) translateY(30px);
  animation: float 7s ease-in-out infinite 0.4s;
}
.phone-stage .phone-right {
  transform: rotateY(-18deg) rotateZ(4deg) translateY(30px);
  animation: float 7s ease-in-out infinite 0.8s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone-stage .phone-left, .phone-stage .phone-right { animation-name: float-side; }
@keyframes float-side {
  0%, 100% { transform: rotateY(18deg) rotateZ(-4deg) translateY(30px); }
  50% { transform: rotateY(18deg) rotateZ(-4deg) translateY(16px); }
}
.phone-stage .phone-right { animation-name: float-side-r; }
@keyframes float-side-r {
  0%, 100% { transform: rotateY(-18deg) rotateZ(4deg) translateY(30px); }
  50% { transform: rotateY(-18deg) rotateZ(4deg) translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  .glow-gold, .glow-blue, .phone-stage .phone { animation: none !important; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  margin-top: 36px;
}
.stats-strip .wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  flex: 1 1 140px;
  text-align: center;
  padding: 22px 12px;
  border-left: 1px solid var(--hairline-soft);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.stat .label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* ---------- Feature rows ---------- */
.section { padding: 88px 0; position: relative; }

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--hairline-soft);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature-row:first-of-type { border-top: none; padding-top: 0; }
.feature-row.in-view { opacity: 1; transform: translateY(0); }
.feature-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-media {
  position: relative;
  display: flex;
  justify-content: center;
}
.feature-media .glow {
  width: 320px; height: 320px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(70px);
  opacity: 0.7;
  animation: none;
}
.feature-media img {
  position: relative;
  z-index: 1;
  width: min(260px, 70%);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
/* Some source screenshots have a lot of empty space below the content (e.g. a
   short list) — clipping to the content area and fading the cut edge reads as
   an intentional "bleed" rather than a broken, mostly-blank phone. A wrapper
   (not object-fit) keeps the phone's own width/aspect intact and only trims
   the excess height off the bottom. */
.feature-media .crop-wrap {
  position: relative;
  z-index: 1;
  width: min(260px, 70%);
  height: 235px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.feature-media .crop-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-copy .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(232, 176, 75, 0.1);
  border: 1px solid rgba(232, 176, 75, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 18px;
}
.feature-copy h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.feature-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 46ch;
}
.feature-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.feature-copy li svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 760px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 48px 0;
  }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy,
  .feature-row .feature-media,
  .feature-row .feature-copy { order: unset; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .feature-copy .tag { }
  .feature-copy li { text-align: left; }
}

/* ---------- Lines strip ---------- */
.lines-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.line-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline-soft);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.line-chip:hover { border-color: rgba(232, 176, 75, 0.4); color: var(--text-primary); }

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative;
  margin: 0 20px 88px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 28px;
  padding: 72px 24px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(232, 176, 75, 0.08), rgba(21, 23, 29, 0.4));
  border: 1px solid rgba(232, 176, 75, 0.2);
}
.cta-band h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.cta-band p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 28px;
}

/* ---------- Legal pages ---------- */
.legal-wrap { padding: 56px 0; }
.legal h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.legal .updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 36px;
}
.legal h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  margin: 30px 0 8px;
  color: var(--gold);
}
.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15px;
}
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}
footer .legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  margin-left: 16px;
}
footer .legal-links a:hover { color: var(--gold); }

@media (max-width: 520px) {
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer .legal-links a { margin-left: 0; margin-right: 16px; }
  .stat { flex: 1 1 45%; }
  .phone-stage { padding-top: 48px; }
  .cta-band { padding: 48px 20px; margin: 0 16px 64px; }
  .section { padding: 64px 0; }
}
