/* ========================================================================
   AegisProof Marketing Site
   Design tokens from main app (.plan/design/design-1/DESIGN.md, light mode)
   ======================================================================== */

:root {
  /* Colors */
  --primary: #041627;
  --primary-container: #1a2b3c;
  --primary-foreground: #ffffff;
  --secondary: #003ec6;
  --secondary-container: #d6e4ff;
  --verified: #0a7c4e;
  --verified-container: #d1f5e8;
  --caution: #8a5700;
  --error: #ba1a1a;

  --background: #f9f9ff;
  --card: #ffffff;
  --muted: #eff3ff;
  --muted-foreground: #44506a;
  --accent: #d9e3f7;
  --accent-foreground: #121c2a;

  --foreground: #121c2a;
  --foreground-secondary: #44506a;
  --foreground-tertiary: #6b7a94;
  --foreground-quaternary: #9aa4b8;

  --border: #c4c6cd;
  --border-subtle: #e2e5eb;
  --border-emphasis: #8e93a0;

  --surface-bright: #f5f8ff;
  --surface-elevated: #ffffff;

  /* Shadows (brand-tinted navy) */
  --shadow-subtle: 0 1px 2px rgba(18, 28, 42, 0.05);
  --shadow-ambient: 0 1px 3px rgba(18, 28, 42, 0.08), 0 1px 2px rgba(18, 28, 42, 0.06);
  --shadow-elevated: 0 4px 8px rgba(18, 28, 42, 0.08), 0 2px 4px rgba(18, 28, 42, 0.06);
  --shadow-floating: 0 10px 24px rgba(18, 28, 42, 0.12), 0 4px 10px rgba(18, 28, 42, 0.06);

  /* Spacing */
  --container-max: 1200px;
  --section-padding-y: 96px;
  --section-padding-y-sm: 64px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv01";
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================================================
   Header
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 6px;
  border: 1px dashed var(--foreground-tertiary);
}

.logo-text {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav a {
  color: var(--foreground-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--primary-container);
  color: var(--primary-foreground) !important;
  transform: translateY(-1px);
}

/* ========================================================================
   Hero
   ======================================================================== */

.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 62, 198, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary-container);
  color: var(--secondary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subhead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--foreground-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  max-width: 700px;
  margin: 0 auto;
}

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

.trust-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.trust-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elevated);
}

.btn-primary:hover {
  background: var(--primary-container);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
}

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

.btn-secondary:hover {
  background: var(--muted);
  color: var(--foreground);
  border-color: var(--border-emphasis);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-inline {
  color: var(--foreground-secondary);
  font-size: 15px;
  align-self: center;
}

.btn-inline:hover {
  color: var(--foreground);
}

/* ========================================================================
   Sections (generic)
   ======================================================================== */

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 24px;
  max-width: 800px;
}

.section-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--foreground-secondary);
  max-width: 740px;
  margin-bottom: 16px;
}

/* Problem section */
.section-problem {
  background: var(--card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.finra-quote {
  margin: 40px 0;
  padding: 36px 40px;
  background: var(--surface-bright);
  border-left: 4px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-ambient);
  max-width: 760px;
}

.finra-quote-text {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  font-style: italic;
}

.finra-quote-attribution {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finra-source {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.finra-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  align-self: flex-start;
  transition: gap 0.2s ease, color 0.15s ease;
}

.finra-link:hover {
  color: var(--primary);
  gap: 10px;
}

.finra-link-arrow {
  font-size: 16px;
  line-height: 1;
}

/* ========================================================================
   How It Works
   ======================================================================== */

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  background: var(--card);
  padding: 36px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 12px;
}

.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground-secondary);
}

/* ========================================================================
   Who It's For
   ======================================================================== */

.section-who {
  background: var(--card);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.who-card {
  padding: 32px 28px;
  background: var(--surface-bright);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.who-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 12px;
}

.who-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground-secondary);
}

.additional-use-case {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--muted);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  max-width: 800px;
}

.additional-use-case-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.additional-use-case-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground-secondary);
  margin: 0;
}

/* ========================================================================
   Security
   ======================================================================== */

.section-security {
  background: var(--primary);
  color: var(--primary-foreground);
}

.section-security .section-label {
  color: #a8c8ff;
}

.section-security .section-headline {
  color: var(--primary-foreground);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.security-item {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.security-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.security-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 12px;
}

.security-body {
  font-size: 14px;
  line-height: 1.6;
  color: #a8c8ff;
}

/* ========================================================================
   CTA
   ======================================================================== */

.section-cta {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
  text-align: center;
}

.cta-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 20px;
}

.cta-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--foreground-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.logo-placeholder-small {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-bottom: 16px;
}

.logo-text-small {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-foreground);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 14px;
  color: #a8c8ff;
  max-width: 320px;
  line-height: 1.5;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-foreground);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #a8c8ff;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #8e93a0;
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 960px) {
  .hero-headline {
    font-size: 42px;
  }

  .hero-subhead {
    font-size: 18px;
  }

  .section-headline,
  .cta-headline {
    font-size: 32px;
  }

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

@media (max-width: 640px) {
  :root {
    --section-padding-y: 64px;
  }

  .finra-quote {
    padding: 24px;
  }

  .finra-quote-text {
    font-size: 17px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-headline {
    font-size: 34px;
  }

  .hero-headline br {
    display: none;
  }

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

  .hero-trust {
    gap: 24px;
  }

  .section-headline,
  .cta-headline {
    font-size: 28px;
  }

  .section-body {
    font-size: 16px;
  }

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

  .nav {
    gap: 16px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .cta-actions {
    flex-direction: column;
  }
}
