/* Athena landing page.
 *
 * A self-contained visual language, separate from the Phase-0 studies system in
 * style.css: IBM Plex, a warm paper ground, a single electric blue accent, and
 * hard offset shadows instead of elevation. Only the landing loads this file, so
 * class names here are prefixed `ath-` purely to keep the two vocabularies
 * legible side by side. */

:root {
  --ath-paper: #f3f0e9;
  --ath-ink: #1a2233;
  --ath-blue: #2b49d4;
  --ath-blue-dark: #1e37ab;
  --ath-body: #3d3b32;
  --ath-body-strong: #2d2b23;
  --ath-muted: #6d6a5f;
  --ath-faint: #9a9484;
  --ath-rule: #d7d2c6;
  --ath-rule-soft: #cdc7ba;
  --ath-track: #e6ddca;
  --ath-cyc: #8a8474;

  --ath-sans: "IBM Plex Sans", system-ui, sans-serif;
  --ath-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ath-measure: 1080px;
  --ath-gutter: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ath-paper);
}

body {
  font-family: var(--ath-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--ath-ink);
  overflow-x: hidden;
}

a {
  color: var(--ath-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ath-blue-dark);
}

::selection {
  background: rgba(43, 73, 212, 0.16);
}

.ath-skip {
  position: absolute;
  left: -9999px;
}

.ath-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--ath-ink);
  color: var(--ath-paper);
  font-family: var(--ath-mono);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- shell -- */

.ath-wrap {
  max-width: var(--ath-measure);
  margin: 0 auto;
  padding: 0 var(--ath-gutter);
}

/* Every band below the hero shares one top rhythm; the bottom is left to the
 * band itself so the last one can close against the footer. */
.ath-section {
  padding-top: 52px;
}

.ath-eyebrow {
  font-family: var(--ath-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ath-blue);
  margin: 0 0 16px;
}

/* The recurring editorial split: heading left, running text right. */
.ath-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ath-h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.026em;
  font-weight: 600;
  margin: 0;
}

.ath-prose {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ath-body);
  margin: 0;
}

.ath-prose--lead {
  font-size: 16.5px;
  line-height: 1.68;
}

.ath-prose--lead p {
  margin: 0 0 16px;
}

.ath-prose--lead p:last-child {
  margin: 0;
}

.ath-brace {
  font-family: var(--ath-mono);
  color: var(--ath-blue);
  font-weight: 500;
}

.ath-accent {
  color: var(--ath-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------- header -- */

.ath-masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 233, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ath-ink);
}

.ath-masthead .ath-wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ath-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ath-wordmark {
  font-family: var(--ath-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ath-ink);
}

.ath-version {
  font-family: var(--ath-mono);
  font-size: 11px;
  color: var(--ath-muted);
  border: 1px solid var(--ath-rule-soft);
  padding: 2px 7px;
  border-radius: 20px;
}

.ath-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--ath-mono);
  font-size: 13px;
}

.ath-nav-link {
  color: #4a473e;
}

/* -------------------------------------------------------------- buttons -- */

/* Hard offset shadow that collapses under the press, rather than a hover lift. */
.ath-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ath-mono);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 13px 20px;
  border-radius: 4px;
  border: 1.5px solid var(--ath-ink);
  box-shadow: 4px 4px 0 var(--ath-ink);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.ath-btn:hover,
.ath-btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ath-ink);
}

.ath-btn--primary {
  background: var(--ath-blue);
  color: #fff;
}

.ath-btn--primary:hover {
  color: #fff;
}

.ath-btn--ghost {
  background: var(--ath-paper);
  color: var(--ath-ink);
  box-shadow: 4px 4px 0 var(--ath-blue);
}

.ath-btn--ghost:hover,
.ath-btn--ghost:focus-visible {
  color: var(--ath-ink);
  box-shadow: 2px 2px 0 var(--ath-blue);
}

.ath-btn--small {
  background: var(--ath-ink);
  color: var(--ath-paper);
  gap: 8px;
  font-size: 13px;
  padding: 7px 15px;
  box-shadow: 3px 3px 0 var(--ath-blue);
}

.ath-btn--small:hover,
.ath-btn--small:focus-visible {
  color: var(--ath-paper);
  box-shadow: 1px 1px 0 var(--ath-blue);
}

.ath-btn--large {
  font-size: 14px;
  padding: 15px 26px;
  box-shadow: 5px 5px 0 var(--ath-ink);
  white-space: nowrap;
}

.ath-btn--large:hover,
.ath-btn--large:focus-visible {
  box-shadow: 3px 3px 0 var(--ath-ink);
}

.ath-btn svg {
  flex: none;
}

.ath-dollar {
  color: var(--ath-blue);
}

/* ----------------------------------------------------------------- hero -- */

.ath-hero {
  padding-top: 46px;
  padding-bottom: 30px;
  animation: ath-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ath-hero-grid {
  display: grid;
  grid-template-columns: 1.62fr 0.38fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ath-ink);
}

.ath-h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0;
}

.ath-h1 .ath-qualifier {
  color: var(--ath-muted);
  font-weight: 500;
}

.ath-hero-copy {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ath-body);
  margin: 22px 0 16px;
  max-width: 520px;
}

.ath-command {
  font-family: var(--ath-mono);
  font-size: 15.5px;
  color: var(--ath-ink);
  margin: 0 0 24px;
}

.ath-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ath-stat {
  text-align: right;
  border-left: 2px solid var(--ath-ink);
  padding-left: 26px;
}

.ath-stat-label {
  font-family: var(--ath-mono);
  font-size: 12px;
  color: var(--ath-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.ath-stat-value {
  font-family: var(--ath-mono);
  font-size: 104px;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 8px 0 4px;
}

.ath-stat-delta {
  font-family: var(--ath-mono);
  font-size: 14px;
  color: var(--ath-blue);
  margin: 0;
}

.ath-stat-note {
  font-size: 13px;
  color: var(--ath-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

@keyframes ath-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------------------------------------- benchmarks -- */

.ath-bench-intro {
  margin-bottom: 34px;
}

.ath-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--ath-rule);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.ath-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--ath-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ath-faint);
  padding: 0 0 12px;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.ath-tab:hover {
  color: var(--ath-body);
}

.ath-tab[aria-selected="true"] {
  color: var(--ath-ink);
  font-weight: 600;
  border-bottom-color: var(--ath-blue);
}

.ath-bench-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ath-bench-caption {
  font-family: var(--ath-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ath-muted);
}

.ath-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ath-mono);
  font-size: 11px;
  color: var(--ath-faint);
  flex-wrap: wrap;
}

.ath-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ath-swatch {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: var(--ath-ink);
}

.ath-swatch--compile {
  background: repeating-linear-gradient(
    45deg,
    rgba(26, 34, 51, 0.5) 0 4px,
    rgba(230, 221, 202, 0.2) 4px 8px
  );
}

.ath-legend-sep {
  color: #c9c2b3;
}

.ath-bars {
  border-top: 2px solid var(--ath-ink);
}

.ath-bar-row {
  display: grid;
  grid-template-columns: 210px 1fr 96px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--ath-rule);
}

.ath-bar-row--last {
  border-bottom: 2px solid var(--ath-ink);
}

.ath-bar-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ath-bar-name b {
  font-family: var(--ath-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ath-body);
}

.ath-bar-row--athena .ath-bar-name b {
  font-weight: 700;
  color: var(--ath-ink);
}

.ath-bar-tag {
  font-family: var(--ath-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ath-faint);
}

.ath-bar-compile-label {
  font-family: var(--ath-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #8f8574;
}

.ath-bar-track {
  height: 16px;
  background: var(--ath-track);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

/* Widths come from the build as custom properties; the zero-width start state
 * below is applied only when scripting is on, so a no-JS render still shows the
 * bars at their true length. */
.ath-bar-compile,
.ath-bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ath-bar-compile {
  width: var(--compile-w);
  background: repeating-linear-gradient(
    45deg,
    rgba(26, 34, 51, 0.5) 0 5px,
    rgba(230, 221, 202, 0.2) 5px 10px
  );
}

.ath-bar-fill {
  width: var(--run-w);
  background: var(--ath-ink);
}

.ath-bar-row--athena .ath-bar-fill {
  background: var(--ath-blue);
}

.ath-bar-row--athena .ath-bar-compile {
  background: repeating-linear-gradient(
    45deg,
    rgba(43, 73, 212, 0.42) 0 5px,
    rgba(230, 221, 202, 0.2) 5px 10px
  );
}

.ath-bar-row--cyc .ath-bar-fill {
  background: var(--ath-cyc);
}

.ath-bar-row--cyc .ath-bar-compile {
  background: repeating-linear-gradient(
    45deg,
    rgba(138, 132, 116, 0.6) 0 5px,
    rgba(230, 221, 202, 0.2) 5px 10px
  );
}

.ath-bar-value {
  font-family: var(--ath-mono);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: var(--ath-body);
}

.ath-bar-row--athena .ath-bar-value {
  color: var(--ath-blue);
}

.ath-panel[hidden] {
  display: none;
}

.js .ath-panel:not(.is-ready) .ath-bar-fill,
.js .ath-panel:not(.is-ready) .ath-bar-compile {
  width: 0;
}

.ath-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
}

.ath-note-mark {
  color: var(--ath-blue);
  font-size: 15px;
  line-height: 1.5;
}

.ath-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ath-body-strong);
  max-width: 720px;
}

/* --------------------------------------------------------------- why/wins -- */

.ath-featured {
  border-top: 2px solid var(--ath-ink);
  padding-top: 28px;
}

.ath-featured-num {
  font-family: var(--ath-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ath-blue);
  margin: 0 0 10px;
}

.ath-h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

.ath-wins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  border-top: 1px solid var(--ath-rule);
  margin-top: 38px;
}

.ath-win {
  padding: 26px 0;
  border-bottom: 1px solid var(--ath-rule);
}

.ath-win-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
}

.ath-win-num {
  font-family: var(--ath-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ath-blue);
}

.ath-win-title {
  font-size: 18px;
  font-weight: 600;
}

.ath-win-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ath-body);
  margin: 0;
  padding-left: 25px;
}

/* ---------------------------------------------------------- correctness -- */

.ath-checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
  margin: 0;
  list-style: none;
}

.ath-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--ath-rule);
  padding-bottom: 16px;
}

.ath-check:last-child {
  border-bottom: none;
}

.ath-check-mark {
  color: var(--ath-blue);
  font-weight: 600;
  font-family: var(--ath-mono);
}

.ath-check-text {
  font-size: 15.5px;
  color: var(--ath-body-strong);
  line-height: 1.5;
}

.ath-check--todo .ath-check-mark {
  color: #b0aa9a;
}

.ath-check--todo .ath-check-text {
  color: var(--ath-muted);
}

.ath-pill {
  font-family: var(--ath-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ath-blue);
  background: rgba(43, 73, 212, 0.1);
  border: 1px solid rgba(43, 73, 212, 0.3);
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ------------------------------------------------------------ cta/footer -- */

.ath-cta {
  padding-top: 58px;
  padding-bottom: 20px;
}

.ath-cta-inner {
  border-top: 2px solid var(--ath-ink);
  padding-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.ath-cta h2 {
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 560px;
}

.ath-cta p {
  font-size: 16px;
  color: var(--ath-body);
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}

.ath-footer {
  border-top: 1px solid var(--ath-ink);
  margin-top: 42px;
}

.ath-footer .ath-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--ath-mono);
  font-size: 12px;
  color: var(--ath-muted);
}

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

.ath-footer-brand b {
  color: var(--ath-ink);
  font-weight: 700;
}

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

.ath-footer-links a {
  color: var(--ath-muted);
}

.ath-footer-links a:hover {
  color: var(--ath-blue);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 860px) {
  .ath-hero-grid,
  .ath-split,
  .ath-wins {
    grid-template-columns: 1fr;
    gap: 22px;
    column-gap: 0;
  }

  /* The hero stat loses its column, so its rule moves overhead. */
  .ath-stat {
    text-align: left;
    border-left: none;
    border-top: 2px solid var(--ath-ink);
    padding-left: 0;
    padding-top: 22px;
  }

  /* The value column shrinks to its content here, so it needs an explicit gap
   * that the fixed 96px column provided implicitly. */
  .ath-bar-row {
    grid-template-columns: 116px 1fr auto;
    column-gap: 14px;
  }
}

@media (max-width: 620px) {
  .ath-nav-link {
    display: none;
  }

  .ath-h1 {
    font-size: 42px;
  }

  .ath-stat-value {
    font-size: 78px;
  }
}

@media (max-width: 440px) {
  /* Too narrow for a label column; give the name its own row above the bar. */
  .ath-bar-row {
    grid-template-columns: 1fr auto;
  }

  .ath-bar-name {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ath-hero {
    animation: none;
  }

  .ath-btn,
  .ath-bar-compile,
  .ath-bar-fill {
    transition: none;
  }

  .js .ath-panel:not(.is-ready) .ath-bar-fill {
    width: var(--run-w);
  }

  .js .ath-panel:not(.is-ready) .ath-bar-compile {
    width: var(--compile-w);
  }
}
