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

:root {
  --bg: #060910;
  --bg-2: #0A0E1A;
  --surface: #0D1220;
  --surface-2: #111827;
  --border: rgba(255,255,255,0.07);
  --cyan: #00D9FF;
  --cyan-dim: rgba(0, 217, 255, 0.12);
  --cyan-glow: rgba(0, 217, 255, 0.25);
  --amber: #FFAB40;
  --text: #E8ECF4;
  --text-2: #8892A4;
  --text-3: #4E5A72;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(6, 9, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 217, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(255, 171, 64, 0.04) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-headline em {
  font-style: normal;
  color: var(--cyan);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 440px;
  font-weight: 300;
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 20px;
  max-width: 420px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: rgba(0, 217, 255, 0.3);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  padding: 12px 0;
  cursor: text;
}

.search-input::placeholder { color: var(--text-3); }

.search-btn {
  background: var(--cyan);
  color: #060910;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.search-btn:hover { opacity: 0.85; }

.search-note {
  font-size: 12px;
  color: var(--text-3);
}

/* Hero Right — Score Ring */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.score-ring-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring-outer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-ring-score {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
}

.score-ring-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.score-ring-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    conic-gradient(from 0deg, var(--cyan) 0%, var(--cyan) 87%, rgba(0, 217, 255, 0.15) 87%, rgba(0, 217, 255, 0.15) 100%);
  mask: radial-gradient(transparent calc(50% - 12px), black calc(50% - 11px) calc(50% + 11px), transparent calc(50% + 12px));
  -webkit-mask: radial-gradient(transparent calc(50% - 12px), black calc(50% - 11px) calc(50% + 11px), transparent calc(50% + 12px));
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.score-ring-ticks {
  position: absolute;
  inset: 0;
}

.tick {
  position: absolute;
  width: 2px;
  height: 8px;
  background: rgba(0, 217, 255, 0.3);
  top: 4px;
  left: 50%;
  transform-origin: 50% 136px;
  border-radius: 1px;
}

.t1  { transform: translateX(-50%) rotate(0deg);    background: rgba(0, 217, 255, 0.5); height: 10px; }
.t2  { transform: translateX(-50%) rotate(30deg); }
.t3  { transform: translateX(-50%) rotate(60deg); }
.t4  { transform: translateX(-50%) rotate(90deg);  background: rgba(0, 217, 255, 0.5); height: 10px; }
.t5  { transform: translateX(-50%) rotate(120deg); }
.t6  { transform: translateX(-50%) rotate(150deg); }
.t7  { transform: translateX(-50%) rotate(180deg); background: rgba(0, 217, 255, 0.5); height: 10px; }
.t8  { transform: translateX(-50%) rotate(210deg); }
.t9  { transform: translateX(-50%) rotate(240deg); }
.t10 { transform: translateX(-50%) rotate(270deg); background: rgba(0, 217, 255, 0.5); height: 10px; }
.t11 { transform: translateX(-50%) rotate(300deg); }
.t12 { transform: translateX(-50%) rotate(330deg); }

.hero-score-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.meta-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.meta-val.good { color: #34D399; }

.meta-key { font-size: 11px; color: var(--text-3); }

.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Engine badges */
.hero-engines {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.engines-label {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.engine-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.engine-badge {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* =====================
   SCORES SECTION
   ===================== */
.scores-section {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.score-card:hover {
  border-color: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.score-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--cyan-dim);
  border-radius: 10px;
}

.score-card-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.score-card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.score-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.bar-fill {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 217, 255, 0.4));
  border-radius: 2px;
}

.bar-78 { width: 78%; }
.bar-54 { width: 54%; background: linear-gradient(90deg, var(--amber), rgba(255, 171, 64, 0.4)); }
.bar-91 { width: 91%; }
.bar-67 { width: 67%; }
.bar-43 { width: 43%; background: linear-gradient(90deg, var(--amber), rgba(255, 171, 64, 0.4)); }

.bar-val {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how-section {
  padding: 100px 48px;
  background: var(--bg);
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.how-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.how-step {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
}

.step-number {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: rgba(0, 217, 255, 0.2);
  line-height: 1;
}

.step-head {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.step-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
}

.sbar-fill {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 217, 255, 0.3));
  border-radius: 2px;
  flex: 1;
}

.sbar span {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-3);
  width: 24px;
  text-align: right;
}

.step-fixes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.fix-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.fix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.fix-dot.warn { background: var(--amber); }

.fix-item span:first-of-type { flex: 1; }

.fix-impact {
  color: var(--cyan);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.step-spark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.step-spark svg {
  width: 160px;
  height: 60px;
}

.spark-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
}

.how-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.connector-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--cyan-dim), rgba(0, 217, 255, 0.05));
}

/* =====================
   DATA SECTION
   ===================== */
.data-section {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.data-header {
  text-align: center;
  margin-bottom: 64px;
}

.data-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-card {
  background: var(--surface);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.data-card:hover { background: var(--surface-2); }

.data-card-accent {
  background: rgba(255, 171, 64, 0.04);
}

.data-card-accent:hover { background: rgba(255, 171, 64, 0.07); }

.data-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.6;
}

.data-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.data-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.data-icon { margin-bottom: 4px; }

/* =====================
   PROGRESSION
   ===================== */
.progression-section {
  padding: 100px 48px;
  background: var(--bg);
}

.progression-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.prog-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.prog-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.prog-body {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.prog-stat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  padding-top: 8px;
}

.prog-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-3);
  flex-shrink: 0;
}

.tl-dot-active {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

.tl-content {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
  padding: 16px 0;
}

.tl-score {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-3);
}

.tl-dot-active ~ .tl-content .tl-score { color: var(--cyan); }

.tl-label {
  font-size: 13px;
  color: var(--text-3);
}

.timeline-line {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-left: 5px;
}

/* =====================
   CLOSING
   ===================== */
.closing-section {
  padding: 120px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.closing-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

.closing-score-demo {
  margin-top: 16px;
}

.demo-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 217, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.demo-ring-score {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.5;
}

.demo-ring-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 60px 48px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
}

.footer-sep { opacity: 0.3; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .scores-grid { grid-template-columns: repeat(3, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .score-ring-container { width: 200px; height: 200px; }
  .score-ring-score { font-size: 52px; }
  .tick { transform-origin: 50% 94px; }
  .tick.t1 { height: 8px; }
  .tick.t4 { height: 8px; }
  .tick.t7 { height: 8px; }
  .tick.t10 { height: 8px; }

  .scores-section, .how-section, .data-section, .progression-section, .closing-section {
    padding: 60px 24px;
  }

  .scores-grid { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr; }

  .how-step { grid-template-columns: 40px 1fr; }
  .step-visual { display: none; }

  .progression-inner { grid-template-columns: 1fr; gap: 48px; }
  .prog-timeline { display: none; }

  .footer { padding: 48px 24px 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .scores-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
}
