/* Equilibra Landing — professional fintech aesthetic */
:root {
  color-scheme: dark light;
  --primary: #6D5EF8;
  --primary-light: #8B7DFA;
  --primary-dark: #5b4de0;
  --primary-glow: rgba(109, 94, 248, 0.4);
  --bg: #0B0D12;
  --bg-alt: #121625;
  --card: #121625;
  --card-alt: #0F1320;
  --border: #1E2433;
  --text: #F7F8FA;
  --text-secondary: #B8C0CC;
  --green: #22C55E;
  --red: #EF4444;
  --amber: #D97706;
  --teal: #0D9488;
  --rose: #E11D48;
  --blue: #2563EB;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-bg: rgba(11, 13, 18, 0.72);
  --header-bg-scrolled: rgba(11, 13, 18, 0.92);
  --header-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --menu-bg: rgba(11, 13, 18, 0.98);
  --surface-glass: rgba(18, 22, 37, 0.8);
  --surface-muted: rgba(18, 22, 37, 0.6);
  --surface-solid: rgba(18, 22, 37, 0.85);
  --surface-soft: rgba(18, 22, 37, 0.5);
  --surface-faint: rgba(18, 22, 37, 0.4);
  --input-bg: rgba(11, 13, 18, 0.6);
  --input-placeholder: rgba(184, 192, 204, 0.55);
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --ghost-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --grid-line: rgba(255, 255, 255, 0.02);
  --glow-orb-2: rgba(13, 148, 136, 0.12);
  --glow-orb-3: rgba(139, 125, 250, 0.1);
  --glow-orb-1-opacity: 0.45;
  --primary-border: rgba(109, 94, 248, 0.35);
  --primary-border-soft: rgba(109, 94, 248, 0.2);
  --primary-border-strong: rgba(109, 94, 248, 0.45);
  --primary-surface: rgba(109, 94, 248, 0.15);
  --primary-surface-soft: rgba(109, 94, 248, 0.08);
  --primary-surface-faint: rgba(109, 94, 248, 0.1);
  --primary-ring: rgba(109, 94, 248, 0.15);
  --focus-border: rgba(109, 94, 248, 0.55);
  --section-glow: rgba(109, 94, 248, 0.06);
  --card-spotlight: rgba(109, 94, 248, 0.12);
  --card-hover-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(109, 94, 248, 0.1);
  --gradient-text: linear-gradient(135deg, #c4b5fd 0%, var(--primary-light) 40%, var(--primary) 70%, #a78bfa 100%);
  --cta-bg: linear-gradient(135deg, rgba(18, 22, 37, 0.9) 0%, rgba(109, 94, 248, 0.14) 100%);
  --cta-glow: rgba(109, 94, 248, 0.15);
  --cta-ring: rgba(109, 94, 248, 0.3);
  --cta-ring-soft: rgba(109, 94, 248, 0.12);
  --on-primary: #fff;
  --device-bg: #0B0D12;
  --device-card: #121625;
  --device-card-alt: #0F1320;
  --device-border: #1E2433;
  --device-text: #F7F8FA;
  --device-text-secondary: #B8C0CC;
  --device-frame: linear-gradient(145deg, #22252f 0%, #14161e 100%);
  --device-notch: #14161e;
  --device-frame-border: rgba(255, 255, 255, 0.08);
  --device-frame-inset: rgba(255, 255, 255, 0.06);
  --device-frame-shadow: rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: light) {
  :root {
    --primary-light: #5B4DE0;
    --primary-glow: rgba(109, 94, 248, 0.22);
    --bg: #F5F6FA;
    --bg-alt: #FFFFFF;
    --card: #FFFFFF;
    --card-alt: #EEF0F6;
    --border: #DDE1EA;
    --text: #0F1320;
    --text-secondary: #5C6578;
    --shadow: 0 20px 60px rgba(15, 19, 32, 0.1);
    --header-bg: rgba(255, 255, 255, 0.82);
    --header-bg-scrolled: rgba(255, 255, 255, 0.96);
    --header-shadow: 0 8px 32px rgba(15, 19, 32, 0.08);
    --menu-bg: rgba(255, 255, 255, 0.98);
    --surface-glass: rgba(255, 255, 255, 0.92);
    --surface-muted: rgba(255, 255, 255, 0.78);
    --surface-solid: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --surface-faint: rgba(255, 255, 255, 0.55);
    --input-bg: #FFFFFF;
    --input-placeholder: rgba(92, 101, 120, 0.55);
    --ghost-bg: rgba(15, 19, 32, 0.04);
    --ghost-bg-hover: rgba(15, 19, 32, 0.07);
    --glass-line: rgba(15, 19, 32, 0.08);
    --glass-highlight: rgba(15, 19, 32, 0.04);
    --grid-line: rgba(15, 19, 32, 0.05);
    --glow-orb-2: rgba(13, 148, 136, 0.08);
    --glow-orb-3: rgba(109, 94, 248, 0.08);
    --glow-orb-1-opacity: 0.2;
    --primary-border: rgba(109, 94, 248, 0.4);
    --primary-border-soft: rgba(109, 94, 248, 0.22);
    --primary-border-strong: rgba(109, 94, 248, 0.5);
    --primary-surface: rgba(109, 94, 248, 0.12);
    --primary-surface-soft: rgba(109, 94, 248, 0.06);
    --primary-surface-faint: rgba(109, 94, 248, 0.08);
    --primary-ring: rgba(109, 94, 248, 0.12);
    --focus-border: rgba(109, 94, 248, 0.55);
    --section-glow: rgba(109, 94, 248, 0.05);
    --card-spotlight: rgba(109, 94, 248, 0.08);
    --card-hover-shadow: 0 20px 48px rgba(15, 19, 32, 0.1), 0 0 0 1px rgba(109, 94, 248, 0.12);
    --gradient-text: linear-gradient(135deg, #5b4de0 0%, var(--primary) 40%, var(--primary-dark) 70%, #7c3aed 100%);
    --cta-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(109, 94, 248, 0.1) 100%);
    --cta-glow: rgba(109, 94, 248, 0.1);
    --cta-ring: rgba(109, 94, 248, 0.28);
    --cta-ring-soft: rgba(109, 94, 248, 0.1);
  }

  .waitlist-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6578' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  max-width: 100%;
  margin-inline: auto;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

/* Logo wrapper — consistent branding */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-wrap img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.logo-wrap--xs { width: 28px; height: 28px; border-radius: 8px; }
.logo-wrap--sm { width: 36px; height: 36px; border-radius: 10px; }
.logo-wrap--md { width: 40px; height: 40px; border-radius: 12px; }
.logo-wrap--lg { width: 56px; height: 56px; border-radius: 16px; }

.logo-wrap--glow {
  box-shadow: 0 0 24px var(--primary-glow);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(109, 94, 248, 0.3); }
  50% { box-shadow: 0 0 32px rgba(109, 94, 248, 0.55); }
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  animation: orbDrift 18s ease-in-out infinite;
}

.bg-glow--1 {
  width: 700px;
  height: 700px;
  background: var(--primary-glow);
  top: -250px;
  right: -200px;
  opacity: var(--glow-orb-1-opacity);
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: var(--glow-orb-2);
  bottom: 15%;
  left: -150px;
  animation-delay: -6s;
}

.bg-glow--3 {
  width: 400px;
  height: 400px;
  background: var(--glow-orb-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  width: 100%;
  max-width: 100%;
}

.header.scrolled {
  height: 60px;
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
  box-shadow: var(--header-shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.nav__brand:hover { opacity: 0.85; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__link.active { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.25s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn--primary:hover::before { transform: translateX(100%); }

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 12px 40px var(--primary-glow);
}

.btn--ghost {
  background: var(--ghost-bg);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--primary-border);
}

.btn--disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn--disabled::before {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}

.hero.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.hero__content {
  min-width: 0;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-surface);
  color: var(--primary-light);
  flex-shrink: 0;
}

.pill__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  min-width: 0;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 520px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

.phone {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.phone__frame {
  width: 280px;
  max-width: 100%;
  background: var(--device-frame);
  border-radius: 36px;
  padding: 12px;
  border: 1px solid var(--device-frame-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--device-frame-inset),
    0 0 0 1px var(--device-frame-shadow);
}

.phone__notch {
  width: 100px;
  height: 24px;
  background: var(--device-notch);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.phone__screen--app {
  --bg: var(--device-bg);
  --card: var(--device-card);
  --card-alt: var(--device-card-alt);
  --border: var(--device-border);
  --text: var(--device-text);
  --text-secondary: var(--device-text-secondary);
}

.phone__screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 16px;
  min-height: 500px;
  overflow: hidden;
}

.mock-splash {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mock-splash__name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-avatar { border-radius: 8px; }

.mock-balance {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(109, 94, 248, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mock-balance::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.mock-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 4px;
  width: 100%;
}

.mock-amount {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  width: 100%;
  line-height: 1.15;
}

.mock-pills {
  display: flex;
  gap: 8px;
  width: 100%;
}

.mock-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  flex: 1;
  text-align: center;
  min-width: 0;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.mock-bar {
  flex: 1;
  height: 0;
  background: linear-gradient(to top, var(--primary-dark), var(--primary-light));
  border-radius: 6px 6px 2px 2px;
  opacity: 0.75;
  transform-origin: bottom;
  animation: barGrow 1s var(--ease-out) forwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.08s);
}

@keyframes barGrow {
  to { height: var(--h); }
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateX(12px);
  animation: slideIn 0.6s var(--ease-out) forwards;
  animation-delay: calc(1.2s + var(--i, 0) * 0.12s);
  min-width: 0;
}

.mock-item > div {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.mock-icon-wrap {
  background: var(--primary-surface);
  padding: 6px;
  flex-shrink: 0;
}

.mock-icon-wrap--green { background: rgba(34, 197, 94, 0.15); }

.mock-item__title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-item__date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-item__value {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  line-height: 1.2;
  padding-left: 6px;
}

.mock-item__value--red { color: var(--red); }
.mock-item__value--green { color: var(--green); }

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  z-index: 3;
  backdrop-filter: blur(16px);
  animation: floatCard 5s ease-in-out infinite;
  transition: transform 0.15s linear;
}

.floating-card strong {
  display: block;
  font-weight: 700;
}

.floating-card span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.floating-card--1 {
  top: 8%;
  left: -24px;
  animation-delay: 0s;
}

.floating-card--2 {
  bottom: 12%;
  right: -36px;
  animation-delay: 2.5s;
}

.floating-card__logo {
  background: rgba(109, 94, 248, 0.2);
  padding: 4px;
}

.floating-card__logo--ai {
  background: rgba(34, 197, 94, 0.15);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(0.5deg); }
  75% { transform: translateY(6px) rotate(-0.5deg); }
}

.floating-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  width: 64px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), #4ade80);
  border-radius: 3px;
  animation: progressFill 2s var(--ease-out) 1.5s forwards;
}

@keyframes progressFill {
  to { width: 72%; }
}

/* Sections */
.section {
  padding: 100px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  position: relative;
}

.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--section-glow), transparent);
  pointer-events: none;
}

.section--steps { padding-bottom: 60px; }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section__eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--card-spotlight), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  border-color: var(--primary-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease-spring);
}

.feature-card:hover .feature-card__icon { transform: scale(1.08); }

.feature-card__icon--purple { background: var(--primary-surface); color: var(--primary-light); }
.feature-card__icon--blue { background: rgba(37, 99, 235, 0.15); color: var(--blue); }
.feature-card__icon--teal { background: rgba(13, 148, 136, 0.15); color: var(--teal); }
.feature-card__icon--amber { background: rgba(217, 119, 6, 0.15); color: var(--amber); }
.feature-card__icon--green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.feature-card__icon--rose { background: rgba(225, 29, 72, 0.15); color: var(--rose); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split--reverse .split__content { order: 2; }
.split--reverse .split__visual { order: 1; }

.split__content,
.split__visual {
  min-width: 0;
  max-width: 100%;
}

.check-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.check-list__item svg {
  flex-shrink: 0;
  color: var(--green);
}

.split__content.visible .check-list__item {
  opacity: 1;
  transform: translateX(0);
}

.split__content.visible .check-list__item:nth-child(1) { transition-delay: 0.15s; }
.split__content.visible .check-list__item:nth-child(2) { transition-delay: 0.25s; }
.split__content.visible .check-list__item:nth-child(3) { transition-delay: 0.35s; }

/* Connect card */
.connect-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.connect-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.connect-card__logo {
  background: var(--primary-surface);
  animation: logoPulse 4s ease-in-out infinite;
}

.connect-card__header strong {
  display: block;
  font-size: 1.05rem;
}

.connect-card__header span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.connect-card__banks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.bank-chip {
  padding: 8px 16px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}

.bank-chip--anim {
  opacity: 0;
  transform: translateY(8px);
}

.connect-card.visible .bank-chip--anim {
  animation: chipIn 0.5s var(--ease-out) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.08s);
}

@keyframes chipIn {
  to { opacity: 1; transform: translateY(0); }
}

.bank-chip:hover {
  border-color: var(--primary-border-strong);
  background: var(--primary-surface-soft);
  transform: translateY(-2px);
}

.connect-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* Chat */
.chat-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.chat-card__header strong {
  display: block;
  font-size: 0.9rem;
}

.chat-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble--anim {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.chat-card.visible .chat-bubble--anim {
  animation: bubbleIn 0.55s var(--ease-out) forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 0.18s);
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble--ai {
  align-self: flex-start;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble--insight {
  border-color: var(--primary-border);
  background: var(--primary-surface-faint);
}

.chat-bubble__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 6px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s;
  min-width: 0;
}

.step:hover {
  border-color: var(--border);
  background: var(--surface-faint);
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.step__logo-bg {
  position: absolute;
  opacity: 0.15;
  filter: brightness(2);
}

.step__number span { position: relative; z-index: 1; }

.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
  width: 100%;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  min-width: 0;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.plan-card--featured {
  background: var(--cta-bg);
  border-color: var(--primary-border-soft);
  box-shadow: 0 16px 48px var(--primary-glow);
  position: relative;
}

.plan-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--cta-glow), transparent 60%);
  pointer-events: none;
}

.plan-card__header,
.plan-card__features,
.plan-card__cta {
  position: relative;
  z-index: 1;
}

.plan-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ghost-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.plan-card__badge--premium {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary-light);
}

.plan-card__name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.plan-card__amount {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-card__amount--soon {
  font-size: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-card__period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-card__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.plan-card__features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.plan-card__feature--muted {
  color: var(--text-secondary);
  opacity: 0.75;
}

.plan-card__feature--muted svg {
  color: var(--text-secondary);
  opacity: 0.6;
}

.plan-card__cta {
  width: 100%;
  justify-content: center;
  min-height: 54px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.plans-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* CTA */
.cta-section {
  padding: 40px 0 100px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.cta-card {
  text-align: center;
  background: var(--cta-bg);
  border: 1px solid var(--primary-border-soft);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--cta-glow), transparent 55%);
  pointer-events: none;
}

.cta-card__logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}

.cta-card__ring {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--cta-ring);
  border-radius: 24px;
  animation: ringPulse 3s ease-in-out infinite;
}

.cta-card__ring--2 {
  inset: -18px;
  border-color: var(--cta-ring-soft);
  animation-delay: 1.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}

.cta-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}

.cta-card > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-inline: auto;
  position: relative;
}

.cta-card__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.cta-card__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
}

/* Waitlist form */
.waitlist-form {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.waitlist-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waitlist-form__field:first-child,
.waitlist-form__field:nth-child(2) {
  grid-column: 1 / -1;
}

.waitlist-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.waitlist-form__optional {
  font-weight: 500;
  opacity: 0.75;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8C0CC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.waitlist-form input::placeholder {
  color: var(--input-placeholder);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.waitlist-form input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(239, 68, 68, 0.5);
}

.waitlist-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form__submit {
  width: 100%;
  margin-top: 4px;
}

.waitlist-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.waitlist-form__message {
  min-height: 1.25rem;
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
}

.waitlist-form__message--success {
  color: var(--green);
}

.waitlist-form__message--error {
  color: var(--red);
}

.waitlist-form__privacy {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.waitlist-form--success input,
.waitlist-form--success select,
.waitlist-form--success .waitlist-form__submit {
  pointer-events: none;
  opacity: 0.55;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__links { display: flex; gap: 20px; }

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

.reveal[data-reveal="up"] { transform: translateY(32px); }
.reveal[data-reveal="left"] { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }
.reveal[data-reveal="scale"] { transform: scale(0.94); }

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .mock-bar { height: var(--h); }
  .mock-item { opacity: 1; transform: none; }
}

/* Responsive */
@media (min-width: 961px) {
  .hero__visual {
    overflow: visible;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 48px;
    min-height: auto;
    overflow: visible;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; width: 100%; }
  .hero__visual {
    margin-top: 32px;
    width: 100%;
    max-width: min(340px, 100%);
    margin-inline: auto;
    padding: 52px 8px 40px;
    min-height: 540px;
    overflow: visible;
  }

  .floating-card {
    display: flex;
    padding: 10px 12px;
    gap: 10px;
    font-size: 0.72rem;
    max-width: min(148px, 46%);
    z-index: 4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .floating-card strong {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .floating-card span {
    font-size: 0.66rem;
    line-height: 1.35;
    white-space: normal;
  }

  .floating-card--1 {
    top: 4px;
    left: 0;
    right: auto;
  }

  .floating-card--2 {
    bottom: 4px;
    right: 0;
    left: auto;
    top: auto;
  }

  .floating-card .progress-bar {
    width: 52px;
    margin-top: 2px;
  }

  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split, .split--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse .split__content,
  .split--reverse .split__visual { order: unset; }

  .split__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section__eyebrow { justify-content: center; }

  .check-list {
    width: 100%;
    max-width: 420px;
    text-align: left;
  }

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] {
    transform: translateY(32px);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .section__header { margin-bottom: 40px; }

  .hero {
    padding-bottom: 56px;
    gap: 36px;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
    width: 100%;
    max-width: 100%;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .stat strong { font-size: 0.85rem; }
  .stat span { font-size: 0.72rem; }

  .phone__frame {
    width: min(300px, calc(100% - 16px));
    max-width: 100%;
    margin-inline: auto;
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 var(--device-frame-inset),
      0 0 0 1px var(--device-frame-shadow);
  }

  .phone-glow {
    width: min(300px, calc(100% - 16px));
    height: 480px;
    max-width: 100%;
  }

  .phone__screen {
    min-height: 470px;
    padding: 14px 12px;
  }

  .mock-splash {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .mock-balance {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .mock-amount {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .mock-pills {
    gap: 6px;
  }

  .mock-pill {
    padding: 6px 10px;
    font-size: 0.68rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .mock-chart {
    height: 72px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .mock-item {
    padding: 11px 10px;
    border-radius: 14px;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  }

  .mock-item__title {
    font-size: 0.76rem;
  }

  .mock-item__date {
    font-size: 0.66rem;
  }

  .mock-item__value {
    font-size: 0.72rem;
    padding-left: 4px;
  }

  .features-grid { grid-template-columns: 1fr; }

  .feature-card { padding: 22px; }

  .connect-card,
  .chat-card {
    padding: 22px 18px;
  }

  .bank-chip {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .chat-bubble {
    font-size: 0.85rem;
    padding: 12px 14px;
    max-width: 95%;
  }

  .waitlist-form {
    width: 100%;
    max-width: 100%;
  }

  .waitlist-form input,
  .waitlist-form select {
    max-width: 100%;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-card__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .waitlist-form__grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form__field:first-child,
  .waitlist-form__field:nth-child(2) {
    grid-column: auto;
  }

  .plan-card {
    padding: 28px 22px;
  }

  .plan-card__amount {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .container,
  .hero.container {
    width: min(100% - 24px, var(--container));
    max-width: 100%;
  }

  .bg-glow--1 {
    width: min(320px, 80vw);
    height: 320px;
    right: -100px;
  }

  .bg-glow--2 {
    width: min(260px, 70vw);
    left: -80px;
  }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    gap: 8px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
    overflow-y: auto;
  }

  .nav__menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 1rem;
    padding: 14px 4px;
    width: 100%;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 12px 16px;
  }

  .pill {
    font-size: 0.72rem;
    padding: 5px 12px 5px 6px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
    margin-inline: auto;
  }

  .stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .phone-glow {
    width: min(280px, calc(100% - 12px));
    height: 400px;
    max-width: 100%;
  }

  .floating-card {
    max-width: min(136px, 44%);
    padding: 8px 10px;
  }

  .floating-card strong {
    font-size: 0.7rem;
  }

  .floating-card span {
    font-size: 0.62rem;
  }

  .section { padding: 56px 0; }

  .section__title {
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
  }

  .section__desc {
    font-size: 0.95rem;
  }

  .split { gap: 28px; }

  .step { padding: 24px 16px; }

  .footer {
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .bg-glow--1 {
    width: min(280px, 75vw);
    height: 280px;
    right: -80px;
  }

  .bg-glow--3 { display: none; }
}

@media (max-width: 380px) {
  .container,
  .hero.container {
    width: min(100% - 20px, var(--container));
  }

  .hero__title br { display: none; }

  .phone__frame {
    width: min(280px, calc(100% - 8px));
  }

  .hero__visual {
    max-width: min(320px, 100%);
    padding-inline: 4px;
  }

  .mock-pills {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
  }

  .mock-header {
    font-size: 0.78rem;
  }

  .cta-card__logo-wrap {
    width: 80px;
    height: 80px;
  }

  .cta-card__logo {
    width: 64px;
    height: 64px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .phone {
    transform: none !important;
  }

  .btn--magnetic {
    transform: none !important;
  }

  .floating-card {
    animation: none;
  }
}
