/* ─── TOKENS DARK (default) ──────────────────────────── */
:root,
[data-theme="dark"] {
  --bg:          #0D0A1A;
  --surface:     #180E30;
  --surface2:    #221545;
  --purple:      #5018BF;
  --purple-lt:   #7B3FE4;
  --purple-dk:   #3A0E8A;
  --purple-dim:  #5018BF28;
  --cream:       #F5DEB3;
  --cream-dim:   #F5DEB318;
  --cream-muted: #C4AE85;
  --muted:       #9B8FBB;
  --border:      #ffffff0f;
  --border-hl:   #5018BF60;
  --shadow:      #00000060;
  --nav-bg:      #0d0a1acc;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ─── TOKENS LIGHT ───────────────────────────────────── */
[data-theme="light"] {
  --bg:          #F5F0FF;
  --surface:     #EDE5FF;
  --surface2:    #E0D4FF;
  --purple:      #5018BF;
  --purple-lt:   #6B2FD9;
  --purple-dk:   #3A0E8A;
  --purple-dim:  #5018BF18;
  --cream:       #2A1050;
  --cream-dim:   #2A105018;
  --cream-muted: #4A2880;
  --muted:       #7A60A0;
  --border:      #5018BF18;
  --border-hl:   #5018BF40;
  --shadow:      #5018BF20;
  --nav-bg:      #F5F0FFee;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── CONTAINER ──────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--purple);
  color: #F5DEB3;
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 0 24px #5018BF40;
}
.btn--primary:hover { background: var(--purple-lt); transform: translateY(-2px); box-shadow: 0 0 36px #5018BF60; }
.btn--cream {
  background: var(--purple-dk);
  color: #F5DEB3;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}
[data-theme="light"] .btn--cream { background: var(--purple); color: #F5DEB3; }
.btn--cream:hover { background: var(--purple); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  padding: 14px 28px;
  font-size: 15px;
  border: 1.5px solid var(--border-hl);
}
.btn--ghost:hover { border-color: var(--purple-lt); color: var(--purple-lt); }
.btn--sm { background: var(--purple); color: #F5DEB3; padding: 9px 18px; font-size: 13px; }
.btn--sm:hover { background: var(--purple-lt); }
.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ─── THEME TOGGLE ───────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-hl);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--cream);
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--purple-dim); border-color: var(--purple-lt); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav__inner {
  max-width: 1140px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.5px; color: var(--cream); }
.nav__logo span { color: var(--purple-lt); }
.nav__right { display: flex; align-items: center; gap: 12px; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, #5018BF22 0%, transparent 65%);
  pointer-events: none;
}
[data-theme="light"] .hero::before { background: radial-gradient(circle, #5018BF14 0%, transparent 65%); }
.hero__inner {
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px;
}
.hero__eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 12px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--purple-lt); background: var(--purple-dim);
  border: 1px solid var(--border-hl); padding: 6px 14px;
  border-radius: 100px; margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(52px, 7vw, 90px);
  font-weight: 700; line-height: 1; letter-spacing: -2px; margin-bottom: 12px; color: var(--cream);
}
.hero__title span { color: var(--purple-lt); }
.hero__slogan {
  font-family: var(--font-display); font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500; letter-spacing: 4px; color: var(--muted); margin-bottom: 20px;
}
.hero__desc { font-size: 17px; color: var(--muted); max-width: 460px; margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__stores-label {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase; font-family: var(--font-display); margin-right: 4px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-hl);
  border-radius: 10px; padding: 10px 18px; transition: all .2s;
  cursor: pointer; opacity: 0.65; position: relative;
}
.store-btn:hover { border-color: var(--purple-lt); opacity: 1; }
.store-btn__icon svg { width: 22px; height: 22px; }
.store-btn__text { text-align: left; line-height: 1.2; }
.store-btn__sub { font-size: 10px; color: var(--muted); display: block; }
.store-btn__name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--cream); }
.store-btn__badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--purple); color: #F5DEB3;
  font-size: 9px; font-weight: 700; font-family: var(--font-display);
  letter-spacing: 0.5px; padding: 2px 6px; border-radius: 100px;
}
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__logo-box {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.hero__logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--border-hl); animation: spin 20s linear infinite;
}
.hero__logo-ring::after {
  content: ''; position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; background: var(--purple-lt); border-radius: 50%;
  transform: translateX(-50%); box-shadow: 0 0 12px var(--purple-lt);
}
.hero__logo-ring-2 {
  position: absolute; inset: 24px; border-radius: 50%;
  border: 1px dashed #5018BF30; animation: spin 35s linear infinite reverse;
}
.logo-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #5018BF18 0%, transparent 60%); }
.moto-svg { width: 240px; position: relative; z-index: 1; filter: drop-shadow(0 0 20px #5018BF60); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero__route { width: 100%; margin-top: 40px; overflow: hidden; }
.hero__route svg { width: 100%; height: 40px; }
.route-line { stroke-dashoffset: 1000; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ─── TOWN BADGE ─────────────────────────────────────── */
.town-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-hl);
  border-radius: 100px; padding: 8px 16px; margin-bottom: 48px;
  font-family: var(--font-display); font-size: 13px; color: var(--muted);
}
.town-badge__dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.town-badge strong { color: var(--cream); font-weight: 600; }

/* ─── SECTION COMMONS ────────────────────────────────── */
.section-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 12px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--purple-lt); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 52px; color: var(--cream);
}

/* ─── AUDIENCE ───────────────────────────────────────── */
.audience { padding: 100px 24px; background: var(--surface); }
.audience .container { text-align: center; }
.audience__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: left; }
.audience-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.audience-card:hover { transform: translateY(-4px); }
.audience-card--client { border-color: var(--border-hl); }
.audience-card--client:hover { border-color: var(--purple-lt); }
.audience-card--commerce { border-color: #5018BF30; }
.audience-card--commerce:hover { border-color: var(--cream-muted); }
.audience-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
}
.audience-card--client::before { background: radial-gradient(circle, #5018BF14 0%, transparent 70%); }
.audience-card--commerce::before { background: radial-gradient(circle, #5018BF10 0%, transparent 70%); }
.audience-card__tag {
  display: inline-block; font-family: var(--font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 24px;
}
.audience-card--client .audience-card__tag {
  background: var(--purple-dim); color: var(--purple-lt); border: 1px solid var(--border-hl);
}
.audience-card--commerce .audience-card__tag {
  background: var(--purple-dim); color: var(--muted); border: 1px solid var(--border);
}
.audience-card__emoji { font-size: 44px; margin-bottom: 16px; }
.audience-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; color: var(--cream); }
.audience-card > p { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.65; }
.audience-card__list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.audience-card__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--cream-muted); line-height: 1.5; }
.audience-card__list li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  background: var(--purple-dim); border: 1.5px solid var(--purple-lt);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9l3 3 5-5' stroke='%237B3FE4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ─── FEATURES ───────────────────────────────────────── */
.features { padding: 100px 24px; }
.features .container { text-align: center; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px; transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border-hl); transform: translateY(-4px); }
.feature-card__icon {
  width: 48px; height: 48px; background: var(--purple-dim); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--cream); }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── SCREENSHOTS ────────────────────────────────────── */
.screenshots { padding: 100px 24px; background: var(--surface); }
.screenshots__list { display: flex; flex-direction: column; gap: 80px; }
.screenshot-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.screenshot-item--reverse { direction: rtl; }
.screenshot-item--reverse > * { direction: ltr; }
.placeholder-screen {
  background: var(--bg); border: 1px solid var(--border-hl);
  border-radius: var(--radius-lg); aspect-ratio: 16/10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted);
}
.placeholder-screen span { font-size: 48px; }
.placeholder-screen p { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--cream); }
.placeholder-screen small { font-size: 12px; color: var(--muted); }
.screenshot-item__num { font-family: var(--font-display); font-size: 60px; font-weight: 700; line-height: 1; display: block; margin-bottom: 8px; color: #5018BF28; }
.screenshot-item__text h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; color: var(--cream); }
.screenshot-item__text p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 440px; }

/* ─── HOW ─────────────────────────────────────────────── */
.how { padding: 100px 24px; text-align: center; }
.how__steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.how__step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px; max-width: 260px;
  text-align: center; transition: border-color .2s;
}
.how__step:hover { border-color: var(--border-hl); }
.how__step-num {
  width: 52px; height: 52px; background: var(--purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #F5DEB3; margin: 0 auto 20px; box-shadow: 0 0 20px #5018BF50;
}
.how__step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--cream); }
.how__step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.how__connector { flex: 0 0 80px; opacity: 0.4; }
.how__connector svg { width: 80px; }

/* ─── DOWNLOAD ───────────────────────────────────────── */
.download { padding: 100px 24px; background: var(--surface); text-align: center; }
.download__inner { max-width: 680px; margin: 0 auto; }
.download__stores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.store-btn--lg { padding: 14px 24px; opacity: 0.55; border-radius: 12px; }
.store-btn--lg .store-btn__sub { font-size: 11px; }
.store-btn--lg .store-btn__name { font-size: 16px; }
.store-btn--lg .store-btn__icon svg { width: 28px; height: 28px; }
.download__note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ─── CTA ─────────────────────────────────────────────── */
.cta { padding: 100px 24px; }
.cta__inner {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border-hl);
  border-radius: 24px; padding: 64px 48px; position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px; background: radial-gradient(circle, #5018BF18 0%, transparent 70%); pointer-events: none;
}
.cta__inner h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px; margin-bottom: 14px; color: var(--cream); }
.cta__inner p { font-size: 17px; color: var(--muted); margin-bottom: 36px; }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer__inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--purple-lt); }

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stores { justify-content: center; }
  .hero__visual { display: none; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .screenshot-item { grid-template-columns: 1fr; }
  .screenshot-item--reverse { direction: ltr; }
  .how__connector { display: none; }
  .how__steps { flex-direction: column; align-items: center; gap: 20px; }
  .audience__grid { grid-template-columns: 1fr; }
  .town-badge { display: none; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .cta__inner { padding: 40px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; align-items: center; }
  .audience-card { padding: 28px 22px; }
}
