/* ============================================================
   POCKET SQL — Design System & Page Styles
   Based on MiniMax DESIGN-minimax.md, adapted for Pocket SQL
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
  /* ─ Colors ─ */
  --color-primary:        #0a0a0a;
  --color-on-primary:     #ffffff;
  --color-primary-soft:   #181e25;
  --color-canvas:         #ffffff;
  --color-surface:        #f0f4f8;
  --color-surface-soft:   #f5f7fa;
  --color-hairline:       #e2e8f0;
  --color-hairline-soft:  #edf2f7;

  /* Brand Palette — derived from app screenshots */
  --color-brand-navy:     #0f1d3d;
  --color-brand-navy-mid: #152952;
  --color-brand-blue:     #2563eb;
  --color-brand-blue-mid: #3b82f6;
  --color-brand-blue-deep:#1d4ed8;
  --color-brand-blue-200: #bfdbfe;
  --color-brand-teal:     #10b981;
  --color-brand-teal-light:#d1fae5;
  --color-brand-coral:    #f97316;
  --color-brand-magenta:  #ec4899;
  --color-brand-purple:   #8b5cf6;

  /* Text */
  --color-ink:            #0a0a0a;
  --color-ink-strong:     #000000;
  --color-charcoal:       #1e293b;
  --color-slate:          #475569;
  --color-steel:          #64748b;
  --color-stone:          #94a3b8;
  --color-muted:          #a8aab2;

  /* Semantic */
  --color-success-bg:     #e8ffea;
  --color-success-text:   #1ba673;
  --color-error:          #dc2626;
  --color-on-dark:        #ffffff;
  --color-footer-bg:      #0a0a0a;

  /* ─ Typography ─ */
  --font-primary:   'DM Sans', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:      'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Hero Display */
  --text-hero-size:       80px;
  --text-hero-weight:     600;
  --text-hero-lh:         1.10;
  --text-hero-ls:         -2px;

  /* Display LG */
  --text-display-lg-size: 56px;
  --text-display-lg-weight: 600;
  --text-display-lg-lh:   1.10;
  --text-display-lg-ls:   -1.5px;

  /* Heading LG */
  --text-heading-lg-size: 40px;
  --text-heading-lg-weight: 600;
  --text-heading-lg-lh:   1.20;
  --text-heading-lg-ls:   -1px;

  /* Heading MD */
  --text-heading-md-size: 32px;
  --text-heading-md-weight: 600;
  --text-heading-md-lh:   1.25;
  --text-heading-md-ls:   -0.5px;

  /* Heading SM */
  --text-heading-sm-size: 24px;
  --text-heading-sm-weight: 600;
  --text-heading-sm-lh:   1.30;

  /* Card Title */
  --text-card-title-size: 20px;
  --text-card-title-weight: 600;
  --text-card-title-lh:   1.40;

  /* Subtitle */
  --text-subtitle-size:   18px;
  --text-subtitle-weight: 500;
  --text-subtitle-lh:     1.50;

  /* Body MD */
  --text-body-md-size:    16px;
  --text-body-md-weight:  400;
  --text-body-md-lh:      1.60;

  /* Body SM */
  --text-body-sm-size:    14px;
  --text-body-sm-weight:  400;
  --text-body-sm-lh:      1.50;

  /* Caption */
  --text-caption-size:    13px;
  --text-caption-weight:  400;
  --text-caption-lh:      1.70;

  /* Micro */
  --text-micro-size:      12px;
  --text-micro-weight:    400;
  --text-micro-lh:        1.50;

  /* Button */
  --text-button-size:     14px;
  --text-button-weight:   600;
  --text-button-lh:       1.40;

  /* ─ Spacing ─ */
  --space-xxs:      4px;
  --space-xs:       8px;
  --space-sm:       12px;
  --space-md:       16px;
  --space-lg:       20px;
  --space-xl:       24px;
  --space-xxl:      32px;
  --space-xxxl:     40px;
  --space-section-sm: 48px;
  --space-section:  64px;
  --space-section-lg: 80px;
  --space-hero:     96px;

  /* ─ Rounded ─ */
  --rounded-xs:     4px;
  --rounded-sm:     6px;
  --rounded-md:     8px;
  --rounded-lg:     12px;
  --rounded-xl:     16px;
  --rounded-xxl:    20px;
  --rounded-xxxl:   24px;
  --rounded-hero:   32px;
  --rounded-full:   9999px;

  /* ─ Elevation ─ */
  --shadow-subtle:  0px 1px 2px 0px rgba(0, 0, 0, 0.04);
  --shadow-card:    0px 4px 6px 0px rgba(0, 0, 0, 0.08);
  --shadow-atmospheric: 0px 0px 22px 0px rgba(0, 0, 0, 0.08);
  --shadow-modal:   0px 12px 16px -4px rgba(36, 36, 36, 0.08);

  /* ─ Transitions ─ */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ─ Layout ─ */
  --container-max:  1280px;
  --container-gutter: 32px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-body-md-size);
  font-weight: var(--text-body-md-weight);
  line-height: var(--text-body-md-lh);
  color: var(--color-charcoal);
  background-color: var(--color-canvas);
  overflow-x: hidden;
}

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


/* ── Lucide Icon Utilities ────────────────────────────────── */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-btn {
  width: 18px;
  height: 18px;
}

.icon-label {
  width: 14px;
  height: 14px;
}

.icon-support {
  width: 16px;
  height: 16px;
}

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-blue-deep);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-ink);
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: var(--rounded-xs);
  color: var(--color-brand-blue-deep);
}


/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}


/* ── Typography Classes ───────────────────────────────────── */
.text-hero {
  font-size: var(--text-hero-size);
  font-weight: var(--text-hero-weight);
  line-height: var(--text-hero-lh);
  letter-spacing: var(--text-hero-ls);
}

.text-display-lg {
  font-size: var(--text-display-lg-size);
  font-weight: var(--text-display-lg-weight);
  line-height: var(--text-display-lg-lh);
  letter-spacing: var(--text-display-lg-ls);
}

.text-heading-lg {
  font-size: var(--text-heading-lg-size);
  font-weight: var(--text-heading-lg-weight);
  line-height: var(--text-heading-lg-lh);
  letter-spacing: var(--text-heading-lg-ls);
}

.text-heading-md {
  font-size: var(--text-heading-md-size);
  font-weight: var(--text-heading-md-weight);
  line-height: var(--text-heading-md-lh);
  letter-spacing: var(--text-heading-md-ls);
}

.text-heading-sm {
  font-size: var(--text-heading-sm-size);
  font-weight: var(--text-heading-sm-weight);
  line-height: var(--text-heading-sm-lh);
}

.text-card-title {
  font-size: var(--text-card-title-size);
  font-weight: var(--text-card-title-weight);
  line-height: var(--text-card-title-lh);
}

.text-subtitle {
  font-size: var(--text-subtitle-size);
  font-weight: var(--text-subtitle-weight);
  line-height: var(--text-subtitle-lh);
}

.text-body-md {
  font-size: var(--text-body-md-size);
  font-weight: var(--text-body-md-weight);
  line-height: var(--text-body-md-lh);
}

.text-body-sm {
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  line-height: var(--text-body-sm-lh);
}

.text-caption {
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  line-height: var(--text-caption-lh);
}

.text-micro {
  font-size: var(--text-micro-size);
  font-weight: var(--text-micro-weight);
  line-height: var(--text-micro-lh);
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-primary);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  line-height: var(--text-button-lh);
  padding: 11px 24px;
  border-radius: var(--rounded-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: #222222;
  color: var(--color-on-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: var(--color-on-primary);
}

.btn-tertiary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
}

.btn-tertiary:hover {
  border-color: var(--color-ink);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-on-dark);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}


/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-caption-size);
  font-weight: 600;
  line-height: 1.50;
  border-radius: var(--rounded-full);
  padding: 4px 12px;
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge-free {
  background: var(--color-brand-teal-light);
  color: var(--color-brand-teal);
}

.badge-new {
  background: var(--color-brand-coral);
  color: var(--color-on-dark);
}

.badge-info {
  background: var(--color-brand-blue-200);
  color: var(--color-brand-blue-deep);
}


/* ── Cards ────────────────────────────────────────────────── */
.card-base {
  background: var(--color-canvas);
  border-radius: var(--rounded-xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-hairline);
}

.card-feature {
  background: var(--color-surface);
  border-radius: var(--rounded-xl);
  padding: var(--space-xxl);
}

.card-vibrant {
  border-radius: var(--rounded-hero);
  padding: var(--space-xxl);
  color: var(--color-on-dark);
  position: relative;
  overflow: hidden;
}

.card-vibrant::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}


/* ── Navigation ───────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-hairline-soft);
  height: 64px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-subtle);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-ink);
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-md);
  background: linear-gradient(135deg, var(--color-brand-navy), var(--color-brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}

.nav-links a {
  font-size: var(--text-body-sm-size);
  font-weight: 500;
  color: var(--color-steel);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-blue);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-xxl);
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  font-size: var(--text-subtitle-size);
  font-weight: 500;
  color: var(--color-ink);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-hairline-soft);
  text-decoration: none;
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px; /* nav height */
  background: var(--color-brand-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-brand-navy) 0%, #0c1628 100%);
  z-index: 0;
}

/* Animated grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.2);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.15);
  bottom: 20%;
  right: 15%;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(16, 185, 129, 0.12);
  top: 50%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -20px) scale(1.05); }
  50%      { transform: translate(-20px, 30px) scale(0.95); }
  75%      { transform: translate(20px, 20px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-hero) var(--space-xxl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: var(--text-caption-size);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--rounded-full);
  margin-bottom: var(--space-xxl);
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: var(--text-hero-size);
  font-weight: var(--text-hero-weight);
  line-height: var(--text-hero-lh);
  letter-spacing: var(--text-hero-ls);
  color: var(--color-on-dark);
  margin-bottom: var(--space-xl);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-subtitle-size);
  font-weight: var(--text-subtitle-weight);
  line-height: var(--text-subtitle-lh);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xxxl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xxl);
  flex-wrap: wrap;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-body-sm-size);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}


/* ── Section Styles ───────────────────────────────────────── */
.section {
  padding: var(--space-section-lg) 0;
}

.section-dark {
  background: var(--color-brand-navy);
  color: var(--color-on-dark);
}

.section-surface {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-section-sm);
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-md);
}

.section-dark .section-label {
  color: #60a5fa;
}

.section-header h2 {
  font-size: var(--text-heading-lg-size);
  font-weight: var(--text-heading-lg-weight);
  line-height: var(--text-heading-lg-lh);
  letter-spacing: var(--text-heading-lg-ls);
  margin-bottom: var(--space-md);
}

.section-dark .section-header h2 {
  color: var(--color-on-dark);
}

.section-header p {
  font-size: var(--text-subtitle-size);
  color: var(--color-steel);
  line-height: 1.60;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}


/* ── Why Section ──────────────────────────────────────────── */
.why-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.why-content p {
  font-size: var(--text-body-md-size);
  line-height: 1.75;
  color: var(--color-slate);
  margin-bottom: var(--space-lg);
}

.why-content p:last-child {
  margin-bottom: 0;
}

.why-content strong {
  color: var(--color-ink);
  font-weight: 600;
}


/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  border-radius: var(--rounded-hero);
  padding: var(--space-xxl) var(--space-xxl) var(--space-xxl);
  color: var(--color-on-dark);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.feature-card-navy {
  background: linear-gradient(145deg, #1a2e55 0%, #0f1d3d 100%);
}

.feature-card-teal {
  background: linear-gradient(145deg, #059669 0%, #065f46 100%);
}

.feature-card-blue {
  background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
}

.feature-card-purple {
  background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
}

.feature-card-coral {
  background: linear-gradient(145deg, #ea580c 0%, #c2410c 100%);
}

.feature-card-magenta {
  background: linear-gradient(145deg, #db2777 0%, #9d174d 100%);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-lg);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
  position: relative;
  color: var(--color-on-dark);
}

.feature-card-icon svg,
.feature-card-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: var(--text-heading-sm-size);
  font-weight: var(--text-heading-sm-weight);
  line-height: var(--text-heading-sm-lh);
  color: var(--color-on-dark);
  margin-bottom: var(--space-sm);
  position: relative;
}

.feature-card .feature-tagline {
  font-size: var(--text-body-sm-size);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
  line-height: 1.60;
  position: relative;
}

.feature-card ul {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: auto;
}

.feature-card ul li {
  font-size: var(--text-body-sm-size);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.50;
  padding-left: 20px;
  position: relative;
}

.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}


/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-section-sm) 0;
}

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

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background: var(--color-surface);
  color: var(--color-brand-blue);
}

.stat-icon svg,
.stat-icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.section-dark .stat-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

.stat-number {
  font-size: var(--text-heading-lg-size);
  font-weight: var(--text-heading-lg-weight);
  letter-spacing: var(--text-heading-lg-ls);
  color: var(--color-ink);
  margin-bottom: var(--space-xxs);
}

.section-dark .stat-number {
  color: var(--color-on-dark);
}

.stat-label {
  font-size: var(--text-body-sm-size);
  color: var(--color-steel);
}

.section-dark .stat-label {
  color: rgba(255, 255, 255, 0.5);
}


/* ── Privacy by Design Section ────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.privacy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rounded-xl);
  padding: var(--space-xxl);
  backdrop-filter: blur(8px);
}

.privacy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-lg);
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: #6ee7b7;
}

.privacy-card-icon svg,
.privacy-card-icon [data-lucide] {
  width: 22px;
  height: 22px;
}

.privacy-card h3 {
  font-size: var(--text-card-title-size);
  font-weight: var(--text-card-title-weight);
  color: var(--color-on-dark);
  margin-bottom: var(--space-xs);
}

.privacy-card p {
  font-size: var(--text-body-sm-size);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.60;
}


/* ── Who It's For ─────────────────────────────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.persona-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-xl);
  padding: var(--space-xxl);
  text-align: center;
  transition: all var(--transition-base);
}

.persona-card:hover {
  border-color: var(--color-brand-blue-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.persona-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-full);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-brand-blue);
}

.persona-icon svg,
.persona-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.persona-card h3 {
  font-size: var(--text-card-title-size);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.persona-card p {
  font-size: var(--text-body-sm-size);
  color: var(--color-steel);
  line-height: 1.60;
}


/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.open {
  border-color: var(--color-brand-blue-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-body-md-size);
  font-weight: 600;
  color: var(--color-ink);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-brand-blue);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-stone);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-brand-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--text-body-sm-size);
  color: var(--color-slate);
  line-height: 1.70;
}


/* ── Support CTA Strip ────────────────────────────────────── */
.support-strip {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-purple) 100%);
  border-radius: var(--rounded-hero);
  padding: var(--space-section) var(--space-xxl);
  text-align: center;
  color: var(--color-on-dark);
  position: relative;
  overflow: hidden;
}

.support-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.support-strip h2 {
  font-size: var(--text-heading-md-size);
  font-weight: var(--text-heading-md-weight);
  letter-spacing: var(--text-heading-md-ls);
  color: var(--color-on-dark);
  margin-bottom: var(--space-md);
  position: relative;
}

.support-strip p {
  font-size: var(--text-body-md-size);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xxl);
  position: relative;
}

.support-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
}

.support-channel {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-on-dark);
  font-size: var(--text-body-sm-size);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--rounded-full);
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast);
}

.support-channel:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-on-dark);
}


/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  padding: var(--space-section) 0 var(--space-xxl);
  color: var(--color-on-dark);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: var(--space-xxl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-xxl);
}

.footer-brand p {
  color: var(--color-muted);
  font-size: var(--text-body-sm-size);
  max-width: 300px;
  margin-top: var(--space-sm);
  line-height: 1.60;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-section-sm);
}

.footer-col h4 {
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-on-dark);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-body-sm-size);
  padding: var(--space-xxs) 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-on-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--color-muted);
  font-size: var(--text-micro-size);
  line-height: 1.60;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom-links a {
  color: var(--color-muted);
  font-size: var(--text-micro-size);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-on-dark);
}


/* ── Scroll Reveal Animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }


/* ── Legal Pages (Privacy & Terms) ────────────────────────── */
.legal-page {
  padding-top: 64px; /* nav height */
}

.legal-hero {
  background: linear-gradient(180deg, var(--color-brand-navy) 0%, #152952 100%);
  padding: var(--space-section) 0;
  text-align: center;
  color: var(--color-on-dark);
}

.legal-hero h1 {
  font-size: var(--text-heading-lg-size);
  font-weight: var(--text-heading-lg-weight);
  letter-spacing: var(--text-heading-lg-ls);
  color: var(--color-on-dark);
  margin-bottom: var(--space-sm);
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-body-sm-size);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-section-sm);
  padding: var(--space-section-sm) 0 var(--space-section);
  max-width: 1080px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: var(--text-caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
}

.legal-toc a {
  display: block;
  font-size: var(--text-body-sm-size);
  color: var(--color-steel);
  padding: var(--space-xxs) 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
  transition: all var(--transition-fast);
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--color-ink);
  border-left-color: var(--color-brand-blue);
}

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-size: var(--text-heading-sm-size);
  font-weight: var(--text-heading-sm-weight);
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-hairline-soft);
}

.legal-body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-body h3 {
  font-size: var(--text-card-title-size);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-body p {
  font-size: var(--text-body-md-size);
  color: var(--color-charcoal);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.legal-body ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-body ul li {
  font-size: var(--text-body-md-size);
  color: var(--color-charcoal);
  line-height: 1.75;
  margin-bottom: var(--space-xs);
  position: relative;
  list-style: disc;
}

.legal-body strong {
  color: var(--color-ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--color-brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ── Responsive ───────────────────────────────────────────── */

/* Wide Desktop: ≥ 1280px — base styles */

/* Desktop: 1024–1279px */
@media (max-width: 1279px) {
  :root {
    --container-gutter: 24px;
  }
}

/* Tablet: 768–1023px */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

  .feature-card {
    min-height: auto;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section-header h2 {
    font-size: var(--text-heading-md-size);
    letter-spacing: var(--text-heading-md-ls);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding: var(--space-xxl) var(--container-gutter) var(--space-section-lg);
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-hairline);
    margin-bottom: var(--space-xl);
  }

  .legal-toc h4 {
    width: 100%;
  }

  .legal-toc a {
    border-left: none;
    padding-left: 0;
    padding: var(--space-xxs) var(--space-sm);
    background: var(--color-surface);
    border-radius: var(--rounded-full);
    font-size: var(--text-caption-size);
  }
}

/* Mobile (large): 480–767px */
@media (max-width: 767px) {
  .hero-title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-content {
    padding: var(--space-section-lg) var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .persona-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-xxl);
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xxl);
  }

  .support-strip {
    padding: var(--space-section-sm) var(--space-lg);
    border-radius: var(--rounded-xl);
  }

  .support-channels {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .section {
    padding: var(--space-section) 0;
  }

  .section-header h2 {
    font-size: var(--text-heading-sm-size);
  }

  .section-header {
    margin-bottom: var(--space-xxl);
  }
}

/* Mobile (small): < 480px */
@media (max-width: 479px) {
  :root {
    --container-gutter: 16px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .feature-card {
    padding: var(--space-xl);
  }

  .support-strip h2 {
    font-size: var(--text-heading-sm-size);
  }
}
