/* ============================================================
   ScoreLab — scorelab.app
   Black + electric lime. Upward motion everywhere.
   Single-theme by design: matches the app.
   ============================================================ */

:root {
  --bg:       #0b0b0d;
  --card:     #15161a;
  --ink:      #f7f8f4;
  --muted:    #8f958a;
  --hairline: rgba(247, 248, 244, 0.09);
  --lime:     #cff24a;
  --lime-dim: #9db83a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { transform: scaleY(0.08); }
  to   { transform: scaleY(1); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.6; }
}
.rise { opacity: 0; animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.31s; }
.d4 { animation-delay: 0.44s; }
.d5 { animation-delay: 0.6s; }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 13, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 112px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 242, 74, 0.12) 0%, transparent 65%);
  top: -220px; left: 50%; margin-left: -310px;
  filter: blur(50px);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-icon {
  width: 88px; height: 88px; border-radius: 22px;
  box-shadow: 0 0 60px -8px rgba(207, 242, 74, 0.35);
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800; font-style: italic; letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--lime); }
.hero-sub {
  max-width: 32em; margin: 24px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted); line-height: 1.6;
  text-wrap: balance;
}
.hero-cta {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--hairline);
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.btn-notify {
  font-size: 13px; font-weight: 800;
  padding: 9px 18px; border-radius: 100px;
  background: var(--lime); color: #1c2205;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(207, 242, 74, 0.6);
}

/* ---------- Diagnostic ---------- */
.diag-wrap { padding: 8px 0 0; }
.diag-card {
  max-width: 720px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 36px;
  text-align: left;
}
.diag-card .f-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 12px;
}
.diag-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.diag-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; max-width: 34em; }
.diag-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diag-targets { grid-template-columns: repeat(4, 1fr); }
.diag-track {
  font: inherit; color: inherit; cursor: pointer;
  background: #1c1d22;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.diag-track:hover { border-color: var(--lime); transform: translateY(-2px); }
.diag-track .t-name { font-weight: 800; font-size: 17px; }
.diag-track .t-desc { font-size: 12px; color: var(--muted); }

.diag-progress {
  height: 4px; border-radius: 2px;
  background: #1c1d22;
  margin-bottom: 20px; overflow: hidden;
}
.diag-progress-fill {
  height: 100%; background: var(--lime); border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.diag-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.diag-subject {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime);
}
.diag-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.diag-passage {
  font-size: 14px; color: var(--muted); line-height: 1.65;
  border-left: 2px solid var(--hairline);
  padding-left: 14px; margin-bottom: 14px;
  font-style: italic;
}
.diag-prompt { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.diag-choices { display: flex; flex-direction: column; gap: 10px; }
.diag-choice {
  font: inherit; color: inherit; cursor: pointer;
  font-size: 15px; line-height: 1.45; text-align: left;
  background: #1c1d22;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.3s ease;
}
.diag-choice:hover:not(:disabled) { border-color: var(--lime); }
.diag-choice:disabled { cursor: default; }
.diag-choice.is-correct { border-color: var(--lime); background: rgba(207, 242, 74, 0.12); }
.diag-choice.is-wrong { border-color: #e5484d; background: rgba(229, 72, 77, 0.12); }
.diag-choice.is-faded { opacity: 0.45; }

.diag-email { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.diag-email input {
  font: inherit; color: var(--ink);
  flex: 1; min-width: 220px;
  background: #1c1d22;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 10px 18px;
}
.diag-email input:focus { outline: none; border-color: var(--lime); }
.diag-email .btn-notify { border: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; }
.diag-fineprint { font-size: 12px; color: var(--muted); }

.diag-score { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.diag-score-num {
  font-size: 64px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.diag-score-err { font-size: 16px; color: var(--muted); }
.diag-score-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 4px 0 24px;
}
.diag-sections { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.diag-section-head {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.diag-bar { height: 6px; border-radius: 3px; background: #1c1d22; overflow: hidden; }
.diag-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(to right, var(--lime-dim), var(--lime));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.diag-verdict { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; max-width: 36em; }
.diag-verdict strong { color: var(--ink); }
.diag-plan {
  background: #1c1d22;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.diag-plan h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.diag-plan ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.diag-plan li { font-size: 14px; color: var(--muted); line-height: 1.55; }
.diag-plan-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.diag-plan-note strong { color: var(--ink); }
.diag-card .hero-cta { justify-content: flex-start; margin-top: 0; }
.diag-retake {
  font: inherit; cursor: pointer;
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  margin-top: 18px; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.diag-retake:hover { color: var(--ink); }

/* ---------- Features ---------- */
.features {
  padding: 88px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 242, 74, 0.35);
}
.feature .f-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.feature p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
}
.footer-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer-inner a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero { padding: 80px 0 56px; }
  .features { grid-template-columns: 1fr; padding: 64px 0; }
  .diag-card { padding: 24px 20px; }
  .diag-tracks { grid-template-columns: 1fr; }
  .diag-targets { grid-template-columns: 1fr 1fr; }
  .diag-score-num { font-size: 48px; }
}
