/* ==========================================================================
   MISSION 2027 — Government Career Operating System
   Design system: Apple-grade minimalism, glass surfaces, mesh-gradient depth.
   ========================================================================== */

:root{
  /* ---- Color tokens (per brief) ---- */
  --bg:            #FAFAFA;
  --ink:           #111111;
  --ink-soft:      #666666;
  --border:        #E5E7EB;
  --card:          rgba(255,255,255,.65);
  --card-solid:    #ffffff;
  --blur:          40px;
  --accent:        #2F5FE0;      /* subtle, desaturated system blue */
  --accent-soft:   rgba(47,95,224,.10);
  --accent-line:   rgba(47,95,224,.35);
  --success:       #1F8B5A;
  --warn:          #B4762A;

  /* ---- Type scale ---- */
  --font-display: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

  --hero-size: clamp(56px, 9.5vw, 116px);
  --h2-size: clamp(34px, 4.6vw, 48px);
  --card-size: 22px;
  --body-size: 18px;
  --caption-size: 13px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.19,1,.22,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur: .9s;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1240px;
}

@media (prefers-color-scheme: dark){
  /* Reserved for future dark-mode toggle — kept light per brief for now */
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection{ background: var(--accent); color:#fff; }

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Utility layers
   ========================================================================== */

.section{
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px 32px;
  position: relative;
}

.section-head{
  max-width: 720px;
  margin-bottom: 72px;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 18px 0 20px;
}
.eyebrow{
  font-size: var(--caption-size);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}
.section-sub{
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0;
}
.accent-text{ color: var(--accent); font-style: italic; }

.glass{
  background: var(--card);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 1px rgba(17,17,17,.02), 0 20px 44px -24px rgba(17,17,17,.16);
}

.tag{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(17,17,17,.05);
  padding: 5px 11px;
  border-radius: 100px;
}
.tag--blue{ color: var(--accent); background: var(--accent-soft); }

.dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--ink-soft); margin-right:6px; }
.dot--live{ background: var(--success); box-shadow: 0 0 0 3px rgba(31,139,90,.18); animation: pulse 2s infinite; }
.dot--blue{ background: var(--accent); }
.dot--muted{ background: var(--border); }

@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 3px rgba(31,139,90,.18); }
  50%{ box-shadow: 0 0 0 6px rgba(31,139,90,.06); }
}

/* Reveal-on-scroll primitives, activated by .in-view (added via JS) */
.reveal-up{ opacity:0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.in-view{ opacity:1; transform: translateY(0); }

.reveal-fade{ opacity:0; transition: opacity 1.2s var(--ease-soft); }
.reveal-fade.in-view{ opacity:1; }

.reveal-blur{ opacity:0; filter: blur(14px); transform: translateY(18px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.reveal-blur.in-view{ opacity:1; filter: blur(0); transform: translateY(0); }

/* Stagger children automatically via inline transition-delay set in JS */

/* ==========================================================================
   Noise + cursor glow
   ========================================================================== */

.noise-overlay{
  position: fixed; inset:0; pointer-events:none; z-index: 9990;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow{
  position: fixed; top:0; left:0; width:520px; height:520px; z-index:1;
  pointer-events:none; border-radius:50%;
  background: radial-gradient(circle, rgba(47,95,224,.09), transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .4s ease;
  will-change: transform;
}
@media (hover:none){ .cursor-glow{ display:none; } }

/* ==========================================================================
   Boot loader
   ========================================================================== */

.boot-loader{
  position: fixed; inset:0; z-index: 10000;
  background: var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.boot-loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.boot-mark{
  font-family: var(--font-display); font-style:italic; font-size: 15px;
  width:56px; height:56px; border-radius:16px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; letter-spacing:.02em;
}
.boot-bar{ width:200px; height:2px; background: var(--border); border-radius: 2px; overflow:hidden; }
.boot-bar span{ display:block; height:100%; width:0%; background: var(--ink); transition: width 1.1s var(--ease-soft); }
.boot-label{ font-size: 13px; color: var(--ink-soft); letter-spacing:.02em; }
.dots{ display:inline-block; width:1.4em; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar{
  position: fixed; top: 18px; left:50%; transform: translateX(-50%);
  width: min(96%, 1120px); z-index: 500;
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 12px 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 12px 30px -18px rgba(17,17,17,.22);
  transition: background .4s ease, box-shadow .4s ease;
}
.navbar.scrolled .nav-inner{ background: rgba(255,255,255,.78); box-shadow: 0 14px 34px -16px rgba(17,17,17,.28); }

.nav-logo{ display:flex; align-items:center; gap:9px; font-weight:600; font-size:14px; }
.nav-logo-mark{
  font-family: var(--font-display); font-style:italic;
  width:30px; height:30px; border-radius: 9px; background: var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:11px;
}
.nav-links{ display:flex; gap: 4px; }
.nav-links a{
  font-size: 13.5px; color: var(--ink-soft); padding: 9px 15px; border-radius: 100px;
  position: relative; transition: color .3s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.active{ color: var(--ink); background: rgba(17,17,17,.055); }

.nav-cta{
  font-size: 13px; font-weight:600; padding: 10px 18px; border-radius: 100px;
  background: var(--ink); color:#fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-cta:hover{ box-shadow: 0 10px 24px -8px rgba(17,17,17,.4); }

.nav-burger{ display:none; flex-direction:column; gap:4px; padding:8px; }
.nav-burger span{ width:20px; height:1.5px; background: var(--ink); border-radius:2px; }

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

.hero{
  position: relative; min-height: 100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
  overflow:hidden; padding: 140px 24px 60px;
}
.hero-mesh{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero-grid-lines{
  position:absolute; inset:0; z-index:0; opacity:.5;
  background-image:
    linear-gradient(to right, rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

.hero-statusbar{
  position: relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  margin-bottom: 34px;
}
.status-chip{
  font-size: 12.5px; color: var(--ink-soft); background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(20px);
  padding: 7px 13px; border-radius: 100px; display:flex; align-items:center;
}
.status-chip b{ color: var(--ink); font-weight:600; margin-left:4px; }

.hero-content{ position:relative; z-index:2; max-width: 900px; }
.hero-eyebrow{
  font-size: 14px; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-soft);
  font-weight:600; margin: 0 0 14px;
}
.hero-title{ margin:0; font-family: var(--font-display); font-weight:500; }
.hero-title .line{
  display:block; font-size: var(--hero-size); line-height:.98; letter-spacing:-.02em; color: var(--ink);
}
.hero-title .line--accent{ font-style: italic; color: var(--accent); }

.hero-sub{
  font-size: 19px; color: var(--ink-soft); max-width: 560px; margin: 26px auto 0;
}

.hero-actions{ display:flex; gap:14px; justify-content:center; margin-top: 40px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:10px; font-size:15px; font-weight:600;
  padding: 15px 26px; border-radius: 100px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s ease;
}
.btn svg{ width:16px; height:16px; }
.btn--primary{ background: var(--ink); color:#fff; box-shadow: 0 14px 30px -14px rgba(17,17,17,.5); }
.btn--primary:hover{ box-shadow: 0 18px 36px -12px rgba(17,17,17,.55); }
.btn--ghost{ background: rgba(255,255,255,.6); border:1px solid var(--border); backdrop-filter: blur(20px); }
.btn--ghost:hover{ background: rgba(255,255,255,.9); }

.hero-counters{
  margin-top: 78px; display:flex; gap:0; justify-content:center; flex-wrap:wrap;
  border-top: 1px solid var(--border); padding-top: 34px;
}
.hero-counter{ padding: 0 34px; border-right: 1px solid var(--border); }
.hero-counter:last-child{ border-right:none; }
.hero-counter .count{ display:block; font-family: var(--font-display); font-size: 34px; color: var(--ink); }
.hero-counter p{ margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); max-width:120px; }

.hero-orb{ position:absolute; border-radius:50%; filter: blur(70px); z-index:1; opacity:.55; }
.hero-orb--1{ width:420px; height:420px; background: rgba(47,95,224,.18); top:-120px; left:-120px; animation: float1 16s ease-in-out infinite; }
.hero-orb--2{ width:340px; height:340px; background: rgba(17,17,17,.05); bottom:-140px; right:-80px; animation: float2 18s ease-in-out infinite; }
.hero-orb--3{ width:220px; height:220px; background: rgba(47,95,224,.10); top:30%; right:8%; animation: float1 12s ease-in-out infinite reverse; }
@keyframes float1{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(40px,50px); } }
@keyframes float2{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-30px,-40px); } }

.scroll-indicator{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.scroll-indicator span{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-soft); }
.scroll-line{ width:1px; height:34px; background: var(--border); overflow:hidden; }
.scroll-line i{ display:block; width:100%; height:14px; background: var(--ink); animation: scrollDown 1.8s var(--ease-soft) infinite; }
@keyframes scrollDown{ 0%{ transform: translateY(-14px); } 100%{ transform: translateY(34px); } }

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dash-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.dash-card{
  border-radius: var(--radius-lg); padding: 28px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dash-card:hover{ transform: translateY(-6px); }
.dash-card--wide{ grid-column: span 2; }
.dash-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 20px; }
.dash-card-head h3{ font-size: var(--card-size); font-weight:600; margin:0; letter-spacing:-.01em; }

.line-chart{ width:100%; height:180px; }
.chart-legend{ display:flex; gap:18px; margin-top:14px; font-size:12.5px; color: var(--ink-soft); }
.chart-legend span{ display:flex; align-items:center; }

.radar-chart{ width:100%; height:220px; }

.goal-list li{ padding: 6px 0; }
.check{ display:flex; align-items:center; gap:12px; font-size:14.5px; cursor:pointer; }
.check input{ display:none; }
.check span{
  width:19px; height:19px; border-radius:6px; border:1.5px solid var(--border); position:relative; flex-shrink:0;
  transition: background .25s ease, border-color .25s ease;
}
.check input:checked + span{ background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after{
  content:""; position:absolute; left:5px; top:1px; width:5px; height:10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.ring-wrap{ display:flex; align-items:center; gap:20px; }
.progress-ring{ width:100px; height:100px; transform: rotate(-90deg); }
.ring-bg{ fill:none; stroke: rgba(17,17,17,.06); stroke-width:10; }
.ring-fg{ fill:none; stroke: var(--accent); stroke-width:10; stroke-linecap:round; stroke-dasharray: 377; stroke-dashoffset:377; transition: stroke-dashoffset 1.6s var(--ease); }
.ring-label .count{ font-family: var(--font-display); font-size:26px; }
.ring-label p{ margin:2px 0 0; font-size:12.5px; color: var(--ink-soft); }

.pill-row{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{ font-size:12.5px; padding:7px 13px; border-radius:100px; font-weight:500; }
.pill--weak{ background: rgba(180,118,42,.1); color: var(--warn); }
.pill--strong{ background: rgba(31,139,90,.1); color: var(--success); }

.countdown-row{ display:flex; gap:14px; }
.countdown-unit{
  flex:1; text-align:center; background: rgba(17,17,17,.03); border-radius: var(--radius-md); padding: 18px 8px;
}
.countdown-unit span{ font-family: var(--font-display); font-size: 32px; }
.countdown-unit p{ margin:6px 0 0; font-size:11.5px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.08em; }
.countdown-note{ margin: 16px 2px 0; font-size:12.5px; color: var(--ink-soft); }

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap-rail{ position: relative; padding-left: 26px; }
.roadmap-progress{
  position:absolute; left:0; top:0; width:2px; background: var(--accent); border-radius:2px;
  height:0%; transition: height 1.6s var(--ease);
}
.roadmap-rail::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:2px; background: var(--border);
}
.roadmap-track{ display:flex; flex-direction:column; gap:0; }

.roadmap-month{
  position:relative; padding: 34px 0 34px 40px; border-bottom: 1px solid var(--border);
}
.roadmap-month:last-child{ border-bottom:none; }
.roadmap-month::before{
  content: attr(data-index); position:absolute; left:-27px; top:38px; transform: translateX(-50%);
  width: 14px; height:14px; border-radius:50%; background: var(--bg); border: 2px solid var(--border);
  transition: background .4s ease, border-color .4s ease;
  font-size:0;
}
.roadmap-month.in-view::before{ border-color: var(--accent); background: var(--accent); }

.roadmap-month-head{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; margin-bottom:10px; }
.roadmap-month-head h3{ font-family: var(--font-display); font-size:26px; font-weight:500; margin:0; }
.roadmap-month-head span{ font-size:13px; color: var(--ink-soft); }
.roadmap-topics{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.roadmap-topics span{
  font-size:13px; padding:7px 13px; border-radius:100px; background: rgba(17,17,17,.04); color: var(--ink-soft);
}

/* ==========================================================================
   Exams
   ========================================================================== */

.exam-filters{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 36px; }
.exam-filter{
  font-size:13px; padding:9px 16px; border-radius:100px; border:1px solid var(--border); color: var(--ink-soft);
  transition: all .3s ease;
}
.exam-filter.active, .exam-filter:hover{ background: var(--ink); color:#fff; border-color: var(--ink); }

.exam-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exam-card{
  border-radius: var(--radius-lg); padding: 26px; cursor:pointer; position:relative; overflow:hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.exam-card:hover{ transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(17,17,17,.28); }
.exam-card-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:34px; }
.exam-code{ font-family: var(--font-display); font-style:italic; font-size: 13px; color: var(--ink-soft); }
.exam-diff{ font-size:11px; padding:4px 10px; border-radius:100px; font-weight:600; }
.exam-diff--High{ background: rgba(180,42,42,.1); color:#B42A2A; }
.exam-diff--Medium{ background: rgba(180,118,42,.1); color: var(--warn); }
.exam-diff--Moderate{ background: rgba(47,95,224,.1); color: var(--accent); }
.exam-card h3{ font-size:23px; font-weight:600; margin:0 0 8px; letter-spacing:-.01em; }
.exam-card p{ font-size:14px; color: var(--ink-soft); margin:0 0 20px; }
.exam-card-foot{ display:flex; justify-content:space-between; align-items:center; font-size:13px; border-top:1px solid var(--border); padding-top:16px; }
.exam-card-foot b{ font-weight:600; }
.exam-arrow{ width:30px; height:30px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition: all .35s ease; }
.exam-arrow svg{ width:13px; height:13px; }
.exam-card:hover .exam-arrow{ background: var(--ink); border-color: var(--ink); color:#fff; transform: rotate(45deg); }

/* Exam modal */
.modal-overlay{
  position: fixed; inset:0; z-index: 2000; background: rgba(17,17,17,.35);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; padding: 30px;
  opacity:0; visibility:hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.modal-overlay.active{ opacity:1; visibility:visible; }
.modal{
  width:min(880px, 100%); max-height: 84vh; overflow-y:auto; border-radius: var(--radius-lg);
  padding: 44px; position:relative; background: rgba(255,255,255,.92);
  transform: translateY(30px) scale(.98); transition: transform .45s var(--ease);
}
.modal-overlay.active .modal{ transform: translateY(0) scale(1); }
.modal-close{
  position:absolute; top:22px; right:22px; width:36px; height:36px; border-radius:50%;
  background: rgba(17,17,17,.05); font-size:20px; display:flex; align-items:center; justify-content:center;
  transition: background .3s ease;
}
.modal-close:hover{ background: rgba(17,17,17,.1); }

.modal-eyebrow{ font-size:13px; color: var(--ink-soft); letter-spacing:.1em; text-transform:uppercase; }
.modal h2{ font-family: var(--font-display); font-weight:500; font-size: 38px; margin: 10px 0 6px; }
.modal-tagline{ color: var(--ink-soft); font-size:15px; margin: 0 0 30px; }
.modal-fields{ display:grid; grid-template-columns: repeat(2,1fr); gap: 20px 28px; margin-bottom: 10px; }
.modal-field h5{ margin:0 0 6px; font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color: var(--ink-soft); }
.modal-field p, .modal-field a{ margin:0; font-size:14.5px; line-height:1.5; }
.modal-field--full{ grid-column: 1 / -1; }
.modal-divider{ height:1px; background: var(--border); margin: 26px 0; }

/* ==========================================================================
   Book Library
   ========================================================================== */

.book-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.book-card{
  border-radius: var(--radius-lg); padding:24px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.book-card:hover{ transform: translateY(-6px); }
.book-cover{
  height: 150px; border-radius: var(--radius-md); margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-style:italic; font-size:15px; color:#fff; text-align:center; padding:14px;
  background: linear-gradient(150deg, var(--ink), #2b2b2b);
}
.book-card h4{ font-size:18px; margin:0 0 4px; }
.book-card .book-author{ font-size:13px; color: var(--ink-soft); margin: 0 0 14px; }
.book-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color: var(--ink-soft); border-top:1px solid var(--border); padding-top:14px; }
.book-rating{ color: var(--ink); font-weight:600; }
.book-priority{ font-size:11px; padding:4px 10px; border-radius:100px; background: rgba(47,95,224,.1); color: var(--accent); font-weight:600; }

/* ==========================================================================
   Planner
   ========================================================================== */

.planner-tabs{ display:flex; gap:8px; margin-bottom: 40px; }
.planner-tab{
  font-size:14px; padding:11px 20px; border-radius:100px; border:1px solid var(--border); color: var(--ink-soft);
  transition: all .3s ease;
}
.planner-tab.active{ background: var(--ink); color:#fff; border-color: var(--ink); }

.timeline{ position:relative; padding-left: 30px; margin-bottom: 60px; }
.timeline::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:1px; background: var(--border); }
.timeline-item{ position:relative; padding: 0 0 30px 24px; }
.timeline-item::before{ content:""; position:absolute; left:-30px; top:4px; width:9px; height:9px; border-radius:50%; background: var(--accent); }
.timeline-time{ font-size:12.5px; color: var(--accent); font-weight:600; letter-spacing:.03em; }
.timeline-title{ font-size:17px; font-weight:600; margin: 4px 0 0; }

.target-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.target-card{ border-radius: var(--radius-lg); padding:26px; }
.target-card h4{ margin:0 0 16px; font-size:16px; }
.target-card li{ display:flex; justify-content:space-between; font-size:14px; padding: 9px 0; border-bottom:1px solid var(--border); color: var(--ink-soft); }
.target-card li:last-child{ border-bottom:none; }
.target-card li b{ color: var(--ink); font-weight:600; }

/* ==========================================================================
   Compare table
   ========================================================================== */

.compare-table-wrap{ border-radius: var(--radius-lg); overflow-x:auto; padding: 6px; }
.compare-table{ width:100%; border-collapse: collapse; min-width: 760px; }
.compare-table th, .compare-table td{ text-align:left; padding: 16px 22px; font-size:14px; }
.compare-table thead th{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); font-weight:600; }
.compare-table tbody tr{ border-top: 1px solid var(--border); }
.compare-table tbody tr:hover{ background: rgba(17,17,17,.02); }
.compare-table td:first-child, .compare-table th:first-child{ font-weight:600; position:sticky; left:0; background: inherit; }

/* ==========================================================================
   Resources
   ========================================================================== */

.resource-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.resource-card{
  border-radius: var(--radius-md); padding: 22px; display:flex; justify-content:space-between; align-items:center;
  transition: transform .4s var(--ease);
}
.resource-card:hover{ transform: translateY(-4px); }
.resource-card h5{ margin:0 0 4px; font-size:16px; }
.resource-card span{ font-size:12.5px; color: var(--ink-soft); }
.resource-arrow{ width:34px; height:34px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.resource-arrow svg{ width:13px; height:13px; }

/* ==========================================================================
   Motivation marquee
   ========================================================================== */

.motivation{ padding: 100px 0; overflow:hidden; }
.motivation-track{
  display:flex; gap: 60px; white-space:nowrap; width: max-content;
  animation: marquee 34s linear infinite;
}
.motivation-track span{
  font-family: var(--font-display); font-style:italic; font-size: clamp(24px,3.4vw,40px);
  color: var(--ink-soft); display:flex; align-items:center; gap:60px;
}
.motivation-track span::after{ content:"—"; color: var(--border); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

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

.footer{ background: var(--ink); color: rgba(255,255,255,.7); padding: 90px 32px 30px; }
.footer-inner{ max-width: var(--container); margin:0 auto; }
.footer-top{ display:flex; justify-content:space-between; gap:60px; flex-wrap:wrap; padding-bottom:60px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand{ max-width: 320px; display:flex; gap:14px; }
.footer-brand .nav-logo-mark{ background:#fff; color: var(--ink); flex-shrink:0; }
.footer-brand p{ font-size:14px; margin:2px 0 0; line-height:1.6; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h5{ color:#fff; font-size:13px; margin:0 0 16px; letter-spacing:.05em; text-transform:uppercase; }
.footer-col a, .footer-col span{ display:block; font-size:14px; padding: 6px 0; color: rgba(255,255,255,.6); transition: color .3s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:26px; font-size:12.5px; flex-wrap:wrap; gap:10px; color: rgba(255,255,255,.4); }

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

@media (max-width: 1080px){
  .dash-grid, .exam-grid, .book-grid, .target-grid, .resource-grid{ grid-template-columns: repeat(2,1fr); }
  .dash-card--wide{ grid-column: span 2; }
}

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .nav-burger{ display:flex; }
  .section{ padding: 110px 20px; }
  .hero-counters{ gap: 10px 0; }
  .hero-counter{ padding: 10px 22px; border-right:none; border-bottom:1px solid var(--border); flex: 1 1 40%; }
  .footer-top{ flex-direction:column; gap: 40px; }
}

@media (max-width: 640px){
  .dash-grid, .exam-grid, .book-grid, .target-grid, .resource-grid{ grid-template-columns: 1fr; }
  .dash-card--wide{ grid-column: span 1; }
  .modal-fields{ grid-template-columns: 1fr; }
  .modal{ padding: 30px 22px; }
  .countdown-row{ gap:8px; }
  .compare-table td, .compare-table th{ padding: 12px 14px; }
}