/* ============================================================
   Cash Pocket — Landing site design system
   Light / Dark theming via [data-theme] + CSS variables
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (from the app) */
  --brand-50:  #eef4fb;
  --brand-100: #d5e4f4;
  --brand-200: #aac8e8;
  --brand-300: #7ba6d8;
  --brand-400: #4d83c4;
  --brand-500: #2965a8;
  --brand-600: #144A81;
  --brand-700: #103e6c;
  --brand-800: #0c3057;
  --brand-900: #082140;

  --emerald-400: #44b568;
  --emerald-500: #239b48;
  --emerald-600: #1A8641;

  --danger-500: #dc2626;
  --amber-500:  #d97706;

  /* Radii / shadows / spacing */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme='light'] {
  color-scheme: light;
  --bg:            #f6f9fd;
  --bg-grad:       radial-gradient(1200px 600px at 12% -8%, #e3eefb 0%, rgba(227,238,251,0) 60%),
                   radial-gradient(1000px 520px at 100% 0%, #e7f5ec 0%, rgba(231,245,236,0) 55%),
                   linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border:        #e6edf5;
  --border-strong: #d5e0ec;

  --text:          #0f172a;
  --text-soft:     #334155;
  --text-muted:    #64748b;
  --text-faint:    #94a3b8;

  --brand:         var(--brand-600);
  --brand-ink:     var(--brand-700);
  --accent:        var(--emerald-600);

  --hero-grad:     linear-gradient(135deg, #1d5a96 0%, #144A81 55%, #0b2c52 100%);
  --soft-grad:     linear-gradient(135deg, #eef4fb 0%, #e7f5ec 100%);
  --card-glow:     0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(20,74,129,.28);
  --shadow-soft:   0 10px 30px -12px rgba(15,23,42,.14);
  --ring:          rgba(20,74,129,.14);
  --nav-bg:        rgba(255,255,255,0.7);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
  color-scheme: dark;
  --bg:            #070d19;
  --bg-grad:       radial-gradient(1200px 620px at 10% -10%, rgba(41,101,168,.22) 0%, rgba(41,101,168,0) 60%),
                   radial-gradient(1000px 560px at 100% 0%, rgba(26,134,65,.16) 0%, rgba(26,134,65,0) 55%),
                   linear-gradient(180deg, #070d19 0%, #0a1426 100%);
  --surface:       #0f1b30;
  --surface-2:     #0c1729;
  --surface-glass: rgba(15, 27, 48, 0.66);
  --border:        #1e2d45;
  --border-strong: #2a3c58;

  --text:          #eaf1f9;
  --text-soft:     #c4d2e3;
  --text-muted:    #93a4bd;
  --text-faint:    #6c7e98;

  --brand:         var(--brand-300);
  --brand-ink:     var(--brand-200);
  --accent:        var(--emerald-400);

  --hero-grad:     linear-gradient(135deg, #16365c 0%, #0e2746 55%, #081a31 100%);
  --soft-grad:     linear-gradient(135deg, #0e1f38 0%, #0d2417 100%);
  --card-glow:     0 1px 2px rgba(0,0,0,.3), 0 22px 48px -26px rgba(0,0,0,.7);
  --shadow-soft:   0 16px 40px -18px rgba(0,0,0,.6);
  --ring:          rgba(123,166,216,.22);
  --nav-bg:        rgba(10,18,34,0.66);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .25s var(--ease);
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--text); margin: 0; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-ink); }
img { max-width: 100%; display: block; }
ul { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--soft-grad);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
}
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 18px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

.gradient-text {
  background: linear-gradient(120deg, var(--brand-500), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[data-theme='dark'] .gradient-text {
  background: linear-gradient(120deg, var(--brand-300), var(--emerald-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 60%, var(--brand-700) 100%);
  box-shadow: 0 12px 26px -12px rgba(20,74,129,.6);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(20,74,129,.7); }
.btn-ghost {
  color: var(--text-soft); background: var(--surface); border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { color: var(--text); transform: translateY(-2px); border-color: var(--brand-300); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand img { width: auto; height: 50px; border-radius: 10px;}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--brand); }
/* "Get the app" + mobile "Log in" only belong in the mobile dropdown, not the desktop bar */
.nav-cta-mobile, .nav-login-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft);
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--brand); border-color: var(--brand-300); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text-soft); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
/* On desktop, fit the hero to a single screen (viewport minus the 70px nav) */
@media (min-width: 961px) {
  .hero { min-height: calc(100vh - 70px); display: flex; align-items: center; padding-top: 32px; padding-bottom: 32px; }
  .hero > .container { width: 100%; }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin: 22px 0 18px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-top: 34px; color: var(--text-muted); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); }

/* Hero app mockup */
.hero-visual { position: relative; }
.mock {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--card-glow);
}

/* App bar */
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.mock-bar .mb-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mock-bar .mb-logo {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: 0 8px 18px -8px rgba(20,74,129,.75);
}
.mock-bar .mb-left b { font-size: 1rem; display: block; letter-spacing: -.01em; line-height: 1.2; }
.mock-bar .mb-left span { font-size: .77rem; color: var(--text-faint); }
.mock-bar .mb-menu { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--border); color: var(--text-muted); flex-shrink: 0; }
.mock-bar .mb-menu svg { width: 18px; height: 18px; }

/* Balance card */
.mock-hero {
  margin: 4px 16px 0; padding: 20px; border-radius: 22px; color: #eef5fc;
  background: var(--hero-grad); position: relative; overflow: hidden;
  box-shadow: 0 18px 36px -22px rgba(20,74,129,.8);
}
.mock-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 170px at 88% -25%, rgba(26,134,65,.42), transparent 60%); pointer-events: none; }
.mock-hero > * { position: relative; z-index: 1; }
.mh-top { display: flex; align-items: center; justify-content: space-between; }
.mh-label { font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; opacity: .82; }
.mh-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(94,224,138,.22); color: #c7f7d6; }
.mh-pill svg { width: 13px; height: 13px; }
.mh-amount { font-size: 2.15rem; font-weight: 800; letter-spacing: -.025em; margin-top: 7px; }
.mh-spark { display: block; width: 100%; height: 46px; margin: 6px 0 4px; }
.mh-split { display: flex; gap: 10px; margin-top: 12px; }
.mhs { flex: 1; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 12px; }
.mhs .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mhs.in  .dot { background: #5ee08a; box-shadow: 0 0 0 4px rgba(94,224,138,.2); }
.mhs.out .dot { background: #ff8d8d; box-shadow: 0 0 0 4px rgba(255,141,141,.2); }
.mhs small { display: block; font-size: .69rem; opacity: .82; }
.mhs b { font-size: .95rem; }

/* Transactions */
.mock-list { padding: 6px 16px 8px; display: grid; gap: 8px; }
.mock-day { font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); padding: 8px 2px 1px; }
.mock-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .2s var(--ease), border-color .2s; }
.mock-item:hover { transform: translateX(3px); border-color: var(--border-strong); }
.mock-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.mock-ic.in  { background: rgba(26,134,65,.13); color: var(--emerald-600); }
.mock-ic.out { background: rgba(220,38,38,.12); color: var(--danger-500); }
.mock-ic svg { width: 19px; height: 19px; }
.mock-item .mi-main { flex: 1; min-width: 0; }
.mock-item .mi-main b { font-size: .9rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.mi-tag { font-size: .65rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.mi-time { font-size: .72rem; color: var(--text-faint); }
.mock-amt { font-weight: 700; font-size: .96rem; text-align: right; flex-shrink: 0; }
.mock-amt small { display: block; font-size: .62rem; font-weight: 600; color: var(--text-faint); margin-top: 1px; }
.mock-amt.in  { color: var(--emerald-600); }
.mock-amt.out { color: var(--danger-500); }

/* Quick add bar */
.mock-add { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; margin-top: 4px; border-top: 1px solid var(--border); }
.mock-add .ma-field { flex: 1; font-size: .82rem; color: var(--text-faint); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 10px 15px; }
.mock-add button { border: none; font: inherit; font-weight: 700; font-size: .8rem; color: #fff; padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: transform .18s var(--ease); }
.mock-add button:hover { transform: translateY(-2px); }
.mock-add .ma-out { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.mock-add .ma-in  { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)); }

[data-theme='dark'] .mock-ic.in { color: var(--emerald-400); }
[data-theme='dark'] .mock-amt.in { color: var(--emerald-400); }
[data-theme='dark'] .mock-bar .mb-menu { border-color: var(--border-strong); }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 16px; padding: 11px 15px;
  box-shadow: var(--shadow-soft); font-size: .85rem; font-weight: 600;
}
.float-badge svg { width: 20px; height: 20px; }
.float-badge.fb-1 { top: 18%; left: -34px; }
.float-badge.fb-1 svg { color: var(--accent); }
.float-badge.fb-2 { bottom: 12%; right: -28px; }
.float-badge.fb-2 svg { color: var(--brand); }

/* ---------- Logo strip ---------- */
.strip { padding: 26px 0; border-block: 1px solid var(--border); background: var(--surface-glass); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.strip-inner .stat { text-align: center; flex: 1; min-width: 130px; }
.strip-inner .stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.strip-inner .stat span { font-size: .86rem; color: var(--text-muted); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--card-glow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent)); opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--brand-200); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--soft-grad); color: var(--brand); border: 1px solid var(--border);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: .96rem; }

/* ---------- Split / showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 72px); align-items: center; }
.split.rev .split-media { order: 2; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.split p.lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; }
.check-list { display: grid; gap: 14px; list-style: none; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.check-list .ci { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: rgba(26,134,65,.13); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.check-list .ci svg { width: 15px; height: 15px; }
.check-list b { color: var(--text); }

.panel {
  background: var(--soft-grad); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--card-glow);
}
.panel-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.panel-row:last-child { margin-bottom: 0; }
.panel-row .pic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--brand); border: 1px solid var(--border); }
.panel-row .pic svg { width: 20px; height: 20px; }
.panel-row .pmeta { flex: 1; }
.panel-row .pmeta b { font-size: .96rem; }
.panel-row .pmeta span { display: block; font-size: .8rem; color: var(--text-faint); }
.tag { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.tag.in  { background: rgba(26,134,65,.13); color: var(--emerald-600); }
.tag.out { background: rgba(220,38,38,.12); color: var(--danger-500); }
.tag.role { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--border); }
[data-theme='dark'] .tag.in { color: var(--emerald-400); }
[data-theme='dark'] .tag.role { background: rgba(123,166,216,.14); color: var(--brand-200); }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--card-glow); transition: transform .25s var(--ease); }
.role-card:hover { transform: translateY(-4px); }
.role-card .rk { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.role-card .rk svg { width: 21px; height: 21px; }
.role-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.role-card p { font-size: .88rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; background: var(--hero-grad); color: #fff; box-shadow: 0 30px 60px -30px rgba(20,74,129,.7); }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(26,134,65,.28), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.86); margin: 14px auto 28px; max-width: 540px; position: relative; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.cta-band .cta-row { position: relative; display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--text); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-q svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--text-muted); padding: 0 22px 20px; font-size: .96rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface-glass); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-about p { color: var(--text-muted); font-size: .93rem; max-width: 300px; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: .94rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: .88rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); }
.socials a:hover { color: var(--brand); border-color: var(--brand-300); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--text-muted); margin-top: 12px; }
.legal { max-width: 820px; margin: 0 auto; padding-bottom: 80px; }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--card-glow); }
.legal-card h2 { font-size: 1.35rem; margin: 34px 0 12px; padding-top: 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal-card p, .legal-card li { color: var(--text-soft); font-size: .98rem; margin-bottom: 12px; }
.legal-card ul { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 14px; }
.legal-card a { font-weight: 500; }
.legal-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--brand); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.legal-toc a { font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); }
.legal-toc a:hover { border-color: var(--brand-300); color: var(--brand); }
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); background: var(--soft-grad); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-info { display: grid; gap: 16px; }
.contact-info .ci-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--soft-grad); color: var(--brand); border: 1px solid var(--border); }
.contact-info .ci-ic svg { width: 21px; height: 21px; }
.contact-info b { font-size: .98rem; }
.contact-info span { color: var(--text-muted); font-size: .92rem; }

.note { text-align: center; font-size: .82rem; color: var(--text-faint); margin-top: 10px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .float-badge.fb-1 { left: 0; }
  .float-badge.fb-2 { right: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta-desktop, .nav-login-desktop { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0; padding: 16px 22px 22px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-soft);
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav.open .nav-links .nav-login-mobile { display: block; }
  .nav.open .nav-links .nav-cta-mobile { display: inline-flex; }
  .nav.open .nav-links .btn { margin-top: 10px; width: 100%; padding: 13px 22px; border-bottom: none; color: #fff; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .roles { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1; }
}

/* ============================================================
   Enhanced animations & micro-interactions
   ============================================================ */
@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes navDown{ from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob    { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-1.5deg); } }
@keyframes shimmer{ to { background-position: 200% center; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(26,134,65,.45); } 70% { box-shadow: 0 0 0 10px rgba(26,134,65,0); } 100% { box-shadow: 0 0 0 0 rgba(26,134,65,0); } }
@keyframes spin   { to { transform: rotate(360deg); } }

/* Navbar drops in on load */
.nav { animation: navDown .55s var(--ease) both; }

/* Hero copy: staggered entrance */
.hero-copy > * { opacity: 0; animation: rise .7s var(--ease) forwards; }
.hero-copy > .eyebrow    { animation-delay: .05s; }
.hero-copy > h1          { animation-delay: .15s; }
.hero-copy > .hero-sub   { animation-delay: .28s; }
.hero-copy > .hero-cta   { animation-delay: .40s; }
.hero-copy > .hero-trust { animation-delay: .52s; }

/* Animated gradient text (works in both themes) */
.gradient-text,
[data-theme='dark'] .gradient-text { background-size: 200% auto; animation: shimmer 7s linear infinite; }

/* Hero mockup gently floats; badges bob with a pulse dot */
.mock { animation: floaty 6s ease-in-out infinite; will-change: transform; }
.float-badge { animation: bob 4.5s ease-in-out infinite; will-change: transform; }
.float-badge.fb-2 { animation-duration: 5.6s; animation-delay: .8s; }
.float-badge.fb-1 svg { border-radius: 50%; animation: pulse-ring 2.6s ease-out infinite; }

/* Buttons: glossy shine sweep on hover + press feedback */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 150%; }
.btn:active { transform: translateY(0) scale(.97); }

/* Nav links: animated underline */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--accent));
  border-radius: 2px; transition: width .26s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Theme toggle: icon swivels */
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:hover svg { transform: rotate(35deg); }

/* Feature card icon lifts & tilts with the card */
.card .ic { transition: transform .3s var(--ease), background .3s; }
.card:hover .ic { transform: translateY(-3px) scale(1.07) rotate(-4deg); }

/* Role card medallion springs on hover */
.role-card .rk { transition: transform .35s var(--ease); }
.role-card:hover .rk { transform: rotate(-7deg) scale(1.1); }

/* Panel rows nudge on hover */
.panel-row { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.panel-row:hover { transform: translateX(5px); box-shadow: var(--card-glow); }

/* Social icons spin-pop */
.socials a svg { transition: transform .35s var(--ease); }
.socials a:hover svg { transform: scale(1.15) rotate(8deg); }

/* Staggered reveal inside grids */
.grid > .reveal:nth-child(2),  .roles > .reveal:nth-child(2)  { transition-delay: .07s; }
.grid > .reveal:nth-child(3),  .roles > .reveal:nth-child(3)  { transition-delay: .14s; }
.grid > .reveal:nth-child(4),  .roles > .reveal:nth-child(4)  { transition-delay: .21s; }
.grid > .reveal:nth-child(5) { transition-delay: .28s; }
.grid > .reveal:nth-child(6) { transition-delay: .35s; }
.faq > .reveal:nth-child(2) { transition-delay: .06s; }
.faq > .reveal:nth-child(3) { transition-delay: .12s; }
.faq > .reveal:nth-child(4) { transition-delay: .18s; }
.faq > .reveal:nth-child(5) { transition-delay: .24s; }

/* Respect reduced-motion: disable all of the above */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy > * { opacity: 1 !important; }
}
