/* ==========================================================================
   Previu Landing Page — Premium Dark-First Stylesheet
   Glassmorphism · Scroll-Driven Animations · Mood-Reactive Colors
   ========================================================================== */

/* ==========================================================================
   1. @property Declarations
   ========================================================================== */
@property --mood-color {
  syntax: "<color>";
  initial-value: #0D9488;
  inherits: true;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ==========================================================================
   2. Custom Properties (:root)
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg-deep: #050810;
  --bg-card: rgba(255, 255, 255, 0.04);

  /* Brand — Teal */
  --primary: #0D9488;
  --primary-light: #14B8A6;
  --primary-dark: #0F766E;
  --primary-glow: rgba(13, 148, 136, 0.4);

  /* Accent — Indigo */
  --accent: #6366F1;
  --accent-dark: #4F46E5;
  --accent-glow: rgba(99, 102, 241, 0.3);

  /* Personality glow colors */
  --hype: #FBBF24;
  --hype-glow: rgba(251, 191, 36, 0.4);
  --roast: #FB7185;
  --roast-glow: rgba(251, 113, 133, 0.4);

  /* Legacy aliases used in phone mocks */
  --amber: #FBBF24;
  --rose: #FB7185;

  /* Text */
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --text-dark-sub: #475569;

  /* Surfaces */
  --surface-light: #F8FAFC;
  --white: #FFFFFF;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --h1-size: clamp(2.75rem, 6vw, 4.5rem);
  --h2-size: clamp(2.25rem, 4.5vw, 3.5rem);

  /* Spacing & Shape */
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --max-width: 1200px;
  --section-pad: 7rem 2rem;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 100ms);
}

.reveal:not(.visible) {
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* No-JS fallback: show everything */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* --- Glassmorphism --- */
.glass {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@supports not (backdrop-filter: blur(16px)) {
  .glass {
    background: rgba(15, 20, 35, 0.95) !important;
  }
  .nav {
    background: rgba(5, 8, 16, 0.96) !important;
  }
  .drawer-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
  }
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- View Transitions --- */
@view-transition {
  navigation: auto;
}

/* --- Scroll-Driven Animations (progressive enhancement) --- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  @keyframes scrollReveal {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   5. Skip Link & Focus
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1100;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-glow);
  outline-offset: 3px;
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 16, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-center {
  display: flex;
  gap: 2.5rem;
}

.nav-center a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-smooth);
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: center;
}

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

.nav-center a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-lang {
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  transition: color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
  letter-spacing: 0.05em;
}

.btn-lang:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-deep);
  z-index: 1002;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  visibility: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.drawer a:hover {
  color: var(--primary-light);
}

.drawer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  text-align: center;
}

.drawer .drawer-lang {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Mesh Gradient (separate div, not pseudo) */
.mesh-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.3) 0px, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(99, 102, 241, 0.25) 0px, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.2) 0px, transparent 50%);
  background-size: 150% 150%;
  filter: blur(60px);
  opacity: 0;
  animation: fadeIn 1.5s ease 0.3s forwards, mesh-move 12s ease-in-out infinite alternate;
}

/* Particle canvas */
canvas[data-particles] {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: slideInLeft 0.6s var(--ease-out) both;
}

.hero-content h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Store Buttons — Dark Theme */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-btn-dark {
  background: var(--white);
  color: var(--text-dark);
}

.store-btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.store-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Shimmer sweep on hover */
.store-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-200%);
  transition: transform 0.5s var(--ease-out);
}

.store-btn:hover::after {
  transform: translateX(300%);
  will-change: transform;
}

/* Coming Soon Badge */
.coming-soon-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.2);
  color: #C7D2FE;
  margin-left: 0.25rem;
}

.store-btn-dark .coming-soon-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.hero-trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Hero Phone */
.hero-phone {
  display: flex;
  justify-content: center;
  animation: slideInRight 0.6s var(--ease-out) 0.2s both;
  position: relative;
  transition: transform 0.15s ease-out;
}

.hero-phone::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(13, 148, 136, 0.2) 0%,
    rgba(99, 102, 241, 0.1) 40%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(30px);
}

/* ==========================================================================
   8. Phone Mockup Component
   ========================================================================== */
.phone {
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, #2a2a40 0%, #1a1a2e 20%, #1a1a2e 80%, #0f0f20 100%);
  border-radius: 44px;
  padding: 10px;
  position: relative;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(15, 23, 42, 0.2),
    0 2px 4px rgba(15, 23, 42, 0.16),
    0 4px 8px rgba(15, 23, 42, 0.14),
    0 8px 16px rgba(15, 23, 42, 0.12),
    0 16px 32px rgba(15, 23, 42, 0.10),
    0 24px 48px rgba(15, 23, 42, 0.08),
    0 32px 64px 8px rgba(15, 23, 42, 0.06),
    0 0 80px 20px rgba(13, 148, 136, 0.06);
}

/* Side button (power) */
.phone::before {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 120px;
  width: 3px;
  height: 40px;
  background: linear-gradient(180deg, #2a2a40, #1a1a2e, #2a2a40);
  border-radius: 0 2px 2px 0;
}

/* Volume buttons */
.phone::after {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 100px;
  width: 3px;
  height: 24px;
  background: linear-gradient(180deg, #2a2a40, #1a1a2e, #2a2a40);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 36px 0 0 #1a1a2e;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 11px;
  z-index: 3;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Camera lens inside Dynamic Island */
.phone-notch::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a2e, #050510);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---------- Status Bar ---------- */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  height: 2.75rem;
  position: relative;
  z-index: 4;
}
.status-time {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--white);
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-icon {
  width: 16px;
  height: 11px;
  color: var(--white);
}

/* ---------- SVG Icon Circles ---------- */
.mock-tx-icon, .mock-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-tx-icon svg, .mock-action-icon svg {
  width: 14px;
  height: 14px;
}
.mock-icon-green { background: rgba(13, 148, 136, 0.15); color: #14B8A6; }
.mock-icon-amber { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.mock-icon-teal { background: rgba(13, 148, 136, 0.15); color: #14B8A6; }
.mock-icon-slate { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.mock-icon-rose { background: rgba(251, 113, 133, 0.15); color: #FB7185; }
.mock-icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.mock-icon-primary { background: rgba(13, 148, 136, 0.15); color: #14B8A6; }

/* ---------- Pax Avatar ---------- */
.chat-bubble-row-pax {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
}
.pax-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Bottom Tab Bar ---------- */
.mock-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.375rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.mock-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}
.mock-tab-item svg { width: 16px; height: 16px; }
.mock-tab-item.mock-tab-active { color: var(--primary-light); }
.mock-pax-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 4px 1px rgba(0, 0, 0, 0.5);
}

/* Glass reflection overlay — hard diagonal glint + soft ambient wash */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.12) 32%,
      rgba(255, 255, 255, 0) 32.5%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 50%
    );
  pointer-events: none;
  z-index: 5;
  border-radius: 36px;
}

/* Glass Phone variant (Pax panels) */
.phone.glass-phone {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(15, 23, 42, 0.2),
    0 4px 8px rgba(15, 23, 42, 0.14),
    0 8px 16px rgba(15, 23, 42, 0.12),
    0 16px 32px rgba(15, 23, 42, 0.10),
    0 32px 64px 8px rgba(15, 23, 42, 0.06);
}

/* Phone float animation for feature section */
@keyframes phone-float {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

.feature-phone .phone {
  animation: phone-float 3.5s ease-in-out infinite alternate;
}

/* ---------- Chat Screen Variant ---------- */
.phone-screen-chat {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
}

.chat-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.chat-header-name {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.chat-header-status {
  color: var(--primary-light);
  font-size: 0.6875rem;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1.125rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Stagger animation for chat bubbles inside Pax panels */
.pax-panel .chat-bubble-user {
  animation: fadeInUp 0.4s var(--ease-out) 0.2s both;
}

.pax-panel .chat-bubble-pax {
  animation: fadeInUp 0.4s var(--ease-out) 0.5s both;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 0.25rem;
}

.chat-bubble-pax {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 0.25rem;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  border-bottom-left-radius: 4px;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.typing-indicator.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: typingBounce 1.4s var(--ease-smooth) infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.hero-response {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.hero-response.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter cursor */
.typewriter-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--primary-light);
  margin-left: 1px;
}

/* ---------- Dashboard Screen Variant ---------- */
.phone-screen-dashboard {
  background: linear-gradient(180deg, #0C1629 0%, #0F172A 30%, #162033 100%);
  padding: 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mock-balance-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-balance {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.mock-safe {
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-safe-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
}

.mock-safe-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-light);
}

.mock-chart {
  flex: 1;
  position: relative;
  min-height: 100px;
}

.mock-chart svg {
  width: 100%;
  height: 100%;
}

.mock-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.625rem;
  padding: 0.625rem;
  text-align: center;
}

.mock-action .mock-action-icon {
  margin: 0 auto 0.25rem;
}

.mock-action-label {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Budget Screen Variant ---------- */
.phone-screen-budgets {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-screen-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.mock-budget-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem;
}

.mock-budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mock-budget-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
}

.mock-budget-amount {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.mock-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease-out);
  position: relative;
}

.mock-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px 4px 0 0;
}

.mock-progress-fill-green { background: var(--primary-light); }
.mock-progress-fill-amber { background: var(--amber); }
.mock-progress-fill-rose { background: var(--rose); }

.mock-goal-card {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mock-goal-ring {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.mock-goal-ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.mock-goal-ring .track { stroke: rgba(255, 255, 255, 0.1); }
.mock-goal-ring .progress { stroke: var(--accent); }

.mock-goal-info {
  flex: 1;
}

.mock-goal-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
}

.mock-goal-detail {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Journal Screen Variant ---------- */
.phone-screen-journal {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mock-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.1875rem;
  margin-bottom: 0.25rem;
}

.mock-tab {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.375rem;
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.6);
}

.mock-tab-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.mock-tx {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-tx:last-child {
  border-bottom: none;
}

/* mock-tx-icon base styles now in Icon Circles section above */

.mock-tx-info { flex: 1; }

.mock-tx-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
}

.mock-tx-cat {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.6);
}

.mock-tx-amount {
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-tx-negative { color: var(--rose); }
.mock-tx-positive { color: var(--primary-light); }

/* ==========================================================================
   9. Trust Bar
   ========================================================================== */
.trust-bar {
  position: relative;
  margin-top: -2rem;
  z-index: 10;
  padding: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  /* .glass class handles bg, blur, border, radius, shadow */
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   10. Meet Pax
   ========================================================================== */
.pax {
  padding: var(--section-pad);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.pax::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--mood-color, #0D9488);
  pointer-events: none;
  filter: blur(150px);
  opacity: 0.25;
  transition: --mood-color 0.8s ease, background 0.8s ease;
  z-index: 0;
}

.pax[data-mood="coach"]::before { --mood-color: #0D9488; background: #0D9488; }
.pax[data-mood="hype"]::before  { --mood-color: #FBBF24; background: #FBBF24; }
.pax[data-mood="roast"]::before { --mood-color: #FB7185; background: #FB7185; }

.pax > * {
  position: relative;
  z-index: 1;
}

.pax-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.pax h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pax-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pax-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.pax-tab {
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.pax-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.pax-tab.active {
  color: var(--white);
  background: rgba(13, 148, 136, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(13, 148, 136, 0.3);
}

.pax[data-mood="hype"] .pax-tab.active {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--hype);
  box-shadow: 0 0 24px var(--hype-glow);
}

.pax[data-mood="roast"] .pax-tab.active {
  background: rgba(251, 113, 133, 0.2);
  border-color: var(--roast);
  box-shadow: 0 0 24px var(--roast-glow);
}

.pax-panels {
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

.pax-panel {
  position: absolute;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.pax-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pax-trial {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 2rem;
}

/* ==========================================================================
   11. Intelligence Bento Grid
   ========================================================================== */
.intelligence {
  padding: var(--section-pad);
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.intelligence > * {
  position: relative;
  z-index: 1;
}

.intel-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.intel-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.intel-header h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.intel-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* Animated border glow on hover with conic-gradient */
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), transparent 60%, var(--primary-glow) 80%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::before {
  opacity: 1;
  animation: border-spin 6s linear infinite;
}

/* Bento cards start slightly smaller for premium reveal */
.bento-card.reveal {
  transform: translateY(30px) scale(0.97);
}

.bento-card.reveal.visible {
  transform: translateY(0) scale(1);
}

.bento-card:hover,
.bento-card.reveal.visible:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-wide {
  grid-column: span 2;
}

.bento-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-visual {
  margin-top: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

/* Forecast chart visual */
.forecast-chart {
  height: 120px;
  position: relative;
}

.forecast-chart svg {
  width: 100%;
  height: 100%;
}

/* Chart draw animation triggered by .visible */
.visible .forecast-chart path[stroke="#14B8A6"] {
  stroke-dasharray: 420;
  animation: chartDraw 1.5s var(--ease-out) 0.3s both;
}

/* Anomaly visual */
.anomaly-alert {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 0.75rem;
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.anomaly-icon {
  width: 32px;
  height: 32px;
  background: rgba(251, 113, 133, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--roast);
  font-size: 0.875rem;
}

.anomaly-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.anomaly-amount {
  font-weight: 700;
  color: var(--roast);
}

/* Donut chart visual */
.donut-chart {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-chart circle {
  fill: none;
  stroke-linecap: round;
}

/* Hexagon radar visual */
.hex-radar {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.hex-radar svg {
  width: 100%;
  height: 100%;
}

/* Scenario cards */
.scenario-cards {
  display: flex;
  gap: 0.5rem;
}

.scenario-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.625rem;
  padding: 0.625rem;
  text-align: center;
}

.scenario-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scenario-value {
  font-size: 0.875rem;
  font-weight: 700;
}

.scenario-good { color: var(--primary-light); }
.scenario-mid { color: var(--hype); }
.scenario-bad { color: var(--roast); }

/* Insight visual */
.insight-example {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
}

.insight-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.2);
  color: var(--primary-light);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-body {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.insight-reason {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* ==========================================================================
   12. Features (LIGHT section)
   ========================================================================== */
.features {
  background: var(--surface-light);
  color: var(--text-dark);
  padding: var(--section-pad);
  position: relative;
}

/* Section transition: dark → light */
.features::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg-deep), var(--surface-light));
  pointer-events: none;
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.features-header p {
  font-size: 1.125rem;
  color: var(--text-dark-sub);
  max-width: 500px;
  margin: 0 auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block-reverse {
  direction: rtl;
}

.feature-block-reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.feature-text p {
  font-size: 1.0625rem;
  color: var(--text-dark-sub);
  line-height: 1.7;
}

.feature-phone {
  display: flex;
  justify-content: center;
}

/* Lighter shadows on light background — no brand glow */
.features .phone {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 8px 16px rgba(15, 23, 42, 0.04),
    0 16px 32px rgba(15, 23, 42, 0.03),
    0 32px 64px 8px rgba(15, 23, 42, 0.02);
}

/* ==========================================================================
   13. Social Proof
   ========================================================================== */
.proof {
  padding: var(--section-pad);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.proof > * {
  position: relative;
  z-index: 1;
}

.proof-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.proof h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.proof-card {
  padding: 2rem 1rem;
  text-align: center;
}

.proof-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.proof-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.proof-powered {
  margin-top: 2rem;
}

.proof-powered p {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.tech-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-pill {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.tech-pill:hover {
  opacity: 1;
}

/* ==========================================================================
   14. Security
   ========================================================================== */
.security {
  padding: var(--section-pad);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Section transition: light → dark */
.security::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--surface-light), var(--bg-deep));
  pointer-events: none;
  z-index: 0;
}

.security > * {
  position: relative;
  z-index: 1;
}

.security-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.security-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.security-header h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.security-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.security-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.security-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  background: rgba(13, 148, 136, 0.05);
  transform: translateY(-2px);
}

.security-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.security-icon svg {
  width: 32px;
  height: 32px;
}

.security-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.security-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   15. CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad);
  text-align: center;
  background: var(--bg-deep);
}

/* CTA mesh gradient — more indigo/purple */
.cta .mesh-gradient {
  background:
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.35) 0px, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(13, 148, 136, 0.2) 0px, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.25) 0px, transparent 50%);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-stores {
  margin-bottom: 2rem;
}

.cta-launching {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.cta-store-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: default;
}

.cta-early {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.cta-early a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cta-early a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.footer {
  padding: 3rem 2rem;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.footer-contact {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   17. Grain Texture
   ========================================================================== */
.dark-grain::before,
.grain-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* ==========================================================================
   18. Keyframes
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes mesh-move {
  0%   { background-size: 100% 100%;  background-position: 0% 0%; }
  25%  { background-size: 150% 130%;  background-position: 30% 20%; }
  50%  { background-size: 180% 160%;  background-position: 60% 40%; }
  75%  { background-size: 140% 180%;  background-position: 40% 60%; }
  100% { background-size: 120% 140%;  background-position: 20% 80%; }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@keyframes chartDraw {
  from { stroke-dashoffset: 420; }
  to { stroke-dashoffset: 0; }
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   19. Responsive: Tablet (768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 5rem 1.25rem;
  }

  /* Nav */
  .nav-center { display: none; }
  .nav-burger { display: flex; }
  .nav-right .btn { display: none; }

  /* Hero */
  .hero { padding-top: 5rem; min-height: auto; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-trust { display: block; }
  canvas[data-particles] { display: none; }

  /* Trust Bar */
  .trust-bar { margin-top: -1rem; }
  .trust-bar-inner { gap: 1rem; }
  .trust-sep { display: none; }

  /* Pax */
  .pax-panels { min-height: auto; }

  /* Bento */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide { grid-column: span 1; }

  /* Features */
  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-block-reverse { direction: ltr; }
  .feature-phone { order: -1; }

  /* Phone */
  .phone {
    width: 240px;
    height: 500px;
  }

  /* Proof */
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Security */
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* CTA */
  .cta-container { padding: 2rem 1.5rem; }
  .cta-store-badges { flex-direction: column; align-items: center; gap: 0.75rem; }
  .store-badge { width: 100%; max-width: 280px; justify-content: center; }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* ==========================================================================
   20. Responsive: Phone (480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --section-pad: 4rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .pax-tabs {
    flex-wrap: wrap;
  }

  .phone {
    width: 220px;
    height: 460px;
  }

  .phone-screen-chat { padding: 0 0.75rem 0.75rem; }

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

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

  .proof-value {
    font-size: 2rem;
  }
}

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

  html {
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content,
  .hero-phone {
    animation: none;
  }

  .mesh-gradient {
    animation: none;
    opacity: 0.6;
  }

  canvas[data-particles] {
    display: none;
  }
}

.reduced-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reduced-motion .typing-dot {
  animation: none;
}

.reduced-motion canvas[data-particles] {
  display: none;
}

.reduced-motion .feature-phone .phone {
  animation: none;
}
