:root {
  --bg: #09090B;
  --bg-elev: #18181B;
  --surface: #27272A;
  --border: #3F3F46;
  --text: #FAFAFA;
  --text-muted: #D4D4D8;
  --text-dim: #A1A1AA;
  --accent: #818CF8;
  --accent-strong: #6366F1;
  --accent-soft: #A5B4FC;
  --accent-glow: rgba(129, 140, 248, 0.18);
  --emerald: #34D399;
  --sky: #38BDF8;
  --violet: #A78BFA;
  --amber: #FBBF24;
  --shadow-hero: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --max-w: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: 24px;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-elev: #FAFAFA;
  --surface: #F4F4F5;
  --border: #E4E4E7;
  --text: #18181B;
  --text-muted: #3F3F46;
  --text-dim: #71717A;
  --accent: #4F46E5;
  --accent-strong: #4338CA;
  --accent-soft: #6366F1;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --emerald: #059669;
  --sky: #0284C7;
  --violet: #7C3AED;
  --amber: #D97706;
  --shadow-hero: 0 30px 80px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
}
.nav-end { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-strong); color: #FFFFFF; }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.94; color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 104px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(34px, 6.4vw, 64px);
  color: var(--text);
  overflow-wrap: break-word;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: min(46ch, 100%);
}
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 32px 24px 72px; }
  .hero-visual { order: -1; }
}

/* ---------- Showcase (creative phone + floating cards) ---------- */
.hero-visual { display: flex; justify-content: center; }
.showcase {
  position: relative;
  width: min(360px, 100%);
  display: flex;
  justify-content: center;
  padding: 28px 0;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  z-index: 0;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #1f1f23, #0a0a0b);
  border-radius: 42px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hero), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #0E0E10;
  color: #FAFAFA;
  padding: 18px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(250, 250, 250, 0.6); letter-spacing: 0.08em;
  padding: 0 6px 4px;
}
.screen-greeting { font-size: 14px; color: rgba(250, 250, 250, 0.7); padding: 0 6px; }
.screen-card {
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screen-label { font-size: 10px; letter-spacing: 0.18em; color: rgba(250, 250, 250, 0.55); }
.screen-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #FAFAFA; }
.screen-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.screen-stats > div {
  background: #27272A; padding: 8px 10px; border-radius: 8px;
  display: flex; flex-direction: column;
}
.screen-stats span { font-size: 9px; color: rgba(250, 250, 250, 0.55); letter-spacing: 0.1em; }
.screen-stats strong { font-size: 13px; margin-top: 2px; color: #FAFAFA; }
.screen-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #18181B; padding: 10px 12px; border-radius: 10px; font-size: 13px;
}
.screen-row span { color: rgba(250, 250, 250, 0.7); }
.screen-row strong { color: #FAFAFA; }
.screen-insight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insight-pill {
  font-size: 9px; letter-spacing: 0.18em; color: #A5B4FC; align-self: flex-start;
  background: rgba(99, 102, 241, 0.18); padding: 3px 8px; border-radius: 999px;
}
.screen-insight p { font-size: 12px; color: #FAFAFA; line-height: 1.4; }

/* Floating cards orbiting the phone */
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-hero);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.float-card .fc-icon svg { width: 16px; height: 16px; }
.float-card .fc-text { display: flex; flex-direction: column; line-height: 1.25; }
.float-card .fc-label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.float-card .fc-value { font-size: 13px; font-weight: 600; color: var(--text); }
.fc-insight { top: 8%; right: -10%; max-width: 190px; animation-delay: -1s; }
.fc-insight .fc-icon { background: var(--accent-glow); color: var(--accent); }
.fc-networth { bottom: 16%; left: -14%; animation-delay: -3s; }
.fc-networth .fc-icon { background: color-mix(in srgb, var(--emerald) 16%, transparent); color: var(--emerald); }
.fc-voice { bottom: -2%; right: -4%; animation-delay: -2s; }
.fc-voice .fc-icon { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--violet); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 560px) {
  .showcase { padding: 16px 0; }
  .float-card { padding: 10px 12px; }
  .float-card .fc-value { font-size: 12px; }
  /* The right-edge cards clip on narrow screens — the phone screen already
     carries the showcase, so keep only the fully-visible net-worth card. */
  .fc-insight, .fc-voice { display: none; }
  .fc-networth { bottom: 12%; left: 0; }
}

/* ---------- Section scaffolding ---------- */
.section { max-width: var(--max-w); margin: 0 auto; padding: 72px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 16px; }

/* ---------- Mission / principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.principle:hover { border-color: var(--accent); transform: translateY(-2px); }
.principle-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-glow); color: var(--accent);
  display: grid; place-items: center;
}
.principle-icon svg { width: 20px; height: 20px; }
.principle h3 { font-size: 18px; }
.principle p { color: var(--text-muted); font-size: 14px; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }
.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-head { display: flex; align-items: center; gap: 14px; }
.product-mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(150deg, #1E1B4B, #09090B);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent-soft); font-weight: 800; font-size: 22px;
  flex: 0 0 auto;
}
.product-name { font-size: 22px; }
.product-tagline { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent);
  padding: 5px 12px; border-radius: 999px;
  align-self: flex-start;
}
.status-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.product-desc { color: var(--text-muted); font-size: 15px; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip {
  font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px;
}
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 15px;
  align-self: flex-start;
}
.product-link svg { width: 16px; height: 16px; }
.product-link:hover { gap: 9px; }

.product-card.soon {
  align-items: flex-start;
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.product-card.soon .product-mark {
  background: var(--surface); color: var(--text-dim); border-style: dashed;
}
.product-card.soon h3 { font-size: 20px; }
.product-card.soon p { color: var(--text-dim); font-size: 14px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.contact .section-title { margin-bottom: 14px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px;
  font-size: clamp(18px, 3vw, 24px); font-weight: 700;
  color: var(--text);
}
.contact-mail:hover { color: var(--accent); }
.contact-mail svg { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
