/* =============================================================
   BudgetOS Landing · 2026 — v2
   ============================================================= */

/* ---------- Theme tokens ---------- */
:root {
  /* Brand */
  --primary: #2F6E4B;
  --primary-dark: #183325;
  --primary-light: #E8F3EC;
  --secondary: #4E6658;
  --accent-red: #FF0000;

  /* Backgrounds */
  --bg-grad-1: #F7FAF8;
  --bg-grad-2: #F2F7F3;
  --bg-grad-3: #E8F3EC;
  --surface: #FFFFFF;
  --surface-2: #F7FAF8;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;

  /* Text */
  --text: #183325;
  --text-2: #4E6658;
  --text-muted: #6B7B72;
  --text-invert: #FFFFFF;
  --placeholder: #A0AEC0;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(24, 51, 37, 0.06), 0 2px 4px rgba(24, 51, 37, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 51, 37, 0.08), 0 2px 6px rgba(24, 51, 37, 0.04);
  --shadow-lg: 0 24px 60px rgba(24, 51, 37, 0.12), 0 8px 16px rgba(24, 51, 37, 0.06);
  --shadow-glow: 0 0 60px rgba(47, 110, 75, 0.25);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-w: 1240px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-grad-1: #0B1612;
  --bg-grad-2: #0E1E18;
  --bg-grad-3: #13261E;
  --surface: #14241D;
  --surface-2: #0E1B15;
  --border: rgba(232, 243, 236, 0.08);
  --border-strong: rgba(232, 243, 236, 0.16);
  --text: #E8F3EC;
  --text-2: #A8BBB0;
  --text-muted: #6E8076;
  --placeholder: #4E5E54;
  --primary-light: #1A2E25;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 80px rgba(47, 110, 75, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

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

.section { padding: 120px 0; position: relative; }
.section__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.eyebrow--light { color: #B7E3C5; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); }

.section__title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--text);
}
.section__title--light { color: #fff; }
.accent { color: var(--primary); }
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }
.section__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 auto;
  max-width: 640px;
}
.section__lead--light { color: #D5E5DA; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 110, 75, 0.18), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(80, 200, 130, 0.22), transparent 60%);
  mix-blend-mode: screen;
}
body:hover .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- BG canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 110, 75, 0.3);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 110, 75, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.btn--web {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  padding: 14px 28px;
  gap: 2px;
  margin-top: 32px;
}
.btn--web .btn__sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0;
  text-transform: none;
}
.btn--web svg { width: 22px; height: 22px; }
.btn--web:hover { transform: translateY(-3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(247, 250, 248, 0.7);
  border-bottom: 1px solid transparent;
}
[data-theme="dark"] .nav { background: rgba(11, 22, 18, 0.7); }
.nav.scrolled {
  background: rgba(247, 250, 248, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(24, 51, 37, 0.05);
}
[data-theme="dark"] .nav.scrolled { background: rgba(11, 22, 18, 0.85); }
.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(47, 110, 75, 0.3);
}
.nav__logo img { width: 28px; height: 28px; object-fit: contain; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: rotate(15deg); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO — v2 (banner-style)
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #A8E6BC 0%, transparent 70%);
  top: -120px; left: -80px;
}
.orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #C4F0D2 0%, transparent 70%);
  top: 30%; right: -100px;
  animation-delay: -6s;
}
.orb--3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #8AD9A4 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
}
[data-theme="dark"] .orb { opacity: 0.4; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 110, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 110, 75, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
[data-theme="dark"] .grid-overlay {
  background-image:
    linear-gradient(rgba(168, 187, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 187, 176, 0.05) 1px, transparent 1px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.pill__dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 110, 75, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 110, 75, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(47, 110, 75, 0); }
}

.hero__eyebrow {
  display: block;
  font-size: 18px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero__title {
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  font-size: clamp(64px, 9vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 32px;
  color: var(--text);
  white-space: nowrap;
}
.hero__title-em {
  color: var(--primary);
}

.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 20px;
}

.hero__tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 32px;
  letter-spacing: -0.025em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero visual: phone in front of laptop */
.hero__visual {
  position: relative;
  height: 540px;
  perspective: 1400px;
}

.hero__laptop {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-56%);
  width: 110%;
  z-index: 1;
  filter: drop-shadow(0 30px 60px rgba(24, 51, 37, 0.15));
}

.laptop {
  position: relative;
  width: 100%;
}
.laptop__screen {
  background: linear-gradient(145deg, #2a2a2a 0%, #0a0a0a 100%);
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 0;
  aspect-ratio: 16/10;
  position: relative;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}
.laptop__chrome {
  background: #1f1f1f;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.laptop__chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}
.laptop__chrome span:nth-child(1) { background: #ff5f57; }
.laptop__chrome span:nth-child(2) { background: #ffbd2e; }
.laptop__chrome span:nth-child(3) { background: #28ca42; }
.laptop__url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a2a;
  color: #888;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
}
.laptop__body {
  background: #f5f5f5;
  border-radius: 0;
  height: calc(100% - 32px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.laptop__body--screenshot {
  padding: 0;
}
.laptop__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.laptop__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1.2px solid #2F6E4B;
  color: #2F6E4B;
  border-radius: 100px;
  margin-bottom: 12px;
}
.laptop__welcome {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #2F6E4B;
  font-weight: 600;
  margin-bottom: 8px;
}
.laptop__title {
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #183325;
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}
.laptop__title em {
  color: #2F6E4B;
  font-style: normal;
}
.laptop__sub {
  font-size: 11px;
  color: #2F6E4B;
  margin: 0 0 14px;
  font-weight: 500;
  line-height: 1.3;
}
.laptop__pill {
  display: inline-block;
  background: #183325;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.laptop__base {
  height: 14px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border-radius: 0 0 20px 20px;
  margin: 0 -4px;
  position: relative;
}
.laptop__base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0a0a0a;
  border-radius: 0 0 6px 6px;
}

/* iPhone overlay */
.hero__phone {
  position: absolute;
  bottom: 40px;
  right: -10px;
  z-index: 3;
}
.phone {
  width: 240px;
  height: 500px;
  transition: transform 0.5s var(--ease);
}
.phone--clean { transform: rotate(0deg); }
.phone__frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 38px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1.5px #2a2a2a inset;
  overflow: hidden;
}
.phone__frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #000;
  border-radius: 16px;
  z-index: 4;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
  background: #fff;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone__shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  right: 5%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35), transparent 70%);
  filter: blur(15px);
  z-index: -1;
}

/* AI insights floating card */
.hero__ai-card {
  position: absolute;
  top: 20px;
  left: -20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: bubbleFloat 5s ease-in-out infinite;
}
[data-theme="dark"] .hero__ai-card { background: rgba(20, 36, 29, 0.95); }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__ai-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.hero__ai-icon svg { width: 22px; height: 22px; }
.hero__ai-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}
.hero__ai-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.hero__ai-meta .up { color: var(--primary); font-weight: 700; }

/* Modifiers for additional floating cards */
.hero__ai-card--resilience {
  top: auto;
  left: auto;
  bottom: 280px;
  right: -30px;
  animation-duration: 6s;
  animation-delay: -1.5s;
}
.hero__ai-card--rent {
  top: auto;
  left: 10px;
  bottom: 35px;
  right: auto;
  animation-duration: 5.5s;
  animation-delay: -3s;
}

/* Custom icon styling for variety */
.hero__ai-icon--resilience {
  background: #E0F2FE;
  color: #0284c7;
}
.hero__ai-icon--rent {
  background: #FEF3C7;
  color: #D97706;
}

[data-theme="dark"] .hero__ai-icon--resilience {
  background: rgba(2, 132, 199, 0.15);
  color: #38BDF8;
}
[data-theme="dark"] .hero__ai-icon--rent {
  background: rgba(217, 119, 6, 0.15);
  color: #FBBF24;
}

/* Feature icons row at bottom of hero */
.hero__features {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
[data-theme="dark"] .hero__features { background: rgba(20, 36, 29, 0.6); }
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.feature-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.feature-row__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
  transition: transform 0.3s var(--ease);
}
.feature-row__icon svg { width: 18px; height: 18px; }
.feature-row li:hover .feature-row__icon { transform: scale(1.1) rotate(-6deg); }
.feature-row__cta { margin-left: auto; }
.feature-row__cta .btn { padding: 12px 24px; font-size: 13px; letter-spacing: 0.08em; }

.scroll-cue {
  display: none;
}

/* ---------- Trust bar ---------- */
.trust {
  padding: 32px 0;
  background: var(--surface);
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  justify-content: center;
  align-items: center;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-2);
  font-size: 14px;
}
.trust__emoji {
  font-size: 20px;
  filter: grayscale(0.2);
}

/* ============================================================
   FEATURES — proper 3+1 card layout
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-card--wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: stretch;
}
.feature-card--wide .feature-card__media {
  width: 45%;
  aspect-ratio: auto;
  min-height: 280px;
}
.feature-card--wide .feature-card__body { flex: 1; padding: 40px; }

.feature-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-grad-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.feature-card:hover .feature-card__media img { transform: scale(1.05); }

.feature-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.feature-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
.feature-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.feature-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-2);
}
.feature-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   FINCHAT — unchanged layout
   ============================================================ */
.finchat { background: var(--surface); }
.finchat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.finchat__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.finchat__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-grad-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
}
.finchat__feature:hover { transform: translateX(6px); border-color: var(--primary); }
.finchat__icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.finchat__feature h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  font-family: 'Space Grotesk', sans-serif;
}
.finchat__feature p { margin: 0; font-size: 14px; color: var(--text-2); }

.chat-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.chat-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 50%, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.chat-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: #fff;
}
.chat-window__bar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.chat-window__name { font-weight: 700; font-size: 15px; }
.chat-window__status { font-size: 12px; opacity: 0.85; }
.chat-window__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='20' cy='20' r='1' fill='%232F6E4B' opacity='0.05'/></svg>");
  background-color: #ECE5DD;
  min-height: 380px;
}
[data-theme="dark"] .chat-window__body { background-color: #0F2A1F; }
.msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
  animation: msgIn 0.4s var(--ease) both;
}
.msg p { margin: 0; }
.msg__time { display: block; font-size: 10px; opacity: 0.6; text-align: right; margin-top: 4px; }
.msg--in {
  align-self: flex-start;
  background: #fff;
  color: #111;
  border-top-left-radius: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.msg--out {
  align-self: flex-end;
  background: #DCF8C6;
  color: #111;
  border-top-right-radius: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .msg--in { background: #1F3A2E; color: #E8F3EC; }
[data-theme="dark"] .msg--out { background: #2F6E4B; color: #fff; }
.msg.typing p i { opacity: 0.7; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg:nth-child(2) { animation-delay: 0.6s; }
.msg:nth-child(3) { animation-delay: 1.2s; }
.msg:nth-child(4) { animation-delay: 1.8s; }
.msg:nth-child(5) { animation-delay: 2.4s; }
.msg:nth-child(6) { animation-delay: 3s; }
.msg:nth-child(7) { animation-delay: 3.6s; }
.chat-window__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--placeholder);
  font-size: 14px;
}
.chat-window__mic {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.platform {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.platform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--primary-light), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.platform:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.platform:hover::before { opacity: 1; }
.platform__icon {
  font-size: 40px;
  margin-bottom: 16px;
  position: relative;
}
.platform__icon--img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--bg-grad-2);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(24, 51, 37, 0.1);
}
.platform__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
}
.platform p { color: var(--text-2); font-size: 14px; margin: 0; position: relative; }
.platforms__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.platforms__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-grad-3) 100%); }
.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.privacy__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}
.privacy__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.privacy__list li span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}
.privacy__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  position: relative;
}
.lock-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.lock-scene__ring {
  position: absolute;
  inset: 0;
  border: 1.5px dashed var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: ringSpin 20s linear infinite;
}
.lock-scene__ring--1 { animation-duration: 30s; }
.lock-scene__ring--2 { inset: 10%; animation-duration: 20s; animation-direction: reverse; opacity: 0.6; }
.lock-scene__ring--3 { inset: 22%; animation-duration: 15s; opacity: 0.8; }
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
.lock-scene__core {
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 20px 40px rgba(47, 110, 75, 0.3));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.lock-scene__core img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   FAMILY
   ============================================================ */
.family { background: var(--surface); }
.family__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
}
.family__card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-grad-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}
.family__card--center {
  background: linear-gradient(135deg, var(--primary) 0%, #1F5635 100%);
  color: #fff;
  transform: scale(1.05);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.family__card--center h4, .family__card--center p { color: #fff; }
.family__card--center .family__avatar { background: #fff; color: var(--primary-dark); }
.family__card:hover { transform: translateY(-6px); }
.family__card--center:hover { transform: scale(1.05) translateY(-6px); }
.family__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c, var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  margin: 0 auto 16px;
  font-family: 'Space Grotesk', sans-serif;
}
.family__card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.family__card p { color: var(--text-2); font-size: 14px; margin: 0; }
.family__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-grad-2);
}
.family__visual img { width: 100%; height: auto; }

/* ============================================================
   ADVANCED
   ============================================================ */
.advanced { background: linear-gradient(180deg, var(--bg-grad-3) 0%, var(--surface) 100%); }
.advanced__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.advanced__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.advanced__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.advanced__media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-grad-2);
  border-bottom: 1px solid var(--border);
}
.advanced__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.advanced__card:hover .advanced__media img {
  transform: scale(1.06);
}

.advanced__content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.advanced__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}
.advanced__card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}
.advanced__card p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote { background: var(--surface); padding: 100px 0; }
.quote__wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.quote__mark {
  display: block;
  font-family: 'Space Grotesk', serif;
  font-size: 200px;
  line-height: 0.5;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: -40px;
}
.quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.heart {
  display: inline-block;
  color: var(--accent-red);
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%, 75% { transform: scale(1.15); }
}
.quote__rule {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 32px auto;
}
.quote__attr {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--text-2) !important;
  letter-spacing: 0 !important;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  position: relative;
  background: linear-gradient(135deg, #0F2A1E 0%, #183325 50%, #1F5635 100%);
  color: #fff;
  overflow: hidden;
}
[data-theme="light"] .download {
  background: linear-gradient(135deg, #183325 0%, #2F6E4B 100%);
}
.download__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.download__bg .orb--green {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(80, 200, 130, 0.4), transparent 70%);
  top: -100px; right: -100px;
  opacity: 0.6;
}
.download__bg .orb--mint {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(120, 220, 160, 0.3), transparent 70%);
  bottom: -100px; left: -100px;
  opacity: 0.6;
}
.download__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  transition: all 0.3s var(--ease);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.store-btn:hover { transform: translateY(-3px); background: #1a1a1a; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
.store-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 11px; opacity: 0.8; }
.store-btn strong { display: block; font-size: 19px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand p { color: var(--text-2); font-size: 14px; margin: 16px 0 24px; max-width: 320px; }
.footer__brand .nav__brand { margin-bottom: 4px; }
.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-grad-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.footer__socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}
.footer__socials svg { width: 18px; height: 18px; }
.footer__col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.footer__col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--primary); }
.footer__addr { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; padding-bottom: 60px; }
  .hero__visual { max-width: 600px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; flex-direction: column; }
  .feature-card--wide .feature-card__media { width: 100%; }
  .finchat__grid, .privacy__grid { grid-template-columns: 1fr; gap: 40px; }
  .platforms__grid, .advanced__grid, .family__cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .feature-row { gap: 12px; }
  .feature-row li { font-size: 12px; }
  .feature-row__icon { width: 32px; height: 32px; }
  .feature-row__icon svg { width: 16px; height: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container, .nav__inner, .hero__inner { padding-left: 18px; padding-right: 18px; }
  .hero__title { font-size: 64px; }
  .hero__eyebrow { font-size: 15px; }
  .hero__sub { font-size: 16px; }
  .hero__tag { font-size: 24px; }
  .hero__visual { height: 460px; transform: scale(0.85); transform-origin: top center; margin-top: 0; }
  .phone { width: 200px; height: 420px; }
  .phone__frame::after {
    width: 74px;
    height: 18px;
    top: 11px;
    border-radius: 16px;
  }
  .phone__notch {
    width: 68px;
    height: 14px;
    top: 14px;
    border-radius: 12px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .platforms__grid, .advanced__grid, .family__cards { grid-template-columns: 1fr; }
  .feature-card {
    height: auto;
  }
  .feature-card--wide {
    grid-column: span 1;
  }
  .feature-card--wide .feature-card__media {
    min-height: 0;
    aspect-ratio: 16/9;
  }
  .feature-card__media {
    aspect-ratio: 16/9;
  }
  .feature-card__body {
    padding: 20px;
    gap: 8px;
  }
  .feature-card h3 {
    font-size: 19px;
  }
  .feature-card p {
    font-size: 14.5px;
  }
  .feature-card__list {
    margin-top: 12px;
    padding-top: 0;
    gap: 6px;
  }
  .feature-card__list li {
    font-size: 13.5px;
  }
  .store-row { flex-direction: column; }
  .store-btn { width: 100%; max-width: 280px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .nav__actions .btn { display: none; }
  .hero__ai-card {
    left: -10px;
  }
  .hero__ai-card--resilience {
    left: auto;
    bottom: 130px;
    right: -55px;
  }
  .hero__ai-card--rent {
    left: 0;
  }
  .platform--web, .btn--web {
    display: none;
  }
  .quote__mark { font-size: 120px; }
  .feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .feature-row li {
    font-size: 13px;
  }
  .feature-row__cta {
    grid-column: span 2;
    margin-left: 0;
    width: 100%;
  }
  .feature-row__cta .btn {
    width: 100%;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
