/* ============================================================
   claimapproved.ai  ·  Marketing Site CSS
   Brand: Navy #0E2A5A · Blue #1E7BE8 · Green #2FA37E
   Fonts: Manrope 800 (headings) · Inter 400/500/600 (body)
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:       #0E2A5A;
  --navy-deep:  #091e3f;
  --blue:       #1E7BE8;
  --blue-light: #4f9ef5;
  --green:      #2FA37E;
  --green-dark: #1f7a5e;
  --ink:        #0f172a;
  --muted:      #64748b;
  --surface:    #f8fafc;
  --line:       #e2e8f0;
  --white:      #ffffff;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --shadow-sm:  0 1px 3px rgba(14,42,90,.08), 0 1px 2px rgba(14,42,90,.06);
  --shadow-md:  0 4px 16px rgba(14,42,90,.12), 0 2px 6px rgba(14,42,90,.08);
  --shadow-glow-blue:  0 0 40px rgba(30,123,232,.25);
  --shadow-glow-green: 0 0 40px rgba(47,163,126,.20);

  --max-w:      1140px;
  --section-py: clamp(64px, 8vw, 112px);
}

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

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { font-size: clamp(0.95rem, 1.6vw, 1.0625rem); color: var(--muted); line-height: 1.75; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

section { padding-block: var(--section-py); }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 16px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}
/* Default: white on dark hero */
.nav-wordmark span:nth-child(1) { color: rgba(255,255,255,.95); }
.nav-wordmark span:nth-child(2) { color: rgba(255,255,255,.95); }
.nav-wordmark span:nth-child(3) { color: rgba(255,255,255,.95); }

/* Scrolled: switch to brand palette on white bg */
.site-nav.scrolled .nav-wordmark span:nth-child(1) { color: var(--navy); }
.site-nav.scrolled .nav-wordmark span:nth-child(2) { color: var(--blue); }
.site-nav.scrolled .nav-wordmark span:nth-child(3) { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(255,255,255,1); }

/* Scrolled: dark text on white bg */
.site-nav.scrolled .nav-links a { color: var(--muted); }
.site-nav.scrolled .nav-links a:hover { color: var(--navy); }

@media (max-width: 640px) { .nav-links { display: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30,123,232,.35);
}
.btn-primary:hover {
  background: #1a6fd0;
  box-shadow: 0 8px 28px rgba(30,123,232,.45);
}

/* Nav CTA ghost style when unscrolled over dark hero */
.site-nav:not(.scrolled) #nav-cta {
  background: rgba(255,255,255,.15);
  box-shadow: none;
}
.site-nav:not(.scrolled) #nav-cta:hover {
  background: rgba(255,255,255,.25);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(14,42,90,.06);
  color: var(--navy);
}
.btn-ghost:hover { background: rgba(14,42,90,.1); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: #f0f6ff; }

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--navy-deep);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 120px 80px;
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  inset-block-start: -120px;
  inset-inline-start: -60px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(30,123,232,.28) 0%, transparent 70%);
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero::after {
  inset-block-end: -80px;
  inset-inline-end: -40px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(47,163,126,.22) 0%, transparent 70%);
  animation: orb-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  to { transform: translate(40px, 30px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: rgba(30,123,232,.15);
  border: 1px solid rgba(30,123,232,.3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,.7) !important;
  max-width: 52ch;
  font-size: clamp(1rem, 1.8vw, 1.1875rem) !important;
  line-height: 1.65 !important;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-block-start: 8px;
}

/* Mascot */
.hero-mascot {
  margin-block-start: 48px;
  position: relative;
}
.hero-mascot img {
  height: clamp(160px, 20vw, 240px);
  width: auto;
  filter: drop-shadow(0 0 48px rgba(47,163,126,.35));
  animation: float 5s ease-in-out infinite;
  margin-inline: auto;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  inset-block-end: 32px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll svg {
  animation: bounce-y 2s ease-in-out infinite;
}
@keyframes bounce-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding-block: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-item {
  background: rgba(255,255,255,.04);
  padding: 28px 24px;
  text-align: center;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(255,255,255,.08); }
.stat-number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue-light), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-block-end: 6px;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.02em;
}

/* ── Problem ─────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-block-end: 14px;
}
.section-header { max-width: 52ch; margin-block-end: 56px; }
.section-header h2 { color: var(--ink); margin-block-end: 12px; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-block-end: 20px;
  font-size: 1.5rem;
}
.problem-icon.red   { background: #fee2e2; }
.problem-icon.amber { background: #fef3c7; }
.problem-icon.blue  { background: #dbeafe; }

.problem-card h3 { color: var(--ink); margin-block-end: 10px; }

/* ── How It Works ────────────────────────────────────────── */
.how-section { background: var(--navy-deep); }
.how-section .section-eyebrow { color: var(--blue-light); }
.how-section .section-header h2 { color: var(--white); }
.how-section .section-header p  { color: rgba(255,255,255,.6); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: rgba(255,255,255,.04);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.step:hover { background: rgba(255,255,255,.07); }
.step-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255,255,255,.06);
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 24px;
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(30,123,232,.2), rgba(47,163,126,.2));
  border: 1px solid rgba(30,123,232,.3);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-block-end: 24px;
}
.step h3 { color: var(--white); margin-block-end: 10px; }
.step p  { color: rgba(255,255,255,.55); font-size: 0.9375rem; }

/* Terminal mockup inside How It Works */
.terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-block-start: 48px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-block-end: 1px solid rgba(255,255,255,.06);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-title {
  margin-inline-start: auto;
  font-size: 0.75rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: rgba(255,255,255,.3);
}
.terminal-body {
  padding: 24px 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
}
.t-dim    { color: rgba(255,255,255,.3); }
.t-green  { color: #4ade80; }
.t-blue   { color: #60a5fa; }
.t-white  { color: rgba(255,255,255,.85); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--blue-light);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}

/* ── Privacy Section ─────────────────────────────────────── */
.privacy-section { background: linear-gradient(160deg, #f0f7ff 0%, var(--white) 60%); }

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 768px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-features { display: flex; flex-direction: column; gap: 24px; }
.privacy-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.privacy-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #1557b0);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(30,123,232,.25);
}
.privacy-feature h3 { color: var(--ink); margin-block-end: 4px; }
.privacy-feature p  { font-size: 0.9rem; }

/* Shield visual */
.shield-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.shield-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(30,123,232,.2);
  animation: spin-slow 30s linear infinite;
}
.shield-ring:nth-child(2) {
  inset: 15%;
  border-color: rgba(47,163,126,.2);
  animation-direction: reverse;
  animation-duration: 22s;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.shield-center {
  position: relative;
  z-index: 2;
  width: 130px; height: 130px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  box-shadow: var(--shadow-glow-blue);
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  50%      { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  animation: float 4s ease-in-out infinite;
}
.floating-badge:nth-child(4) {
  inset-block-start: 18%;
  inset-inline-end: 5%;
  animation-delay: -1s;
}
.floating-badge:nth-child(5) {
  inset-block-end: 20%;
  inset-inline-start: 4%;
  animation-delay: -2.5s;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.badge-dot.green { background: var(--green); }
.badge-dot.blue  { background: var(--blue); }

/* ── Provider ROI Section ────────────────────────────────── */
.roi-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.roi-section::before {
  content: '';
  position: absolute;
  inset-block-end: -200px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(47,163,126,.12) 0%, transparent 70%);
  pointer-events: none;
}
.roi-section .section-eyebrow { color: var(--green); }
.roi-section .section-header h2 { color: var(--white); }
.roi-section .section-header p  { color: rgba(255,255,255,.6); }

.roi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.roi-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
}
.roi-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(47,163,126,.3);
}
.roi-metric {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.04em;
  color: var(--green);
  line-height: 1;
  margin-block-end: 6px;
}
.roi-card h3 { color: var(--white); margin-block-end: 8px; font-size: 1rem; font-weight: 600; letter-spacing: normal; }
.roi-card p  { color: rgba(255,255,255,.5); font-size: 0.875rem; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--white);
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0d2248 50%, #0f3060 100%);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px) clamp(32px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset-block-start: -60px;
  inset-inline-end: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(30,123,232,.2), transparent 70%);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  inset-block-end: -60px;
  inset-inline-start: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(47,163,126,.15), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { color: var(--white); margin-block-end: 16px; }
.cta-box p  { color: rgba(255,255,255,.65); max-width: 48ch; margin-inline: auto; margin-block-end: 36px; font-size: 1rem !important; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  padding-block: 48px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo { height: 28px; width: auto; }
.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  max-width: 36ch;
}
.footer-copy {
  margin-block-start: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,.25);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: end;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* ── Scroll-reveal (progressive enhancement) ─────────────── */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback: just show everything if no support */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .hero-mascot img, .orb-drift, .floating-badge { animation: none; }
  .shield-ring, .shield-center { animation: none; }
}

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
