/* ── Design tokens ── */
:root {
  --bg: #08010b;
  --bg-alt: #0f0515;
  --bg-card: #110218;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,.7);
  --text-dim: rgba(255,255,255,.55);
  --border: rgba(255,255,255,.1);
  --border-hover: rgba(255,255,255,.18);
  --surface: rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.07);
  --blue: #005AE0;
  --violet: #970be1;
  --grad: linear-gradient(129deg, var(--blue) 0%, var(--violet) 100%);
  --nav-h: 72px;
  --page: 64px;
  --max: 1280px;
  --radius: 12px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-card: #f0ecf5;
  --text: #08010b;
  --text-muted: rgba(8,1,11,.7);
  --text-dim: rgba(8,1,11,.55);
  --border: rgba(8,1,11,.1);
  --border-hover: rgba(8,1,11,.18);
  --surface: rgba(8,1,11,.04);
  --surface-hover: rgba(8,1,11,.07);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }
.section { padding: 112px 0; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 11px 26px; border-radius: 8px; transition: opacity .2s, transform .15s; cursor: pointer; }
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; border: none; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled { background: rgba(8,1,11,.85); backdrop-filter: blur(16px); box-shadow: 0 1px 24px rgba(0,0,0,.35); }
[data-theme="light"] #nav.scrolled { background: rgba(255,255,255,.85); }
.nav-inner { display: flex; align-items: center; height: var(--nav-h); gap: 32px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-size: 20px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Lang dropdown */
.lang-wrapper { position: relative; }
#langBtn { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-muted); padding: 0; transition: color .2s; }
#langBtn:hover { color: var(--text); }
#langDropdown { position: absolute; top: calc(100% + 12px); right: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; min-width: 130px; display: none; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.2); overflow: hidden; z-index: 999; }
#langDropdown.open { display: flex; }
.lang-option { padding: 12px 16px; font-size: 14px; color: var(--text); text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; transition: background .15s; }
.lang-option:hover { background: var(--surface-hover); }

/* Theme toggle */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: all .2s; }
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-hover); }

/* Mobile hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); z-index: 199; padding: 32px var(--page); flex-direction: column; gap: 8px; overflow-y: auto; }
.nav-drawer.open { display: flex; }
.nav-drawer a, .nav-drawer button { font-size: 18px; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; background: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,90,224,.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(151,11,225,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; margin-bottom: 28px; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.hero-title { font-family: 'Roboto', sans-serif; font-size: clamp(42px, 5.5vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-title span { display: block; }
.hero-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 40px; max-width: 500px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-note { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.hero-note svg { flex-shrink: 0; }

/* Quote card */
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-globe { width: 100%; max-width: 480px; aspect-ratio: 1; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.hero-globe-art {
  width: 280px; height: 280px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue) 0deg, var(--violet) 120deg, #1a0535 240deg, var(--blue) 360deg);
  opacity: .7;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quote-card {
  position: absolute;
  bottom: 28px; left: -40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  width: 280px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.qc-title { font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.qc-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.qc-row:last-of-type { border-bottom: none; }
.qc-row.total { color: var(--text); font-weight: 600; font-size: 14px; }
.qc-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,90,224,.12); border: 1px solid rgba(0,90,224,.25); border-radius: 100px; padding: 5px 12px; font-size: 12px; color: #60a5fa; margin-top: 12px; }
.qc-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

/* ── Stats ── */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Roboto', sans-serif; font-size: 42px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-muted); }

/* ── Steps ── */
.steps-header { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.section-title { font-family: 'Roboto', sans-serif; font-size: clamp(28px, 3.5vw, 48px); font-weight: 400; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-muted); line-height: 1.6; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.step-card { background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; gap: 16px; transition: background .2s; }
.step-card:hover { background: var(--surface-hover); }
.step-num { font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: .06em; }
.step-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.step-icon svg { width: 24px; height: 24px; }
.step-h { font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; line-height: 1.4; }
.step-p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }

/* ── App preview / Features ── */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.features-left { display: flex; flex-direction: column; gap: 40px; }
.feature-item { display: flex; gap: 20px; }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-h { font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.feature-p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.screenshots-wrap { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); aspect-ratio: 9/16; max-width: 360px; margin: 0 auto; }
.screenshots-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ss-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(0,90,224,.1) 0%, rgba(151,11,225,.1) 100%); }
.ss-placeholder span { font-size: 48px; }

/* Screenshot carousel dots */
.ss-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.ss-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .3s, width .3s; }
.ss-dot.active { background: var(--blue); width: 20px; border-radius: 3px; }

/* ── Demo section ── */
.demo-wrap { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.demo-header { padding: 48px 48px 32px; }
.demo-player { position: relative; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.demo-player-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,90,224,.2) 0%, rgba(151,11,225,.2) 100%); }
.demo-play-btn { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.demo-play-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.demo-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.demo-steps { display: flex; gap: 0; border-top: 1px solid var(--border); }
.demo-step { flex: 1; padding: 20px 24px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.demo-step:last-child { border-right: none; }
.demo-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.demo-caption { padding: 20px 48px; font-size: 14px; color: var(--text-dim); text-align: center; border-top: 1px solid var(--border); }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testi-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: border-color .2s, transform .2s; }
.testi-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.testi-stars { display: flex; gap: 3px; }
.testi-star { color: #f59e0b; font-size: 14px; }
.testi-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; flex: 1; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 13px; color: var(--text-dim); }

/* ── Benefits / Why Us ── */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; margin-top: 56px; }
.benefit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: border-color .2s, background .2s; }
.benefit-card:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.benefit-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.benefit-card-icon svg { width: 20px; height: 20px; }
.benefit-card-h { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.benefit-card-p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-list { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; cursor: pointer; transition: background .15s; }
.faq-q:hover { background: var(--surface-hover); }
.faq-q-text { font-size: 16px; font-weight: 600; color: var(--text); flex: 1; }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 28px 24px; }
.faq-a.open { display: block; }
.faq-a-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── CTA ── */
.cta-section { background: var(--bg-alt); border-radius: 24px; margin: 0 var(--page); padding: 80px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; border: 1px solid var(--border); }
.cta-title { font-family: 'Roboto', sans-serif; font-size: clamp(28px, 3.5vw, 48px); font-weight: 400; line-height: 1.2; margin-bottom: 20px; }
.cta-desc { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-visual { aspect-ratio: 1; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.cta-globe { width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(from 0deg, var(--blue) 0deg, var(--violet) 180deg, var(--blue) 360deg); opacity: .5; animation: spin 24s linear infinite; }

/* ── Footer ── */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 112px; padding: 72px 0 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand { max-width: 300px; }
.footer-brand-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.footer-nav-group { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social { width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.footer-social:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.footer-social svg { width: 16px; height: 16px; }
.footer-divider { height: 1px; background: var(--border); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 32px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); text-decoration: underline; transition: color .2s; }
.footer-legal a:hover { color: var(--text); }

/* ── Back to top ── */
#backToTop { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; z-index: 300; border: none; cursor: pointer; }
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-3px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --page: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; }
  .hero-visual { order: -1; }
  .hero-globe { max-width: 360px; }
  .quote-card { left: auto; right: -20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; gap: 48px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-section { grid-template-columns: 1fr; gap: 40px; margin: 0 var(--page); padding: 56px 40px; }
  .demo-steps { flex-wrap: wrap; }
  .demo-step { min-width: 50%; }
}
@media (max-width: 768px) {
  :root { --page: 20px; --nav-h: 64px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { padding: 48px 0; }
  .hero-title { font-size: 36px; }
  .steps-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .benefit-cards { grid-template-columns: 1fr; }
  .cta-section { margin: 0; border-radius: 0; padding: 56px var(--page); border-left: none; border-right: none; }
  .cta-visual { display: none; }
  footer { margin-top: 72px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .demo-header { padding: 32px 24px 20px; }
  .demo-steps { display: grid; grid-template-columns: 1fr 1fr; }
  .demo-step { border-bottom: 1px solid var(--border); }
  .demo-caption { padding: 16px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .quote-card { position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 24px; }
  .hero-globe { aspect-ratio: 4/3; }
  .faq-q { padding: 18px 20px; }
  .faq-a { padding: 0 20px 20px; }
}
