/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06091A;
  --bg-2: #0D1129;
  --bg-card: #111828;
  --accent: #F7A800;
  --accent-dim: rgba(247, 168, 0, 0.12);
  --fg: #EEF0F8;
  --fg-2: #8892A8;
  --fg-3: #4E5770;
  --green: #22C55E;
  --green-dim: rgba(34, 197, 94, 0.12);
  --warn: #F7A800;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1160px;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* === NAV === */
.nav {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* === SECTION SHARED === */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(247, 168, 0, 0.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 720px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 60px;
  font-weight: 300;
}

/* Hero Score Preview */
.hero-score-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: inline-block;
  max-width: 420px;
}

.score-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 12px;
  font-weight: 500;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.score-denom {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-3);
}

.score-bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #FF9D00);
  border-radius: 4px;
}

.score-insight {
  font-size: 13px;
  color: var(--fg-2);
  font-style: italic;
}

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,168,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,168,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 1;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.phase-card:hover::before { opacity: 1; }

.phase-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.phase-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  font-weight: 300;
}

/* === RULES FRAMEWORK === */
.rules-framework {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.rules-body {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 400;
  transition: background 0.2s;
}

.rule-item--active {
  background: var(--green-dim);
  border-color: rgba(34, 197, 94, 0.15);
  color: #a3e9b4;
}

.rule-item--warn {
  background: var(--accent-dim);
  border-color: rgba(247, 168, 0, 0.15);
  color: #fbbf24;
}

.rule-icon { flex-shrink: 0; }

/* === SCORE CARD SECTION === */
.score-card-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.score-card-header {
  padding: 24px 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.sc-meta {
  font-size: 13px;
  color: var(--fg-3);
}

.score-card-body {
  padding: 40px 36px;
}

.sc-big-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.sc-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sc-denom {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg-3);
}

.sc-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
}

.sc-trend--up { color: var(--green); }
.sc-trend--down { color: #ef4444; }

.sc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sc-metric { display: flex; align-items: center; gap: 16px; }

.sc-metric-label {
  font-size: 14px;
  color: var(--fg-2);
  min-width: 220px;
}

.sc-metric-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  max-width: 280px;
}

.sc-metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #FF9D00);
  border-radius: 4px;
}

.sc-metric-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
}

/* === CLOSING === */
.closing {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.7;
  font-weight: 300;
}

/* === FOOTER === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-3);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .phases-grid { grid-template-columns: 1fr 1fr; }
  .rules-layout { grid-template-columns: 1fr; gap: 40px; }
  .sc-metric-label { min-width: 160px; }
}

@media (max-width: 600px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .section-inner { padding: 0 24px; }
  .phases-grid { grid-template-columns: 1fr; }
  .how-it-works, .rules-framework, .score-card-section, .closing { padding: 60px 0; }
  .sc-metric-label { min-width: 130px; font-size: 13px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .score-card-header { flex-direction: column; gap: 6px; align-items: flex-start; }
  .score-card-body { padding: 28px 24px; }
  .sc-number { font-size: 56px; }
}