/* ===========================================================
   MyFinPal — Showcase Site
   Dark, futuristic theme mirroring the app's own design system
   =========================================================== */

:root {
  color-scheme: light dark;
  /* Light theme (default). prefers-color-scheme: dark restores the
     original dark neon look below. Every color elsewhere in this file
     routes through these tokens (plus *-rgb helpers for rgba() use). */
  --bg: #f7f8fc;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --overlay-rgb: 15, 23, 42;
  --shadow-rgb: 15, 23, 42;
  --border: rgba(var(--overlay-rgb), 0.09);
  --border-strong: rgba(var(--overlay-rgb), 0.16);
  --text: #0f172a;
  --text-dim: #475569;
  --text-dimmer: #94a3b8;

  --cyan: #0891b2;
  --cyan-rgb: 8, 145, 178;
  --purple: #6d28d9;
  --purple-rgb: 109, 40, 217;
  --green: #059669;
  --green-rgb: 5, 150, 105;
  --red: #dc2626;
  --red-rgb: 220, 38, 38;
  --orange: #c2410c;
  --orange-rgb: 194, 65, 12;

  --grad-primary: linear-gradient(135deg, var(--cyan), var(--purple));
  --grad-green: linear-gradient(135deg, var(--green), var(--cyan));
  --grad-warm: linear-gradient(135deg, var(--orange), var(--red));

  --shadow-glow-cyan: 0 0 40px rgba(var(--cyan-rgb), 0.18);
  --shadow-glow-purple: 0 0 40px rgba(var(--purple-rgb), 0.18);

  --nav-bg: rgba(247, 248, 252, 0.75);
  --mobile-nav-bg: rgba(247, 248, 252, 0.98);
  --float-card-bg: rgba(255, 255, 255, 0.85);

  /* Fixed regardless of site theme — these depict the app's own,
     always-dark UI inside the phone mockups, not site chrome. */
  --mock-text: #eef2ff;
  --mock-text-dim: #9aa8c7;
  --mock-text-dimmer: #6a7591;
  --mock-border: rgba(255, 255, 255, 0.08);
  --mock-cyan: #00e5ff;
  --mock-green: #00ff94;
  --mock-red: #ff3b5c;
  --mock-orange: #ff6b35;
  --mock-grad-primary: linear-gradient(135deg, #00e5ff, #7b2fff);
  --mock-grad-green: linear-gradient(135deg, #00ff94, #00e5ff);
  --mock-grad-warm: linear-gradient(135deg, #ff6b35, #ff3b5c);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --container: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050a18;
    --bg-2: #070d1f;
    --surface: #0d1628;
    --surface-2: #101b32;
    --overlay-rgb: 255, 255, 255;
    --shadow-rgb: 0, 0, 0;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef2ff;
    --text-dim: #9aa8c7;
    --text-dimmer: #6a7591;

    --cyan: #00e5ff;
    --cyan-rgb: 0, 229, 255;
    --purple: #7b2fff;
    --purple-rgb: 123, 47, 255;
    --green: #00ff94;
    --green-rgb: 0, 255, 148;
    --red: #ff3b5c;
    --red-rgb: 255, 59, 92;
    --orange: #ff6b35;
    --orange-rgb: 255, 107, 53;

    --shadow-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.25);
    --shadow-glow-purple: 0 0 40px rgba(123, 47, 255, 0.25);

    --nav-bg: rgba(5, 10, 24, 0.75);
    --mobile-nav-bg: rgba(7, 12, 27, 0.98);
    --float-card-bg: rgba(13, 22, 40, 0.85);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background texture (fixed, whole page) ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(var(--overlay-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--overlay-rgb), 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 90%);
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 15% 10%, rgba(var(--purple-rgb), 0.12), transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(var(--cyan-rgb), 0.1), transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(var(--green-rgb), 0.06), transparent 50%);
}

/* ---------- Cursor (pointer devices only) ---------- */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--cyan-rgb), 0.5);
  transition: width .2s, height .2s, border-color .2s, background .2s;
}
.cursor-ring.active {
  width: 50px; height: 50px;
  background: rgba(var(--cyan-rgb), 0.08);
  border-color: var(--purple);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 10000;
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.6);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
.nav-logo img {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.5));
  animation: spin-slow 14s linear infinite;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.cta) {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.nav-links a:not(.cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--grad-primary);
  transition: width .25s ease;
}
.nav-links a:not(.cta):hover { color: var(--text); }
.nav-links a:not(.cta):hover::after { width: 100%; }
.nav-links .cta {
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--grad-primary);
  color: #04101c;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-links .cta:hover { transform: translateY(-2px); box-shadow: 0 4px 28px rgba(var(--purple-rgb), 0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
}

/* ---------- Typography helpers ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 0 48px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: .5rem;
  color: #050a18;
  background: var(--cyan);
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.project-profile { position: relative; overflow: hidden; }
.project-profile::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: -20rem;
  right: -12rem;
  border-radius: 50%;
  background: rgba(123, 47, 255, .12);
  filter: blur(50px);
  pointer-events: none;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr);
  gap: 4rem;
  align-items: center;
}
.profile-copy { max-width: 48rem; margin-top: 1.2rem; color: var(--text-dim); line-height: 1.8; }
.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--border);
  box-shadow: var(--shadow-glow-purple);
}
.profile-facts div { padding: 1.2rem; background: rgba(13, 22, 40, .84); }
.profile-facts dt { margin-bottom: .4rem; color: var(--text-dim); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profile-facts dd { margin: 0; color: var(--text); font-size: .95rem; font-weight: 600; }
.profile-facts a { color: var(--cyan); }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Fixed gradient text for figures inside phone mockups — always the
   app's own dark-theme colors, independent of site theme. */
.mock-gradient {
  background: var(--mock-grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text.green { background: var(--grad-green); -webkit-background-clip: text; background-clip: text; }
.gradient-text.warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }

section { position: relative; padding: 110px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--grad-primary);
  color: #03101c;
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(var(--purple-rgb), 0.5); }
.btn-ghost {
  background: rgba(var(--overlay-rgb), 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(var(--overlay-rgb), 0.08); border-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 100px;
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.hero-glow-a, .hero-glow-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.28), transparent 70%);
  top: -180px; left: -140px;
  animation: drift-a 16s ease-in-out infinite;
}
.hero-glow-b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(var(--purple-rgb), 0.28), transparent 70%);
  bottom: -200px; right: -120px;
  animation: drift-b 18s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-glow-a, .hero-glow-b { opacity: .6; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.4px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: 0.2px;
}
.hero p.lede {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 0 34px;
}
@media (max-width: 960px) { .hero p.lede { margin-inline: auto; } }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
@media (max-width: 960px) { .hero-ctas { justify-content: center; } }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
@media (max-width: 960px) { .hero-meta { justify-content: center; } }
.hero-meta .m-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.hero-meta .m-lbl {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Phone mockup (reused across sections) ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone-float {
  animation: float-phone 5.5s ease-in-out infinite;
}
.phone {
  width: 280px;
  height: 572px;
  border-radius: 40px;
  background: linear-gradient(160deg, #101b32, #060a17);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 229, 255, 0.12),
    inset 0 0 0 6px #05070f;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 18px;
  background: #05070f;
  border-radius: 12px;
  z-index: 5;
}
.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 32px;
  background: linear-gradient(175deg, #0a1226, #060a18 60%);
  overflow: hidden;
  padding: 30px 16px 16px;
  font-size: 11px;
  color: var(--mock-text);
}
.phone-float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--float-card-bg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(var(--shadow-rgb),0.4);
  font-size: 0.78rem;
  z-index: 4;
  animation: float-card 4.5s ease-in-out infinite;
}
.phone-float-card.a { top: 14%; left: -14%; animation-delay: .3s; }
.phone-float-card.b { bottom: 12%; right: -16%; animation-delay: 1s; }
.phone-float-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.phone-float-card.a strong { color: var(--green); }
.phone-float-card.b strong { color: var(--cyan); }
@media (max-width: 960px) {
  .phone { width: 240px; height: 490px; }
  .phone-float-card { display: none; }
}

/* mini mock UI inside phone screens */
.mock-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-avatar {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--mock-grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #04101c; font-size: 10px;
}
.mock-greet { color: var(--mock-text-dimmer); font-size: 9px; }
.mock-name { color: var(--mock-text); font-weight: 600; font-size: 11px; }
.mock-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--mock-border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.mock-label { font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--mock-text-dimmer); margin-bottom: 6px; }
.mock-nw { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.mock-sub { font-size: 8.5px; color: var(--mock-text-dim); margin-top: 4px; }
.mock-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 10px; }
.mock-bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--mock-cyan), rgba(0,229,255,0.15)); }
.mock-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-pill { display: inline-block; padding: 3px 8px; border-radius: 100px; font-size: 7.5px; background: rgba(0,229,255,0.12); color: var(--mock-cyan); }
.mock-ring {
  width: 62px; height: 62px; border-radius: 50%;
  background: conic-gradient(var(--mock-cyan) 0deg 115deg, rgba(255,255,255,0.08) 115deg 360deg);
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto;
}
.mock-ring i { width: 46px; height: 46px; border-radius: 50%; background: #0a1226; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--mock-text); }
.mock-navbar { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; justify-content: space-around; padding: 10px 6px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--mock-border); }
.mock-navbar span { width: 14px; height: 14px; border-radius: 4px; background: var(--mock-text-dimmer); opacity: .5; }
.mock-navbar span.active { background: var(--mock-cyan); opacity: 1; box-shadow: 0 0 8px var(--mock-cyan); }
.mock-list-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--mock-border); }
.mock-icon-box { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.mock-amt { margin-left: auto; font-weight: 600; font-size: 10px; }
.mock-progress { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 6px; }
.mock-progress i { display: block; height: 100%; border-radius: 4px; }
.mock-slider { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); position: relative; margin: 14px 0 6px; }
.mock-slider i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--mock-cyan); transform: translate(-50%,-50%); box-shadow: 0 0 8px var(--mock-cyan); }
.mock-result { text-align: center; padding: 14px 0 4px; }
.mock-result .big { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.mock-donut { width: 90px; height: 90px; margin: 6px auto; border-radius: 50%; background: conic-gradient(var(--mock-green) 0 50%, var(--mock-cyan) 50% 80%, var(--mock-orange) 80% 100%); position: relative; }
.mock-donut::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #0a1226; }

/* ---------- Stats strip ---------- */
.stats-strip {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl { color: var(--text-dim); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

.f-card {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(var(--overlay-rgb),0.045), rgba(var(--overlay-rgb),0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.f-card.span1 { grid-column: span 1; }
@media (max-width: 960px) { .f-card, .f-card.span1 { grid-column: span 1; } }
@media (min-width: 961px) and (max-width: 1180px) { .f-card { grid-column: span 2; } }

.f-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cyan-rgb), 0.35);
  box-shadow: 0 20px 50px rgba(var(--shadow-rgb), 0.35), 0 0 40px rgba(var(--cyan-rgb), 0.08);
}
.f-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.f-icon.cyan { background: rgba(var(--cyan-rgb),0.12); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb),0.3); }
.f-icon.purple { background: rgba(var(--purple-rgb),0.14); box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb),0.35); }
.f-icon.green { background: rgba(var(--green-rgb),0.12); box-shadow: inset 0 0 0 1px rgba(var(--green-rgb),0.3); }
.f-icon.orange { background: rgba(var(--orange-rgb),0.14); box-shadow: inset 0 0 0 1px rgba(var(--orange-rgb),0.35); }
.f-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 10px; letter-spacing: .2px; }
.f-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.f-card .f-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  filter: blur(60px); opacity: .35; top: -80px; right: -80px; pointer-events: none;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps::before {
  content: '';
  position: absolute;
  top: 30px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
@media (max-width: 860px) { .steps::before { display: none; } }
.step { text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 2;
}
.step:nth-child(1) .step-num { box-shadow: 0 0 22px rgba(var(--cyan-rgb),0.35); color: var(--cyan); border-color: rgba(var(--cyan-rgb),.4); }
.step:nth-child(2) .step-num { box-shadow: 0 0 22px rgba(var(--purple-rgb),0.35); color: var(--purple); border-color: rgba(var(--purple-rgb),.4); }
.step:nth-child(3) .step-num { box-shadow: 0 0 22px rgba(var(--green-rgb),0.35); color: var(--green); border-color: rgba(var(--green-rgb),.4); }
.step:nth-child(4) .step-num { box-shadow: 0 0 22px rgba(var(--orange-rgb),0.35); color: var(--orange); border-color: rgba(var(--orange-rgb),.4); }
.step h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 8px; }
.step p { color: var(--text-dim); font-size: 0.88rem; margin: 0; padding: 0 8px; }

/* ---------- Screens showcase ---------- */
.screens-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 20px 4px 30px;
  scroll-snap-type: x proximity;
}
.screens-row::-webkit-scrollbar { height: 6px; }
.screens-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.screen-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}
.screen-item .phone { width: 220px; height: 452px; animation: none; transition: transform .4s ease; }
.screen-item:hover .phone { transform: translateY(-8px) scale(1.02); }
.screen-item .cap { margin-top: 16px; font-family: var(--font-display); font-size: 0.85rem; color: var(--text-dim); letter-spacing: .5px; }

/* ---------- Calculators chips ---------- */
.calc-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-chip {
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(var(--overlay-rgb),0.04);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s, transform .2s;
}
.calc-chip:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }
.calc-chip .k { color: var(--cyan); font-family: var(--font-display); font-size: 0.75rem; }

/* ---------- Security ---------- */
.security-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .security-wrap { grid-template-columns: 1fr; } }
.sec-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.sec-list li:last-child { border-bottom: none; }
.sec-check {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  background: rgba(var(--green-rgb),0.12);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(var(--green-rgb),.3);
}
.sec-list h4 { margin: 0 0 4px; font-size: 0.98rem; }
.sec-list p { margin: 0; color: var(--text-dim); font-size: 0.86rem; }

.shield-orb {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--cyan-rgb),0.25);
}
.shield-ring.r1 { inset: 0; animation: spin-slow 18s linear infinite; }
.shield-ring.r2 { inset: 30px; border-color: rgba(var(--purple-rgb),0.25); animation: spin-slow-rev 14s linear infinite; }
.shield-ring.r3 { inset: 60px; border-color: rgba(var(--green-rgb),0.25); animation: spin-slow 10s linear infinite; }
.shield-core {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb),0.18), rgba(var(--purple-rgb),0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: 0 0 60px rgba(var(--cyan-rgb),0.35);
  z-index: 2;
}

/* ---------- CTA / waitlist ---------- */
.cta-band {
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(var(--cyan-rgb),0.08), rgba(var(--purple-rgb),0.08));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 480px; margin: 0 auto 34px; }
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(var(--overlay-rgb),0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.waitlist-form input:focus { outline: none; border-color: var(--cyan); }
.waitlist-note { font-size: 0.78rem; color: var(--text-dimmer); }
.store-badges { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(var(--overlay-rgb),0.03);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.store-badge b { display: block; color: var(--text); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(var(--overlay-rgb),0.02);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q .plus { font-size: 1.3rem; color: var(--cyan); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }
.faq-a p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.faq-view-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.faq-view-all .arrow { transition: transform .2s; }
.faq-view-all:hover .arrow { transform: translateX(4px); }

/* ---------- FAQ page (search + categories) ---------- */
.faq-search-wrap { max-width: 560px; margin: 0 auto 28px; }
.faq-search {
  width: 100%;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(var(--overlay-rgb),0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.faq-search:focus { outline: none; border-color: var(--cyan); }
.faq-search::placeholder { color: var(--text-dimmer); }
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto 50px; }
.faq-jump-chip {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(var(--overlay-rgb),0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: border-color .2s, color .2s, transform .2s;
}
.faq-jump-chip:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }
.faq-categories { max-width: 780px; margin: 0 auto; padding-bottom: 100px; }
.faq-category { margin-bottom: 44px; scroll-margin-top: 100px; }
.faq-category-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-empty { text-align: center; color: var(--text-dim); padding: 40px 0; max-width: 780px; margin: 0 auto; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); font-size: 0.88rem; transition: color .2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-copy { color: var(--text-dimmer); font-size: 0.8rem; text-align: center; margin-top: 30px; }
.footer-copy a { color: var(--text-dim); }
.footer-copy a:hover { color: var(--cyan); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 160px 0 50px; }
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 100px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 44px 0 14px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 0.98rem; }
.legal-content ul { padding-left: 22px; list-style: disc; margin: 12px 0; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--cyan); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.legal-content th { color: var(--text); font-family: var(--font-display); font-size: 0.75rem; letter-spacing: .5px; text-transform: uppercase; }
.legal-content td { color: var(--text-dim); }
.legal-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(var(--cyan-rgb),0.1);
  border: 1px solid rgba(var(--cyan-rgb),0.3);
  color: var(--cyan);
  font-size: 0.78rem;
  margin-bottom: 20px;
}
.legal-callout {
  border-left: 3px solid var(--orange);
  background: rgba(var(--orange-rgb),0.08);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.legal-callout p { color: var(--text); margin: 0; font-size: 0.92rem; }

/* ---------- Keyframes ---------- */
@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
