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

:root {
  --bg: #fafaf9;
  --bg-2: #f5f4f0;
  --fg: #111111;
  --fg-2: #444444;
  --fg-3: #888888;
  --accent: #1a4a35;
  --accent-light: #e8f0ec;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --border: #e2e1dc;
  --white: #ffffff;
  --green-score: #16a34a;
  --red-score: #dc2626;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.1;
  font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-3);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 2rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-lede {
  font-size: 1.125rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RANK CARD ===== */
.rank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.rank-card-header {
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rank-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.rank-meta {
  font-size: 0.75rem;
  opacity: 0.7;
}
.rank-list {
  padding: 0.5rem 0;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.rank-item:last-child { border-bottom: none; }
.rank-top { background: rgba(26,74,53,0.04); }
.rank-bottom { background: rgba(220,38,38,0.03); }
.rank-position {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fg-3);
  width: 1.5rem;
  text-align: center;
}
.rank-top .rank-position { color: var(--green-score); font-size: 1.1rem; }
.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rank-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}
.rank-score-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
}
.rank-score-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--w, 0%);
  background: var(--accent);
  border-radius: 2px;
}
.rank-top .rank-score-bar::after { background: var(--green-score); }
.rank-points {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}
.rank-top .rank-points { color: var(--green-score); }

/* ===== SHARED SECTION STYLES ===== */n.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 52ch;
  line-height: 1.7;
}

/* ===== OUTPUT SECTION ===== */
.output-section {
  padding: 6rem 2rem;
  background: var(--white);
}
.output-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.output-content .section-title {
  color: var(--fg);
}
.output-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.output-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  background: var(--bg);
}
.output-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.output-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.output-card p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  padding: 6rem 2rem;
  background: var(--accent);
  color: white;
}
.problem-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.problem-header {
  margin-bottom: 3rem;
}
.problem-header .section-eyebrow { color: #86efac; }
.problem-header .section-title.light { color: white; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.problem-x {
  font-size: 1rem;
  color: #86efac;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.problem-item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.problem-item strong { color: white; }
.solution-statement {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2.5rem;
}
.solution-statement h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #86efac;
  max-width: 52ch;
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: 6rem 2rem;
  background: var(--bg);
}
.process-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.process-header {
  margin-bottom: 3.5rem;
}
.process-header .section-title { color: var(--fg); }
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  width: 5rem;
}
.step-content {
  flex: 1;
}
.step-content h3 {
  font-size: 1.35rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 58ch;
}
.step-content em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 6rem 2rem;
  background: var(--bg-2);
}
.features-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.features-inner .section-title { color: var(--fg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.feature p {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 6rem 2rem;
  background: var(--accent);
  color: white;
}
.pricing-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.pricing-inner .section-eyebrow { color: #86efac; }
.pricing-inner .section-title { color: white; }
.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 2rem;
  text-align: left;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.price-num {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.price-per {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.6);
}
.pricing-tagline {
  font-size: 0.875rem;
  color: #86efac;
  margin-bottom: 2rem;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-features li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  padding-left: 1.5rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 700;
}

/* ===== CLOSING ===== */
.closing-section {
  padding: 6rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}
.closing-content {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.closing-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.closing-content p {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.closing-voice {
  font-size: 0.95rem;
  color: var(--fg-3);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  background: var(--fg);
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.4rem;
}
.footer-desc {
  font-size: 0.8rem;
}
.footer-copy {
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
  .output-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .process-step { gap: 1.5rem; }
  .step-num { width: 3rem; font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .problem-item { padding: 1rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .pricing-card { padding: 2rem 1.5rem; }
}