/* ============================================================
   Kura Money — landing styles
   Design tokens from STYLE_GUIDE.md / CopilotTheme.swift
   ============================================================ */
:root {
  /* surfaces */
  --bg: #090D1A;
  --card: #0E1525;
  --card-2: #111A2E;
  --border: #1C2B44;
  /* accents */
  --accent-green: #39FF6A;
  --accent-blue: #6B8FFF;
  --accent-orange: #FF6B35;
  --chart-blue: #4A8FFF;
  /* text */
  --text: #EAF0FF;
  --text-secondary: #9AA8C7;
  --text-tertiary: #6B7A9F;
  /* shape */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --gap: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #4A6BFF);
  color: #fff;
  box-shadow: 0 8px 28px rgba(74, 107, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(74, 107, 255, .5); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 26, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { border-radius: 9px; }
.brand-name { font-size: 18px; letter-spacing: -.2px; }
.brand-accent { color: var(--text-secondary); font-weight: 600; }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color .18s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.lang-btn.active { background: var(--accent-blue); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- glows ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.glow-blue { width: 520px; height: 520px; background: radial-gradient(circle, rgba(74,107,255,.55), transparent 70%); top: -120px; right: -120px; }
.glow-green { width: 460px; height: 460px; background: radial-gradient(circle, rgba(57,255,106,.28), transparent 70%); bottom: -160px; left: -140px; }
.glow-soft { opacity: .28; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(107, 143, 255, .12);
  border: 1px solid rgba(107, 143, 255, .3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 18px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-tertiary); }

/* phone mock */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #05080F;
  border: 10px solid #1A2438;
  border-radius: 46px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #1A2438;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(74,107,255,.25), transparent 60%),
    linear-gradient(180deg, #0E1525, #090D1A);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.visual-caption { margin-top: 18px; font-size: 13px; color: var(--text-tertiary); text-align: center; }

/* ---------- showcase gallery ---------- */
.phone-sm { width: 200px; border-width: 8px; border-radius: 36px; }
.phone-sm .phone-notch { width: 86px; height: 18px; }
.gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.shot {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  scroll-snap-align: center;
  transition: transform .25s ease;
}
.shot:hover { transform: translateY(-6px); }
.shot figcaption { font-size: 13px; color: var(--text-secondary); text-align: center; max-width: 200px; }

/* ---------- stats ---------- */
.stats {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--accent-green); letter-spacing: -.5px; }
.stat-label { font-size: 14px; color: var(--text-secondary); }

/* ---------- generic section ---------- */
.section { position: relative; padding: 88px 0; overflow: hidden; }
.section-alt { background: linear-gradient(180deg, #0B1120, #090D1A); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.6px;
  font-weight: 800;
  margin: 0 0 14px;
}
.section-head p { font-size: 17px; color: var(--text-secondary); margin: 0; }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); position: relative; z-index: 1; }
.card, .card-flat, .feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover, .feature:hover, .card-flat:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 143, 255, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.card h3, .card-flat h3, .feature h3 { font-size: 19px; margin: 6px 0 8px; letter-spacing: -.3px; }
.card p, .card-flat p, .feature p { color: var(--text-secondary); font-size: 15px; margin: 0; }
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.icon-blue { background: rgba(107, 143, 255, .14); }
.icon-green { background: rgba(57, 255, 106, .14); }
.icon-orange { background: rgba(255, 107, 53, .14); }
.example {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-green);
  background: rgba(57, 255, 106, .08);
  border: 1px solid rgba(57, 255, 106, .2);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: "SF Mono", ui-monospace, monospace;
}

/* ---------- AI features ---------- */
.ai-features { margin-top: 8px; }

/* ---------- features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); position: relative; z-index: 1; }
.feature-icon { font-size: 28px; margin-bottom: 14px; }

/* ---------- banks ---------- */
.banks-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: start;
  position: relative;
  z-index: 1;
}
.banks-features { display: grid; gap: 16px; }
.security-card {
  background: linear-gradient(160deg, #0F1A30, #0C1426);
  border: 1px solid rgba(57, 255, 106, .25);
  border-radius: var(--radius);
  padding: 30px;
}
.security-card h3 { margin: 0 0 18px; font-size: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(57, 255, 106, .15);
  color: var(--accent-green);
  border-radius: 6px;
  font-size: 12px; font-weight: 800;
}

/* flow diagram */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  min-width: 130px;
  font-size: 14px;
  font-weight: 600;
}
.flow-emoji { font-size: 26px; }
.flow-arrow { color: var(--accent-blue); font-size: 22px; font-weight: 700; }
.flow-caption { text-align: center; color: var(--text-tertiary); font-size: 14px; margin-top: 18px; position: relative; z-index: 1; }

/* ---------- health ---------- */
.health-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.gauge-wrap { display: flex; justify-content: center; }
.gauge {
  --score: 78;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-green) calc(var(--score) * 1%),
    rgba(255,255,255,.06) 0
  );
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px rgba(57, 255, 106, .25);
}
.gauge-inner {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-number { font-size: 52px; font-weight: 800; color: var(--accent-green); line-height: 1; }
.gauge-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

.metrics { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.metrics li { display: flex; gap: 14px; align-items: flex-start; }
.metric-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; }
.metrics h3 { margin: 0 0 2px; font-size: 16px; }
.metrics p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: rgba(107, 143, 255, .5);
  background: linear-gradient(170deg, #11203B, #0C1426);
  box-shadow: 0 20px 60px rgba(74, 107, 255, .2);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-green), #21C24C);
  color: #04120A;
  font-size: 12px; font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-name { font-size: 22px; margin: 0 0 12px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.price-amount { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.price-amount::before { content: "$"; font-size: 24px; vertical-align: super; color: var(--text-secondary); }
.price-period { color: var(--text-tertiary); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.plan {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.plan-best { border-color: var(--accent-green); background: rgba(57, 255, 106, .08); }
.plan-name { display: block; font-size: 14px; font-weight: 700; }
.plan-note { display: block; font-size: 11px; color: var(--accent-green); margin-top: 2px; }
.price-card .check-list { margin-bottom: 26px; flex: 1; }
.pricenote { text-align: center; color: var(--text-tertiary); font-size: 14px; margin-top: 22px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent-blue);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ---------- final cta ---------- */
.cta-section { position: relative; padding: 96px 0; overflow: hidden; text-align: center; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; }
.cta-icon { margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.6px; margin: 0 0 14px; font-weight: 800; }
.cta-section p { color: var(--text-secondary); font-size: 18px; margin: 0 0 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: #070A14; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand p { color: var(--text-tertiary); font-size: 14px; margin: 14px 0 0; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin: 0 0 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; transition: color .18s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-tertiary); font-size: 13px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .banks-grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; text-align: left; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 13, 26, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .cards-3, .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .feature:hover, .mode:hover, .card-flat:hover { transform: none; }
}

/* ============================================================
   Legal pages (privacy policy)
   ============================================================ */
.legal-page { padding: 120px 0 96px; }
.legal { color: var(--text-secondary); }
.legal-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 0 0 10px;
}
.legal h1 {
  color: var(--text);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.legal-meta { color: var(--text-tertiary); font-size: 14px; margin: 0 0 36px; }
.legal h2 {
  color: var(--text);
  font-size: 21px;
  letter-spacing: -.01em;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 12px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--text); }

/* keep the "back home" button visible on mobile (the landing hides header btns) */
@media (max-width: 760px) {
  .header-actions .btn.btn-legal-back { display: inline-flex; }
  .legal-page { padding: 96px 0 72px; }
}
