/* ═══════════════════════════════════════════════════
   IECAN /score — Design System
   Light editorial feel on IECAN's midnight nav frame
   ═══════════════════════════════════════════════════ */

:root {
  --midnight: #020617;
  --pearl: #F9FAFB;
  --paper: #FAFAF7;
  --ink: #0F172A;
  --blue: #3B82F6;
  --purple: #7C3AED;
  --text-dark: #0F172A;
  --text-light: #F1F5F9;
  --muted: #64748B;
  --muted-dark: #94A3B8;
  --card-bg: #FFFFFF;
  --border-light: #E2E8F0;
  --border-dark: rgba(255,255,255,0.08);
  --gradient: linear-gradient(135deg, var(--blue), var(--purple));
  --content-max: 680px;
  --wide-max: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.mono { font-family: 'DM Mono', monospace; }
a { color: var(--blue); text-decoration: none; }


/* ═══ UTILITY BAR ═══ */
.util {
  height: 32px;
  background: rgba(2,6,23,0.98);
  border-bottom: 1px solid rgba(59,130,246,0.12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 60px;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 510;
}
.util a {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--muted-dark);
  text-decoration: none;
}
.util a:hover { color: var(--text-light); }
.util span { color: rgba(148,163,184,0.3); }


/* ═══ NAV ═══ */
#nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(2,6,23,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-main {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: #F1F5F9;
  letter-spacing: 3px;
}
.logo-mark b {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 20px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--text-light); border-bottom-color: var(--blue); }
.nav-link svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient);
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .25s;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(59,130,246,0.4); transform: translateY(-1px); }

/* Mega dropdowns */
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2,6,23,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 28px;
  min-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-item:hover .mega { display: block; }
.mega-wide { min-width: 680px; }
.mega-title {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.mega-card {
  display: block;
  padding: 12px 14px;
  background: rgba(59,130,246,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all .2s;
}
.mega-card:hover { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); }
.mega-card-title { font-family: 'DM Mono', monospace; font-size: 18px; color: var(--blue); }
.mega-card-desc { font-size: 18px; color: var(--muted); margin-top: 2px; }
.mega-link {
  display: block;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  color: var(--text-light);
  border-radius: 8px;
  transition: all .15s;
  border: 1px solid transparent;
}
.mega-link:hover { background: rgba(59,130,246,0.1); color: var(--blue); border-color: rgba(59,130,246,0.2); }
.mega-link small { display: block; font-size: 18px; color: var(--muted-dark); margin-top: 2px; }
.mega-divider { height: 1px; background: var(--border-dark); margin: 14px 0; }
.mega-bottom {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-bottom:hover { color: var(--purple); }
.mega-price { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-dark); }
.mega-price-name { font-size: 18px; color: var(--muted); }
.mega-price-val { font-family: 'DM Mono', monospace; font-size: 18px; color: var(--blue); }
.mega-price-star .mega-price-name { color: #fff; font-weight: 600; }
.mega-trust { font-size: 18px; color: var(--muted); padding: 4px 0; }
.mega-trust span { color: #22C55E; margin-right: 4px; }

/* Hamburger + overlay */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #F1F5F9; border-radius: 2px; }
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(2,6,23,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 80px 32px 32px;
  overflow-y: auto;
}
#overlay.open { display: flex; }
.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-link {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  display: block;
  transition: color .2s;
}
.overlay-link:hover { color: #fff; }
.overlay-cta {
  display: block;
  background: var(--gradient);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 18px;
  border-radius: 8px;
  margin-top: 24px;
}


/* ═══ ANIMATED GRADIENT MESH ═══ */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.65;
}
.mesh-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,58,138,0.5) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: mesh-drift-1 18s ease-in-out infinite alternate;
}
.mesh-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(88,28,135,0.45) 0%, transparent 70%);
  top: 20%;
  right: -8%;
  animation: mesh-drift-2 22s ease-in-out infinite alternate;
}
.mesh-orb-3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, transparent 70%);
  bottom: -5%;
  left: 30%;
  animation: mesh-drift-3 20s ease-in-out infinite alternate;
}
.mesh-orb-4 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
  top: 50%;
  left: 60%;
  animation: mesh-drift-4 16s ease-in-out infinite alternate;
}
@keyframes mesh-drift-1 { to { transform: translate(80px, 60px); } }
@keyframes mesh-drift-2 { to { transform: translate(-60px, 80px); } }
@keyframes mesh-drift-3 { to { transform: translate(50px, -70px); } }
@keyframes mesh-drift-4 { to { transform: translate(-70px, -50px); } }
@media (prefers-reduced-motion: reduce) {
  .mesh-orb { animation: none !important; }
}


/* ═══ APP CONTAINER ═══ */
.score-app {
  padding-top: 96px; /* util bar + nav */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* SEO content — hidden when JS loads */
.seo-content {
  max-width: 680px;
  padding: 60px 24px;
  margin: 0 auto;
}
.seo-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 20px;
}
.seo-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 32px 0 12px;
}
.seo-content p {
  color: var(--muted);
  margin-bottom: 16px;
}
.js-loaded .seo-content { display: none; }


/* ═══ SCREEN CONTAINER ═══ */
.screen {
  width: 100%;
  max-width: var(--content-max);
  padding: 0 24px;
  text-align: center;
  animation: screen-in 0.4s ease-out;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══ HERO SCREEN ═══ */
.hero-screen {
  padding-top: 40px;
}
.hero-screen h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--ink);
}
.hero-screen h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-trust {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 32px;
}


/* ═══ CTA BUTTON (primary) ═══ */
.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  min-width: 260px;
  -webkit-tap-highlight-color: transparent;
}
.cta-btn:hover {
  box-shadow: 0 6px 28px rgba(59,130,246,0.4);
  transform: translateY(-2px);
}
.cta-btn:active {
  transform: translateY(0);
}


/* ═══ QUESTION SCREENS ═══ */
.q-screen {
  padding-top: 20px;
}
.q-progress {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.q-progress-bar {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  margin: 0 auto 32px;
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.q-label {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Option buttons (one per answer) */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.q-option {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.q-option:hover {
  border-color: var(--blue);
  background: rgba(59,130,246,0.04);
}
.q-option:active,
.q-option.selected {
  border-color: var(--blue);
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}


/* ═══ MINI-REVEAL (between Q4 and email gate) ═══ */
.reveal-screen {
  padding-top: 40px;
}
.reveal-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}
.reveal-sub {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
}


/* ═══ EMAIL GATE ═══ */
.gate-screen {
  padding-top: 20px;
}
.gate-screen h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 8px;
}
.gate-sub {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}
.gate-input {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.gate-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.gate-input::placeholder {
  color: var(--muted);
}
.gate-honeypot { position: absolute; left: -9999px; }
.gate-disclaimer {
  font-size: 18px;
  color: var(--muted);
  margin-top: 4px;
}


/* ═══ PROCESSING SCREEN ═══ */
.processing-screen {
  padding-top: 40px;
}
.processing-screen h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 32px;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--muted);
  opacity: 0.4;
  transition: all 0.4s ease;
}
.process-step.active {
  opacity: 1;
  color: var(--ink);
}
.process-step.done {
  opacity: 0.7;
  color: var(--blue);
}
.process-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 18px;
}
.process-step.active .process-check {
  border-color: var(--blue);
  animation: pulse-ring 1.2s ease infinite;
}
.process-step.done .process-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}


/* ═══ RESULT SCREEN ═══ */
.result-screen {
  padding: 20px 0 60px;
  max-width: var(--wide-max);
  text-align: left;
}

/* Score badge */
.score-badge {
  text-align: center;
  margin-bottom: 40px;
}
.score-number {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.score-of {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  color: var(--muted);
  margin-top: 4px;
}
.score-name-reveal {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  margin-top: 24px;
  font-weight: 800;
}

/* Result cards */
.result-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.result-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.result-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.result-card p {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.7;
}

/* Dollar anchor card */
.dollar-card {
  border-left: 4px solid var(--blue);
}
.dollar-amount {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.dollar-math {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--muted);
  background: var(--paper);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  line-height: 1.6;
}
.dollar-source {
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin-top: 8px;
}

/* Fix card */
.fix-card {
  border-left: 4px solid var(--purple);
}

/* Fourth wall */
.fourth-wall {
  text-align: center;
  padding: 40px 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
}
.fourth-wall p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
}

/* Cal.com CTA */
.cal-cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2,6,23,0.97);
  backdrop-filter: blur(16px);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
  border-top: 1px solid var(--border-dark);
}
.cal-cta-bar p {
  font-size: 20px;
  color: var(--text-light);
}
.cal-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s;
}
.cal-cta-btn:hover {
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

/* Secondary findings */
.secondary-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.secondary-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--muted);
}


/* ═══ FOOTER ═══ */
.score-footer {
  background: var(--midnight);
  color: var(--muted-dark);
  padding: 48px 24px 24px;
  border-top: 1px solid var(--border-dark);
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-tagline {
  font-size: 18px;
  color: var(--muted-dark);
  margin-top: 8px;
}
.footer-contact {
  font-size: 18px;
  margin-bottom: 4px;
}
.footer-contact a { color: var(--blue); }
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-col a {
  font-size: 18px;
  color: var(--muted-dark);
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--text-light); }
.footer-bottom {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 18px;
  color: rgba(148,163,184,0.5);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .util { display: none !important; }
  #nav { top: 0; }
  .score-app { padding-top: 64px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-main { padding: 0 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cal-cta-bar { flex-direction: column; gap: 8px; padding: 12px 16px; }
  .cal-cta-bar p { font-size: 18px; }

  .result-screen { padding: 20px 24px 80px; }
}

@media (max-width: 480px) {
  .hero-screen h1 { font-size: 1.8rem; }
  .q-label { font-size: 1.3rem; }
  .score-number { font-size: 56px; }
}
