:root {
  --bg: #0b0f17;
  --bg-2: #0e1320;
  --surface: #161d2e;
  --surface-2: #1b2334;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #f6f8ff;
  --muted: #aab2c5;
  --primary: #2f6bff;
  --primary-600: #1e57e6;
  --primary-glow: rgba(47, 107, 255, 0.45);
  --radius: 16px;
  --maxw: 1140px;
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-head: "Montserrat", "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #6f9bff);
  display: grid; place-items: center; box-shadow: 0 4px 14px var(--primary-glow);
}
.logo .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 6px; }

/* Mobile dropdown menu */
.mobile-menu { display: none; flex-direction: column; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--border); background: rgba(11, 15, 23, 0.98); backdrop-filter: blur(12px); }
.mobile-menu a:not(.btn) { padding: 11px 2px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:not(.btn):hover { color: var(--fg); }
.mobile-menu .btn { width: 100%; margin-top: 4px; }
.mobile-menu.open { display: flex; }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { position: relative; padding: 80px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -150px; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow), transparent 60%); filter: blur(40px); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { margin: 22px 0 30px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 26px; display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

/* Hero visual */
.hero-card {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hero-card img { height: 520px; object-fit: cover; width: 100%; }
.metric {
  position: absolute; background: rgba(14,19,32,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.metric .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; }
.metric .ic svg { width: 20px; height: 20px; }
.metric strong { font-family: var(--font-head); font-size: 18px; display: block; }
.metric span { font-size: 12px; color: var(--muted); }
.metric.m1 { top: 24px; left: 24px; }
.metric.m2 { bottom: 26px; right: 24px; }

/* Sections */
section { padding: 70px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature bullets */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature .fic { width: 46px; height: 46px; border-radius: 12px; background: rgba(47,107,255,.15); display: grid; place-items: center; margin-bottom: 16px; }
.feature .fic svg { width: 24px; height: 24px; color: var(--primary); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); min-height: 360px; display: flex; align-items: flex-end; }
.plan img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: 0; }
.plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(11,15,23,.95)); z-index: 1; }
.plan-body { position: relative; z-index: 2; padding: 30px; }
.plan-body .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--primary); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.plan-body h3 { font-size: 26px; margin-bottom: 8px; }
.plan-body p { color: var(--muted); margin-bottom: 18px; max-width: 420px; }

/* Social proof band */
.band { background: linear-gradient(135deg, var(--primary), #1740b8); border-radius: 24px; padding: 50px 40px; text-align: center; }
.band h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.band p { font-size: 18px; opacity: .9; margin-top: 8px; }

/* App download */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 50px; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.store-badge { display: flex; align-items: center; gap: 10px; background: #000; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 18px; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { font-size: 11px; color: var(--muted); display: block; line-height: 1.2; }
.store-badge strong { font-size: 16px; font-family: var(--font-head); }

/* App showcase carousel */
.phone-row {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory;
  scrollbar-width: none; justify-content: flex-start;
}
.phone-row::-webkit-scrollbar { display: none; }
.phone { flex: 0 0 auto; scroll-snap-align: center; text-align: center; margin: 0; }
.phone-screen {
  width: 220px; border-radius: 30px; padding: 8px; background: #05070c;
  border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55);
  position: relative;
}
.phone-screen::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); z-index: 2;
}
.phone-screen img { width: 100%; border-radius: 24px; display: block; }
.phone figcaption { margin-top: 14px; font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--muted); }
.showcase-cta { text-align: center; margin-top: 20px; }
@media (min-width: 1100px) { .phone-row { justify-content: center; overflow-x: visible; flex-wrap: nowrap; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font-family: var(--font-head); font-weight: 600; font-size: 16px; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform .2s; color: var(--primary); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; color: var(--muted); }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.disclaimer { font-size: 12px; color: var(--muted); opacity: .7; margin-top: 16px; max-width: 720px; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 50px; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,23,.4), rgba(11,15,23,.92)); z-index: 1; }
.auth-visual .vcontent { position: relative; z-index: 2; }
.auth-visual h2 { font-size: 34px; font-weight: 800; max-width: 380px; }
.auth-visual p { color: var(--muted); margin-top: 12px; max-width: 360px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { margin-bottom: 30px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--fg); font-size: 15px; font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.18); }
.auth-msg { font-size: 14px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.auth-msg.error { display: block; background: rgba(255,70,70,.12); color: #ff8d8d; border: 1px solid rgba(255,70,70,.3); }
.auth-msg.success { display: block; background: rgba(47,107,255,.12); color: #8db4ff; border: 1px solid rgba(47,107,255,.3); }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.tabs { display: flex; background: var(--surface); border-radius: 12px; padding: 5px; margin-bottom: 26px; border: 1px solid var(--border); }
.tabs button { flex: 1; padding: 10px; border: 0; background: none; color: var(--muted); font-family: var(--font-head); font-weight: 600; border-radius: 8px; cursor: pointer; transition: all .15s; }
.tabs button.active { background: var(--primary); color: #fff; }

/* Dashboard */
.dash { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 480px; width: 100%; text-align: center; }
.dash-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #6f9bff); display: grid; place-items: center; margin: 0 auto 20px; font-size: 28px; font-family: var(--font-head); font-weight: 800; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card img { height: 380px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans, .download, .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .download { padding: 30px; }
  .band { padding: 36px 24px; }
}
