/**
 * Sanctia - Landing Page Styles
 * 
 * Theme: "Quiet Trust" - Deep neutrals with slate blue accent
 * Design Principles: Calm confidence, restraint, trustworthy
 */

/* ========================================
   CSS VARIABLES (from mobile theme)
   ======================================== */
:root {
  /* Background colors */
  --bg-primary: #0F1114;
  --bg-secondary: #1A1D21;
  --bg-tertiary: #22262B;
  
  /* Surface colors */
  --surface-primary: #1A1D21;
  --surface-secondary: #22262B;
  --surface-elevated: #2E3238;
  
  /* Text colors */
  --text-primary: #EBEEF1;
  --text-secondary: #B4BAC3;
  --text-tertiary: #9198A3;
  --text-muted: #747B86;
  
  /* Primary accent (slate blue) */
  --accent-primary: #4A82B5;
  --accent-hover: #6B9BC7;
  --accent-pressed: #3A6FA0;
  --accent-subtle: #1E3A5F;
  --accent-muted: #264A73;
  
  /* Semantic colors */
  --success: #35915E;
  --success-subtle: rgba(53, 145, 94, 0.15);
  --warning: #E09820;
  --warning-subtle: rgba(224, 152, 32, 0.15);
  --danger: #DC4545;
  --danger-subtle: rgba(220, 69, 69, 0.15);
  
  /* Borders */
  --border-default: rgba(255, 255, 255, 0.08);
  --border-muted: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  
  /* Max content width */
  --max-width: 1200px;
  --max-width-text: 680px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 0.875rem;
}

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

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header p {
  margin: var(--space-4) auto 0;
  max-width: 600px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: var(--accent-pressed);
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background-color: var(--surface-secondary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: rgba(15, 17, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-muted);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Hide wordmark on mobile, show only on desktop/landscape */
@media (max-width: 768px) {
  .logo-wordmark {
    display: none;
  }
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    padding: 0 var(--space-6);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms ease, opacity 200ms ease, padding 300ms ease;
  }

  .nav-links.is-open {
    max-height: 400px;
    opacity: 1;
    padding: var(--space-4) var(--space-6);
  }

  .nav-links li a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 1rem;
  }

  .nav-cta .btn-secondary {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: var(--space-10);
    min-height: auto;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 50% at 50% 20%,
    rgba(74, 130, 181, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: left;
}

.hero-text .hero-badge {
  justify-content: flex-start;
}

.hero-text .hero-cta {
  justify-content: flex-start;
}

.hero-text .waitlist-form {
  margin: 0;
}

.hero-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

.hero-beta-cta {
  color: var(--text-secondary);
  font-size: 18px;
  margin-top: 20px;
}

.beta-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.beta-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.hero-free-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}

.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text .hero-badge {
    justify-content: center;
  }
  
  .hero-text .hero-cta {
    justify-content: center;
  }
  
  .hero-text .waitlist-form {
    margin: 0 auto;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-hover);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-mechanism {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-4);
  max-width: 520px;
}

@media (max-width: 992px) {
  .hero-mechanism {
    margin: 0 auto var(--space-4);
  }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 var(--space-8);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin: 0 auto var(--space-8);
  }
}

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

.hero-visual {
  position: relative;
}

@media (max-width: 992px) {
  .hero-visual {
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
  }
}

.hero-mockup {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 0 0 1px var(--border-default),
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Notification Preview */
.notification-preview {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: left;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.notification-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.notification-app {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.notification-app-logo {
  height: 14px;
  width: auto;
  object-fit: contain;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.notification-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.notification-body {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Hero Flow Animation v2 — rail + progressive reveal
 * Vertical timeline with three numbered nodes. Step 1 shows alone, then the
 * rail draws toward step 2 and step 2 reveals, then step 3. After step 3,
 * all three undim for a 2.3s "complete picture" hold, then loop.
 *
 * Pure CSS keyframes. JS only adds .is-paused to pause animations.
 * Reduced motion: animations off, all three steps rendered in the all-bright
 * end state. No-JS: same — the .js class scope keeps hidden states gated.
 *
 * Spec: docs/superpowers/specs/2026-05-11-hero-flow-animation-design.md
 */
.hero-flow {
  --hero-flow-cycle: 12s;
  --hero-flow-rail-dim: var(--border-muted);
  --hero-flow-accent: var(--accent-primary);
  --hero-flow-accent-soft: rgba(74, 130, 181, 0.15);
  --hero-flow-easing-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-flow-easing-rail: cubic-bezier(0.65, 0, 0.35, 1);

  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

.hero-flow-step {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

.hero-flow-rail {
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.hero-flow-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-primary);
  border: 1px solid var(--hero-flow-rail-dim);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.hero-flow-segment {
  flex: 1;
  width: 1px;
  background: var(--hero-flow-rail-dim);
  margin: 4px 0;
  position: relative;
  overflow: hidden;
}

.hero-flow-segment-fill {
  position: absolute;
  inset: 0;
  background: var(--hero-flow-accent);
  transform-origin: top;
  transform: scaleY(0);
}

.hero-flow-content {
  flex: 1;
  padding-bottom: var(--space-5);
  min-width: 0;
}

.hero-flow-step:last-child .hero-flow-content {
  padding-bottom: 0;
}

.hero-flow-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  transition: color 220ms ease;
}

/* ===== Animations (only when JS has confirmed it's healthy) =====
 * The .js class is added by an inline <head> script before paint.
 * Without it (broken JS, blocked scripts), all cards remain at full opacity
 * — same end state as reduced motion. */

.js .hero-flow-step[data-step="1"] .notification-preview {
  animation: hero-flow-card-1 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="1"] .hero-flow-label {
  animation: hero-flow-label-1 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="2"] .hero-flow-label {
  animation: hero-flow-label-2 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="3"] .hero-flow-label {
  animation: hero-flow-label-3 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="2"] .verification-preview {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-flow-card-2 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="3"] .email-preview {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-flow-card-3 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="2"] .hero-flow-node {
  animation: hero-flow-node-2 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="3"] .hero-flow-node {
  animation: hero-flow-node-3 var(--hero-flow-cycle) infinite;
}

/* Step 1's node is always filled — visually anchors "this is where the loop starts" */
.hero-flow-step[data-step="1"] .hero-flow-node {
  background: var(--hero-flow-accent);
  border-color: var(--hero-flow-accent);
  color: white;
}

.js .hero-flow-step[data-step="1"] .hero-flow-segment-fill {
  animation: hero-flow-rail-1 var(--hero-flow-cycle) infinite;
}

.js .hero-flow-step[data-step="2"] .hero-flow-segment-fill {
  animation: hero-flow-rail-2 var(--hero-flow-cycle) infinite;
}

/* Pause every running animation under the hero-flow when JS sets the class */
.hero-flow.is-paused .hero-flow-label,
.hero-flow.is-paused .hero-flow-node,
.hero-flow.is-paused .hero-flow-segment-fill,
.hero-flow.is-paused .notification-preview,
.hero-flow.is-paused .verification-preview,
.hero-flow.is-paused .email-preview {
  animation-play-state: paused;
}

/* ===== Keyframes =====
 * Cycle = 12s. Stops match the choreography table in the spec.
 *   0–21%   step 1 alone
 *   21–24%  rail 1→2 draws
 *   24–28%  card 2 reveals
 *   28–46%  step 2 active; step 1 dim 0.78
 *   46–49%  rail 2→3 draws
 *   49–53%  card 3 reveals
 *   53–71%  step 3 active; step 2 dim 0.78
 *   71–73%  ALL undim (step 1 and 2 return to opacity 1, labels go accent)
 *   73–92%  ALL bright hold (2.3s)
 *   92–96%  reset: cards 2 & 3 fade out
 *   96–100% settle into start state
 */

@keyframes hero-flow-card-1 {
  0%, 21%   { opacity: 1; }
  28%, 71%  { opacity: 0.78; }
  73%, 100% { opacity: 1; }
}

@keyframes hero-flow-card-2 {
  0%, 24%   { opacity: 0; transform: translateY(8px); animation-timing-function: var(--hero-flow-easing-soft); }
  28%, 46%  { opacity: 1; transform: translateY(0); animation-timing-function: ease; }
  53%, 71%  { opacity: 0.78; transform: translateY(0); animation-timing-function: ease-out; }
  73%, 92%  { opacity: 1; transform: translateY(0); animation-timing-function: ease-in; }
  96%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes hero-flow-card-3 {
  0%, 49%   { opacity: 0; transform: translateY(8px); animation-timing-function: var(--hero-flow-easing-soft); }
  53%, 92%  { opacity: 1; transform: translateY(0); animation-timing-function: ease-in; }
  96%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes hero-flow-label-1 {
  0%, 21%   { color: var(--hero-flow-accent); }
  28%, 71%  { color: var(--text-muted); }
  73%, 100% { color: var(--hero-flow-accent); }
}

@keyframes hero-flow-label-2 {
  0%, 24%   { color: var(--text-muted); }
  28%, 46%  { color: var(--hero-flow-accent); }
  53%, 71%  { color: var(--text-muted); }
  73%, 92%  { color: var(--hero-flow-accent); }
  96%, 100% { color: var(--text-muted); }
}

@keyframes hero-flow-label-3 {
  0%, 49%   { color: var(--text-muted); }
  53%, 92%  { color: var(--hero-flow-accent); }
  96%, 100% { color: var(--text-muted); }
}

@keyframes hero-flow-node-2 {
  0%, 24% {
    background: var(--surface-primary); border-color: var(--hero-flow-rail-dim);
    color: var(--text-muted); box-shadow: none;
  }
  28%, 92% {
    background: var(--hero-flow-accent); border-color: var(--hero-flow-accent);
    color: white; box-shadow: 0 0 0 3px var(--hero-flow-accent-soft);
  }
  96%, 100% {
    background: var(--surface-primary); border-color: var(--hero-flow-rail-dim);
    color: var(--text-muted); box-shadow: none;
  }
}

@keyframes hero-flow-node-3 {
  0%, 49% {
    background: var(--surface-primary); border-color: var(--hero-flow-rail-dim);
    color: var(--text-muted); box-shadow: none;
  }
  53%, 92% {
    background: var(--hero-flow-accent); border-color: var(--hero-flow-accent);
    color: white; box-shadow: 0 0 0 3px var(--hero-flow-accent-soft);
  }
  96%, 100% {
    background: var(--surface-primary); border-color: var(--hero-flow-rail-dim);
    color: var(--text-muted); box-shadow: none;
  }
}

@keyframes hero-flow-rail-1 {
  0%, 21%   { transform: scaleY(0); animation-timing-function: var(--hero-flow-easing-rail); }
  24%, 92%  { transform: scaleY(1); animation-timing-function: ease-out; }
  100%      { transform: scaleY(0); }
}

@keyframes hero-flow-rail-2 {
  0%, 46%   { transform: scaleY(0); animation-timing-function: var(--hero-flow-easing-rail); }
  49%, 92%  { transform: scaleY(1); animation-timing-function: ease-out; }
  100%      { transform: scaleY(0); }
}

/* ===== Reduced motion: freeze everything in the all-bright end state ===== */
@media (prefers-reduced-motion: reduce) {
  .js .hero-flow-step[data-step="1"] .hero-flow-label,
  .js .hero-flow-step[data-step="1"] .notification-preview,
  .js .hero-flow-step[data-step="2"] .hero-flow-label,
  .js .hero-flow-step[data-step="2"] .verification-preview,
  .js .hero-flow-step[data-step="2"] .hero-flow-node,
  .js .hero-flow-step[data-step="3"] .hero-flow-label,
  .js .hero-flow-step[data-step="3"] .email-preview,
  .js .hero-flow-step[data-step="3"] .hero-flow-node,
  .js .hero-flow-step[data-step="1"] .hero-flow-segment-fill,
  .js .hero-flow-step[data-step="2"] .hero-flow-segment-fill {
    animation: none;
  }
  .js .hero-flow-step[data-step="2"] .verification-preview,
  .js .hero-flow-step[data-step="3"] .email-preview {
    opacity: 1;
    transform: none;
  }
  .hero-flow-label {
    color: var(--hero-flow-accent);
  }
  .hero-flow-step[data-step="2"] .hero-flow-node,
  .hero-flow-step[data-step="3"] .hero-flow-node {
    background: var(--hero-flow-accent);
    border-color: var(--hero-flow-accent);
    color: white;
  }
  .hero-flow-segment-fill {
    transform: scaleY(1);
  }
}

/* Email Preview */
.email-preview {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: left;
}

.email-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-muted);
}

.email-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-muted));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.email-meta {
  flex: 1;
}

.email-from {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.email-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.email-body p {
  margin-bottom: var(--space-2);
  font-style: italic;
}

.email-body p:last-child {
  margin-bottom: 0;
  color: var(--text-tertiary);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-muted);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Video Player */
.video-container {
  margin-bottom: var(--space-20);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-tertiary);
  box-shadow: 
    0 8px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--border-muted),
    0 0 120px rgba(74, 130, 181, 0.08);
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-primary);
}

/* Poster placeholder when no video yet */
.hero-video:not([src]),
.hero-video[src=""] {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 10;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  color: var(--accent-primary);
}

.video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Hide play button when video is playing */
.video-wrapper.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* Show controls on hover when playing */
.hero-video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s;
}

.video-wrapper:hover .hero-video::-webkit-media-controls {
  opacity: 1;
}

@media (max-width: 768px) {
  .video-container {
    margin-bottom: var(--space-12);
    display: flex;
    justify-content: center;
  }
  
  .video-wrapper {
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .video-play-btn svg {
    width: 48px;
    height: 48px;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--border-muted) 0%,
    var(--border-strong) 50%,
    var(--border-muted) 100%
  );
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .steps-grid::before {
    display: none;
  }
}

/* ========================================
   FEATURES
   ======================================== */
.features-section {
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TESTIMONIAL / QUOTE
   ======================================== */
.quote-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.quote-text::before {
  content: '"';
  color: var(--accent-primary);
}

.quote-text::after {
  content: '"';
  color: var(--accent-primary);
}

/* ========================================
   SCENARIOS / WHO IT'S FOR
   ======================================== */
.scenarios-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-muted);
  position: relative;
}

.scenarios-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

.scenario-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  transition: all var(--transition-normal);
}

.scenario-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.scenario-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-4);
}

.scenario-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.scenario-card p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1100px) {
  .scenarios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HERO FLOW - VERIFICATION PANEL
   ======================================== */
.verification-preview {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: left;
  position: relative;
}

.verification-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-muted);
}

.verification-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--success), #2a7a4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.verification-meta {
  flex: 1;
}

.verification-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.verification-status {
  font-size: 0.75rem;
  color: var(--warning);
  font-weight: 500;
}

.verification-body {
  margin-bottom: var(--space-3);
}

.verification-body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.verification-actions {
  display: flex;
  gap: var(--space-2);
}

.verification-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

.verification-btn--confirm {
  background: var(--success);
  color: white;
}

.verification-btn--cancel {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

/* ========================================
   THE HUMAN SAFETY NET SECTION
   ======================================== */
.safety-net-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.safety-net-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.safety-net-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 130, 181, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.safety-net-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.safety-net-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-full);
}

.safety-net-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.safety-net-intro {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: var(--space-4);
  max-width: none;
}

.safety-net-body {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 560px;
}

/* ========================================
   TRUST & SAFETY
   ======================================== */
.trust-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.trust-item {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
}

.trust-cta {
  text-align: center;
  margin-top: var(--space-8);
}

.trust-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

.trust-link:hover {
  color: var(--accent-hover);
}

.trust-item--featured {
  border-color: var(--accent-muted);
}

.trust-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 130, 181, 0.1);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ORIGIN STORY BRIDGE
   ======================================== */
.origin-section {
  background: var(--bg-secondary);
  padding: var(--space-12) 0;
  position: relative;
}

.origin-section::before,
.origin-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.origin-section::before { top: 0; }
.origin-section::after { bottom: 0; }

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

.origin-quote {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.origin-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

.origin-link:hover {
  color: var(--accent-hover);
}

/* ========================================
   WHY SANCTIA (DIFFERENTIATION)
   ======================================== */
.why-section {
  background: var(--bg-primary);
  position: relative;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.why-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-content h2 {
  margin-bottom: var(--space-4);
}

.why-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: left;
}

.why-point {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.why-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.why-point strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.why-point p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison Table */
.comparison-table-wrapper {
  margin-top: var(--space-12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  font-size: 0.9375rem;
}

.comparison-table thead tr {
  background: var(--bg-tertiary);
}

.comparison-table th {
  padding: var(--space-5) var(--space-6);
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-strong);
}

.comparison-table th.comparison-highlight {
  color: var(--accent-primary);
}

.comparison-table td {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-tertiary);
  line-height: 1.5;
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr {
  background: var(--surface-primary);
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: var(--surface-secondary);
}

.comparison-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.comparison-table td.comparison-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-4);
  }

  .comparison-label {
    white-space: normal;
  }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.faq-answer {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(74, 130, 181, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-4);
}

.cta-content p {
  margin: 0 auto var(--space-8);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--border-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-muted);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* ========================================
   LEGAL PAGES (Privacy, Terms)
   ======================================== */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--space-20);
}

.legal-content {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-10);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 60%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(74, 130, 181, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-12);
  text-align: center;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-story p {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: none;
}

.about-story-hook {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.about-story p:first-of-type {
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
}

.about-closing {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-12);
}

@media (max-width: 480px) {
  .about-cta {
    flex-direction: column;
    gap: var(--space-4);
  }

  .about-cta .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding-top: 100px;
    min-height: auto;
  }

  .about-title {
    margin-bottom: var(--space-8);
  }

  .about-story {
    gap: var(--space-5);
  }
}

/* ========================================
   TEAM PAGE
   ======================================== */
.team-page {
  padding-top: 140px;
  padding-bottom: var(--space-20);
  position: relative;
}

.team-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 40%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(74, 130, 181, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.team-header {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}

.team-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-4);
}

.team-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.team-card:hover .team-photo img {
  transform: scale(1.03);
}

.team-info {
  padding: var(--space-6);
}

.team-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.team-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-1);
}

.team-focus {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.team-linkedin:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

@media (max-width: 768px) {
  .team-page {
    padding-top: 110px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ========================================
   WAITLIST FORM
   ======================================== */
.waitlist-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-input {
  flex: 1;
  min-width: 250px;
  padding: var(--space-4) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-fast);
  /* Force dark appearance */
  color-scheme: dark;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.waitlist-input:focus {
  border-color: var(--accent-primary);
  background-color: var(--surface-elevated);
  box-shadow: 0 0 0 3px rgba(74, 130, 181, 0.2);
}

.waitlist-input:hover:not(:focus) {
  border-color: var(--text-muted);
}

/* Handle browser autofill styles */
.waitlist-input:-webkit-autofill,
.waitlist-input:-webkit-autofill:hover,
.waitlist-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-tertiary) inset;
  box-shadow: 0 0 0 1000px var(--bg-tertiary) inset;
  border-color: var(--accent-primary);
  transition: background-color 5000s ease-in-out 0s;
}

.cta-section .waitlist-form {
  max-width: 500px;
}

@media (max-width: 540px) {
  .waitlist-form {
    flex-direction: column;
  }
  
  .waitlist-input {
    min-width: 100%;
  }
  
  .waitlist-form .btn {
    width: 100%;
  }
}

/* ========================================
   SECURITY PAGE
   ======================================== */
.security-content {
  max-width: 960px;
}

.security-content h2 {
  margin-top: var(--space-12);
}

.security-models {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.security-model {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.security-model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.security-model-header h3 {
  margin-bottom: 0;
}

.security-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  background: var(--surface-elevated);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.security-badge--e2e {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-muted);
}

.security-model ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

.security-model li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.security-model strong {
  color: var(--text-primary);
  font-weight: 600;
}

.security-model p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: none;
}

@media (max-width: 768px) {
  .security-models {
    grid-template-columns: 1fr;
  }
}

.security-visibility-table {
  margin: var(--space-8) 0;
}

.security-algos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

.security-algo {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.security-algo h4 {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
}

.security-algo p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  .security-algos {
    grid-template-columns: 1fr;
  }
}

.security-content .btn-secondary {
  margin-top: var(--space-4);
}

