:root {
  --ink: #17322f;
  --muted: #5c6d69;
  --paper: #f5f4ed;
  --cream: #eae8dd;
  --green: #153f3a;
  --lime: #c8ee55;
  --orange: #ff8a4c;
  --line: rgba(23, 50, 47, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: white;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1220px, calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img { display: block; width: 64px; height: 64px; object-fit: contain; }

nav { display: flex; align-items: center; gap: 34px; font-size: 0.9rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:not(.nav-cta):hover { opacity: 0.6; }

.language-toggle {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle:hover { background: var(--cream); }
.language-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.nav-cta {
  padding: 12px 18px;
  color: white;
  background: var(--green);
  border-radius: 999px;
}

.hero-intro {
  width: min(1220px, calc(100% - 48px));
  min-height: 700px;
  margin: 0 auto;
  padding: 0px 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.hero-intro h1 { max-width: 800px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-intro p {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero {
  width: min(1220px, calc(100% - 48px));
  min-height: 700px;
  margin: 0 auto;
  padding: 92px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: 8vw;
}

.eyebrow {
  margin: 0 0 18px;
  color: #48756e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 800px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
}

.hero-wordmark {
  display: block;
  width: clamp(220px, 28vw, 350px);
  height: auto;
  margin-bottom: 42px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 63, 58, 0.12); }
.button-primary { color: white; background: var(--green); }
.button-secondary { color: var(--ink); background: transparent; }
.button-github { gap: 12px; }
.button-github > span:last-child { margin-left: 10px; }
.github-mark { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }

.hero-visual { align-self: center; }
.hero-visual > p { margin: 18px 8px 0; color: var(--muted); font-size: 0.86rem; }

.signal-card {
  padding: 30px;
  color: white;
  background: var(--green);
  border-radius: 4px;
  box-shadow: 24px 24px 0 var(--cream);
}

.signal-head { display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.live-dot { color: var(--lime); }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: currentColor; border-radius: 50%; }
.signal-value { margin: 44px 0 22px; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 4.5rem); letter-spacing: -0.05em; }
.signal-bars { height: 92px; display: flex; align-items: end; gap: 7px; }
.signal-bars span { flex: 1; height: 20%; background: var(--lime); }
.signal-bars span:nth-child(2) { height: 28%; }
.signal-bars span:nth-child(3) { height: 37%; }
.signal-bars span:nth-child(4) { height: 52%; }
.signal-bars span:nth-child(5) { height: 38%; }
.signal-bars span:nth-child(6) { height: 70%; }
.signal-bars span:nth-child(7) { height: 58%; }
.signal-bars span:nth-child(8) { height: 82%; }
.signal-bars span:nth-child(9) { height: 71%; }
.signal-bars span:nth-child(10) { height: 94%; background: var(--orange); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.48); font-size: 0.68rem; font-weight: 800; }
.modes span:nth-child(2) { text-align: center; }
.modes span:last-child { text-align: right; }
.modes .active { color: var(--orange); }

.section { padding: 120px max(24px, calc((100vw - 1220px) / 2)); }
.section h2 { margin-bottom: 24px; font-family: Georgia, serif; font-size: clamp(2.5rem, 4.6vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--cream); }
.intro-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.intro-copy p:last-child { margin-bottom: 0; }

.modes-section { background: #faf9f4; }
.section-heading { max-width: 660px; margin-bottom: 58px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mode-card { min-height: 330px; padding: 30px 30px 10px 0; border-right: 1px solid var(--line); }
.mode-card + .mode-card { padding-left: 30px; }
.mode-card:last-child { border-right: 0; }
.mode-number { width: 42px; height: 42px; margin-bottom: 75px; display: grid; place-items: center; color: white; background: #4c827a; border-radius: 50%; font-size: 0.8rem; font-weight: 800; }
.mode-card.medium .mode-number { color: var(--ink); background: #d8d36a; }
.mode-card.high .mode-number { background: var(--orange); }
.mode-label { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.mode-card h3 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.mode-card > p:last-child { max-width: 310px; color: var(--muted); line-height: 1.6; }

.results { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 10vw; color: white; background: var(--green); }
.eyebrow.light { color: var(--lime); }
.results-copy > p:not(.eyebrow):not(.note) { max-width: 480px; color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.7; }
.results-copy .note { margin-top: 48px; color: rgba(255,255,255,0.45); font-size: 0.74rem; line-height: 1.5; }
.results-stats article { padding: 28px 0; display: grid; grid-template-columns: minmax(180px, 0.8fr) 1fr; align-items: baseline; gap: 28px; border-top: 1px solid rgba(255,255,255,0.2); }
.results-stats strong { color: var(--lime); font-family: Georgia, serif; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 500; letter-spacing: -0.05em; }
.results-stats span { color: rgba(255,255,255,0.72); line-height: 1.5; }

.thesis { display: flex; align-items: end; justify-content: space-between; gap: 80px; background: var(--cream); }
.thesis > div { max-width: 700px; }
.thesis > div > p:last-child { max-width: 580px; margin-bottom: 0; line-height: 1.7; }
.thesis .button { flex: 0 0 auto; }

footer {
  min-height: 200px;
  padding: 56px max(24px, calc((100vw - 1220px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  
  color: rgba(255,255,255,0.7);
  background: #102d2a;
  font-size: 0.84rem;
}
.footer-brands { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); }
.footer-author { display: flex; flex-direction: column; gap: 2px; justify-content: center;}
footer strong { color: white; }
footer a { color: white; font-weight: 750; text-decoration: none; }
.footer-github {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  justify-self: end;
}
.footer-github .github-mark { width: 23px; height: 23px; }
.footer-github:hover { color: var(--green); background: var(--cream); transform: translateY(-2px); }
.footer-github:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

@media (max-width: 850px) {
  .site-header { min-height: 92px; }
  .brand img { width: 52px; height: 52px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding: 72px 0 90px; grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 520px; }
  .intro, .results { grid-template-columns: 1fr; gap: 54px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card, .mode-card + .mode-card { min-height: 0; padding: 26px 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mode-card:last-child { border-bottom: 0; }
  .mode-number { margin-bottom: 42px; }
  .thesis { align-items: start; flex-direction: column; gap: 36px; }
  footer { grid-template-columns: 1fr; align-items: start; justify-items: center; gap: 24px; text-align: center; }
  .footer-github { justify-self: center; }
  footer > a { grid-column: 1;}
}

@media (max-width: 560px) {
  .hero-intro { min-height: 800px; }
  .site-header, .hero { width: min(100% - 32px, 1220px); }
  .nav-cta { padding: 10px 14px; }
  nav { gap: 10px; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.5rem); }
  .hero-intro h1 { max-width: 800px; margin-bottom: 26px; font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 500; line-height: 0.94; letter-spacing: -0.055em;}
  .hero { padding-top: 58px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .signal-card { padding: 22px; box-shadow: 12px 12px 0 var(--cream); }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .results-stats article { grid-template-columns: 1fr; gap: 5px; }
  footer { grid-template-columns: 1fr; align-items: start; justify-items: center; gap: 24px; text-align: center; }
  .footer-github { justify-self: center; }
  footer > a { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
