:root {
  --bg: #06060a;
  --bg-1: #0a0a12;
  --bg-2: #0f0f17;
  --surface: rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text: #fafafa;
  --muted: #8a8a99;
  --dim: #55555f;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-soft: rgba(99,102,241,0.12);
  --green: #22c55e;
  --red: #ef4444;
  --purple: #8b5cf6;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background grain + aurora */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(139,92,246,0.10), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(99,102,241,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.8;
}

main, nav, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(6,6,10,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6,6,10,0.82);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(99,102,241,0.35);
}
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 14px; flex: 1; justify-content: center; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 500;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  line-height: 1;
}
.lang-switch button.on {
  background: var(--text); color: #111;
}
.lang-flag {
  display: inline-block; width: 16px; height: 11px;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  vertical-align: middle;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* ============ HERO ============ */
.hero {
  padding: 70px 0 60px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.02em;
  background: var(--surface);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% {opacity: 1;} 50% {opacity: .4;} }

.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin: 22px 0 0;
  font-weight: var(--display-weight);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #c7d2fe, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  margin: 24px 0 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 22px; color: var(--dim); font-size: 13px; flex-wrap: wrap;
}
.hero-meta span svg.lang-flag { width: 18px; height: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Dashboard mockup wrapper */
.hero-dash {
  margin-top: 58px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b0b14, #07070c);
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 80px -20px rgba(99,102,241,0.25);
  will-change: transform;
  transform-origin: 50% 100%;
}
.hero-dash::before {
  content: "";
  position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
  margin: 0;
  font-weight: var(--display-weight);
  max-width: 760px;
}
.section-title em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.section-sub {
  color: var(--muted);
  max-width: 420px;
  font-size: 15px;
}

/* ============ FEATURES GRID ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.feature {
  padding: 32px 28px;
  background: #08080e;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: background .3s;
}
.feature:hover { background: #0c0c15; }
.feature:hover .feature-icon { color: var(--accent-2); transform: translateY(-2px); }
.feature-icon {
  width: 28px; height: 28px; color: var(--muted);
  transition: all .3s;
}
.feature-title {
  font-size: 17px; font-weight: 500;
  margin: 28px 0 8px;
}
.feature-desc {
  color: var(--muted); font-size: 14px; line-height: 1.55;
  margin: 0;
}

/* ============ BANK CONNECT ============ */
.banks {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
.banks-visual {
  position: relative;
  height: 480px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08), transparent 60%), #08080e;
  overflow: hidden;
}
.orbit {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-1 { width: 200px; height: 200px; }
.orbit-2 { width: 320px; height: 320px; }
.orbit-3 { width: 440px; height: 440px; }

.bank-node {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #11111c;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transform: translate(-50%, -50%);
  transition: all .3s;
  backdrop-filter: blur(8px);
}
.bank-node:hover { border-color: var(--accent); color: var(--text); transform: translate(-50%, -50%) scale(1.1); }
.bank-core {
  position: absolute; top: 50%; left: 50%;
  width: 84px; height: 84px; border-radius: 20px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center;
  box-shadow: 0 0 60px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  font-family: var(--display);
  font-size: 36px;
  color: #fff;
  animation: bankCorePulse 3s ease-in-out infinite;
}
@keyframes bankCorePulse {
  0%, 100% { box-shadow: 0 0 60px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
  50% { box-shadow: 0 0 90px rgba(99,102,241,0.8), inset 0 1px 0 rgba(255,255,255,0.35); }
}

/* ============ AI section ============ */
.ai-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ai-transactions {
  background: #08080e;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  font-family: var(--sans);
}
.tx-row {
  display: grid; grid-template-columns: 32px 1fr auto auto; gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .3s;
}
.tx-row:last-child { border-bottom: 0; }
.tx-row.flagged { background: rgba(99,102,241,0.06); border-radius: 10px; }
.tx-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.tx-name { font-size: 14px; }
.tx-cat {
  font-size: 11px; color: var(--muted);
  padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.tx-cat.new { color: var(--accent-2); border-color: var(--accent); background: var(--accent-soft); }
.tx-cat .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tx-amount { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; }
.tx-amount.neg { color: var(--red); }
.tx-amount.pos { color: var(--green); }

/* ============ SECURITY ============ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sec-card {
  background: linear-gradient(180deg, #0c0c16, #08080e);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.sec-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.sec-card-visual {
  height: 140px;
  margin: -8px -8px 20px;
  border-radius: 14px;
  background: #06060a;
  position: relative;
  overflow: hidden;
}
.sec-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sec-desc { color: var(--muted); font-size: 14px; margin: 0; }

/* ============ TESTIMONIALS ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
}
.testimonial-quote {
  font-size: 17px; line-height: 1.55;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.testimonial-name { font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* ============ FAQ ============ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; background: none; border: 0; color: inherit;
  font-size: 17px; cursor: pointer; font-family: inherit;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent-2); }
.faq-q svg { transition: transform .3s; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent-2); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  color: var(--muted);
  font-size: 15px;
  transition: max-height .4s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ============ FINAL CTA ============ */
.cta-band {
  margin: 60px auto 100px;
  max-width: var(--maxw);
  padding: 80px 24px;
  border-radius: 24px;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(99,102,241,0.25), transparent 60%),
    linear-gradient(180deg, #0c0c18, #07070c);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
  margin: 0 0 18px;
  font-weight: var(--display-weight);
}
.cta-sub { color: var(--muted); margin: 0 auto 34px; max-width: 480px; }

/* Waitlist form */
.waitlist-form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.waitlist-form input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--text);
}
.waitlist-form input::placeholder { color: var(--dim); }
.waitlist-success {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  color: var(--green);
  font-size: 14px;
  animation: slideIn .4s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

/* ============ ANIM UTIL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i,0) * 70ms);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  font-size: 13px;
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 14px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.tweak-swatch.on { border-color: var(--text); }
.tweak-select {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: inherit; font-size: 13px;
}

/* Sections can hide their head when embedded in a page */
.features-no-head { margin-top: 0 !important; }

/* Route transition */
.route-enter {
  animation: routeIn .45s cubic-bezier(.16,1,.3,1);
}
@keyframes routeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav link active state */
.nav-links a.on {
  color: var(--text);
  position: relative;
}
.nav-links a.on::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -18px;
  height: 2px; background: var(--accent);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .banks, .ai-demo { grid-template-columns: 1fr; }
  .banks-visual { height: 380px; }
  .security-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
