@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --paper: #f2f0e9;
  --ink: #11120f;
  --muted: #686a63;
  --line: rgba(17, 18, 15, 0.23);
  --blue: #1547ff;
  --acid: #d8ff00;
  --mono: "DM Mono", monospace;
  --sans: "Inter", Arial, sans-serif;
  --container-wide: 1280px;
  --container-copy: 760px;
  --page-gutter: max(clamp(1rem, 2.4vw, 2rem), calc((100vw - var(--container-wide)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--blue); color: white; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; background: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 76px; padding: 0 var(--page-gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.wordmark { font-size: 1rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--blue); font-size: .55em; vertical-align: top; margin-left: .15rem; }
.site-header nav { display: flex; gap: 2rem; }
.header-actions { justify-self: end; display: flex; gap: 1.2rem; align-items: center; }
.site-header nav a, .header-github, .header-language { font: 500 .68rem var(--mono); text-transform: uppercase; text-decoration: none; letter-spacing: .06em; }
.site-header nav a:hover, .header-github:hover, .header-language:hover { color: var(--blue); }
.header-github { justify-self: end; }

.hero { min-height: calc(100svh - 76px); padding: 2.4vw var(--page-gutter); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%, 100% 25%; opacity: .6; }
.axis { position: absolute; z-index: 1; background: var(--blue); transition: transform .1s linear; }
.axis-x { height: 1px; left: 0; right: 0; top: var(--pointer-y, 52%); }
.axis-y { width: 1px; top: 0; bottom: 0; left: var(--pointer-x, 72%); }
.coordinate { position: absolute; top: calc(var(--pointer-y, 52%) + 8px); left: calc(var(--pointer-x, 72%) + 8px); color: var(--blue); font: .58rem var(--mono); }
.eyebrow, .section-label { margin: 0; font: 500 .63rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker { z-index: 2; padding-top: .3rem; }
.hero h1 { align-self: center; margin: 2rem 0; z-index: 2; font-size: clamp(4rem, 11.8vw, 12rem); line-height: .78; letter-spacing: -.085em; font-weight: 900; text-transform: uppercase; }
.hero h1 span { display: block; transform: translateY(30px); opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.1,1) forwards; }
.hero h1 span:last-child { color: var(--blue); animation-delay: .12s; }
.hero-footer { z-index: 2; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--ink); padding-top: 1rem; }
.hero-footer p { max-width: 520px; margin: 0; font-size: clamp(1rem, 1.4vw, 1.4rem); line-height: 1.35; letter-spacing: -.03em; }
.button { min-height: 48px; padding: 0 1.2rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; text-decoration: none; font: 500 .7rem var(--mono); text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--blue); }
.hero-index { z-index: 2; padding-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); font: .55rem var(--mono); }
.hero-index span:nth-child(2) { text-align: center; }
.hero-index span:last-child { text-align: right; }

.statement { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; padding: 8rem var(--page-gutter); border-bottom: 1px solid var(--line); }
.statement > div { max-width: 1050px; }
.statement h2, .comparison h2, .modes h2, .principles h2, .proof h2, .install h2 { margin: 0; font-weight: 800; letter-spacing: -.065em; line-height: .94; }
.statement h2 { font-size: clamp(3rem, 7.8vw, 8rem); }
.statement div p { max-width: 650px; margin: 3rem 0 0 auto; font-size: clamp(1.2rem, 2.1vw, 2rem); line-height: 1.25; letter-spacing: -.035em; }

.comparison { padding: 7rem var(--page-gutter); }
.comparison-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 3rem; }
.comparison h2, .modes h2 { margin-top: 1.5rem; font-size: clamp(3rem, 6.5vw, 6.8rem); }
.view-switch { display: flex; border: 1px solid var(--ink); }
.view-switch button { border: 0; border-right: 1px solid var(--ink); padding: .85rem 1.4rem; background: transparent; cursor: pointer; font: .67rem var(--mono); text-transform: uppercase; }
.view-switch button:last-child { border-right: 0; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.demo { min-height: 620px; border: 1px solid var(--ink); position: relative; overflow: hidden; background: #e7e8e2; }
.demo-bar { height: 44px; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--ink); font: .58rem var(--mono); }
.demo-bar span:nth-child(2) { text-align: center; }
.demo-status { text-align: right; color: var(--blue); }
.demo-before { min-height: 575px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 70% 30%, rgba(21,71,255,.18), transparent 28%), #eff0f5; transition: opacity .3s, transform .4s; }
.fake-pill { padding: .45rem .8rem; border-radius: 99px; background: white; color: #6158d7; font-size: .58rem; font-weight: 700; }
.demo-before h3 { margin: 1.2rem 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .95; letter-spacing: -.06em; background: linear-gradient(135deg,#15152a,#6256e9); color: transparent; background-clip: text; }
.demo-before p { max-width: 430px; color: #6c6e80; }
.fake-cards { display: flex; gap: 1rem; margin-top: 2rem; }
.fake-cards i { width: 130px; height: 80px; border-radius: 16px; background: rgba(255,255,255,.8); box-shadow: 0 12px 35px rgba(40,40,90,.12); }
.demo-after { min-height: 575px; display: none; grid-template-columns: 1fr 3fr; background: var(--ink); color: white; }
.demo-after aside { padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid #55564f; }
.demo-after aside span, .demo-after aside small, .lesson-meta { font: .6rem var(--mono); text-transform: uppercase; }
.demo-after aside strong { margin: auto 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: .95; letter-spacing: -.06em; }
.lesson-pane { padding: 2rem; display: flex; flex-direction: column; position: relative; background-image: linear-gradient(to right, #30312d 1px, transparent 1px); background-size: 25%; }
.lesson-number { align-self: end; color: var(--acid); font: 3rem var(--mono); }
.lesson-pane h3 { margin: auto 0; font-size: clamp(3.2rem, 7.5vw, 8rem); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.lesson-meta { padding-top: 1.2rem; display: flex; justify-content: space-between; border-top: 1px solid #77786f; }
.demo[data-state="after"] .demo-before { display: none; }
.demo[data-state="after"] .demo-after { display: grid; }

.modes { padding: 8rem var(--page-gutter); display: grid; grid-template-columns: 1fr 1.5fr; gap: 7vw; border-top: 1px solid var(--line); }
.mode-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.mode-list li { padding: 1.6rem 0; display: grid; grid-template-columns: 55px 1fr auto; align-items: start; gap: 1rem; border-bottom: 1px solid var(--ink); transition: padding .25s, color .25s; }
.mode-list li:hover { padding-left: 1rem; color: var(--blue); }
.mode-list li > span { font: .6rem var(--mono); }
.mode-list h3 { margin: 0 0 .7rem; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.05em; }
.mode-list p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.5; }
.mode-list b { font-size: 1.5rem; font-weight: 400; }

.principles { padding-inline: var(--page-gutter); display: grid; grid-template-columns: 1fr 1.3fr; background: var(--blue); color: white; }
.principles-main { padding: 6rem 0; display: flex; flex-direction: column; min-height: 660px; }
.section-label-light { color: rgba(255,255,255,.7); }
.principles h2 { margin-top: auto; font-size: clamp(3rem, 6vw, 6.5rem); }
.principles-main > p:last-child { max-width: 430px; margin: 2rem 0 0; font-size: 1.2rem; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; }
.principle-grid article { min-height: 330px; padding: 2rem; border-left: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); display: flex; flex-direction: column; }
.principle-grid article:nth-child(n+3) { border-bottom: 0; }
.principle-grid article > span { font: .7rem var(--mono); }
.principle-grid h3 { margin: auto 0 .8rem; font-size: 2rem; letter-spacing: -.05em; }
.principle-grid p { margin: 0; max-width: 300px; color: rgba(255,255,255,.76); line-height: 1.45; }

.proof { padding: 7rem var(--page-gutter); display: grid; grid-template-columns: .8fr 1.2fr 1fr; align-items: end; border-bottom: 1px solid var(--line); }
.proof-number { font-weight: 900; font-size: clamp(9rem, 22vw, 24rem); line-height: .67; letter-spacing: -.1em; color: var(--blue); }
.proof h2 { font-size: clamp(2.5rem, 4.5vw, 5rem); }
.proof-copy p { margin: 2rem 0; line-height: 1.5; color: var(--muted); }
.proof-copy a { font: .67rem var(--mono); text-transform: uppercase; text-underline-offset: .3rem; }

.field-proof { padding-inline: var(--page-gutter); display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: white; }
.field-proof > div:first-child { min-height: 620px; padding: 6rem 3rem 3rem 0; display: flex; flex-direction: column; }
.field-proof h2 { margin: auto 0 2rem; font-size: clamp(3.5rem, 6.5vw, 7rem); line-height: .88; letter-spacing: -.07em; }
.field-proof p:not(.section-label) { max-width: 480px; line-height: 1.5; }
.field-proof a { margin-top: 2rem; font: .65rem var(--mono); text-transform: uppercase; text-underline-offset: .3rem; }
.field-score { min-height: 620px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto 1fr auto; align-items: center; padding: 3rem; border-left: 1px solid rgba(255,255,255,.5); font: .62rem var(--mono); }
.field-score span:last-child { align-self: end; }
.field-score b { grid-column: 2; font: 900 clamp(6rem, 13vw, 13rem)/.7 var(--sans); letter-spacing: -.1em; }
.field-score b:last-of-type { color: var(--acid); }
.field-score i { grid-column: 2; justify-self: center; font-size: 2rem; font-style: normal; }
.install { min-height: 85svh; padding: 5rem var(--page-gutter) 2rem; background: var(--ink); color: white; display: flex; flex-direction: column; }
.install h2 { margin: auto 0 3rem; font-size: clamp(4rem, 10vw, 10rem); text-transform: uppercase; }
.command-line { display: flex; justify-content: space-between; align-items: center; border: 1px solid #62635d; }
.command-line code { padding: 1.4rem; overflow-x: auto; font: .8rem var(--mono); }
.copy-button { align-self: stretch; min-width: 100px; border: 0; border-left: 1px solid #62635d; background: transparent; color: white; cursor: pointer; font: .68rem var(--mono); text-transform: uppercase; }
.copy-button:hover, .copy-button.copied { background: var(--acid); color: var(--ink); }
.install-actions { display: flex; justify-content: space-between; align-items: end; margin-top: 2rem; }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--acid); }
.install-actions p { margin: 0; color: #aaa; text-align: right; font: .58rem/1.6 var(--mono); text-transform: uppercase; }
body > footer { min-height: 110px; padding: 2rem var(--page-gutter); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; font: .6rem var(--mono); text-transform: uppercase; }
body > footer p { margin: 0; }
body > footer p:nth-child(2) { text-align: center; }
body > footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rise { to { transform: none; opacity: 1; } }

@media (max-width: 800px) {
  .site-header { height: 64px; padding: 0 1rem; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .site-header .wordmark, .header-github, .header-language { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { min-height: calc(100svh - 64px); padding: 1rem; }
  .hero-grid { background-size: 25% 100%, 100% 20%; }
  .hero h1 { font-size: clamp(3rem, 15.75vw, 6rem); line-height: .8; }
  .hero-footer { min-width: 0; display: block; }
  .hero-footer p { margin-bottom: 1.5rem; }
  .button { width: 100%; }
  .hero-index { padding-top: 1.2rem; }
  .statement, .modes, .proof { grid-template-columns: 1fr; padding: 5rem 1rem; }
  .statement { gap: 4rem; }
  .statement div p { margin-left: 0; }
  .comparison { padding: 5rem 1rem; }
  .comparison-head { display: block; }
  .view-switch { margin-top: 2rem; width: 100%; }
  .view-switch button { min-height: 44px; flex: 1; }
  .demo { min-height: 540px; }
  .demo-before { min-height: 495px; padding: 1rem; }
  .fake-cards i { width: 75px; height: 65px; }
  .demo-after { min-height: 495px; grid-template-columns: 1fr; }
  .demo-after > * { min-width: 0; }
  .demo-after aside { min-height: 130px; border-right: 0; border-bottom: 1px solid #55564f; display: grid; grid-template-columns: 1fr 1fr; }
  .demo-after aside strong { margin: 1rem 0; grid-column: 1 / -1; }
  .demo-after aside small { text-align: right; }
  .lesson-pane { min-height: 365px; padding: 1rem; }
  .modes { gap: 4rem; }
  .principles { grid-template-columns: 1fr; }
  .principles { padding-inline: 1rem; }
  .principles-main { min-height: 520px; padding: 5rem 0 2rem; }
  .principle-grid article { min-height: 280px; padding: 1rem; }
  .principle-grid article:nth-child(odd) { border-left: 0; }
  .proof { gap: 3rem; }
  .proof-number { font-size: 52vw; }
  .field-proof { padding-inline: 1rem; grid-template-columns: 1fr; }
  .field-proof > div:first-child { min-height: 520px; padding: 5rem 0 2rem; }
  .field-score { min-height: 500px; padding: 2rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.5); }
  .field-score b { font-size: 35vw; }  .install { padding: 4rem 1rem 1rem; }
  .install h2 { font-size: clamp(3.5rem, 16vw, 6rem); }
  .command-line { align-items: stretch; }
  .command-line code { white-space: nowrap; }
  .install-actions { display: block; }
  .install-actions p { margin-top: 1.5rem; text-align: left; }
  body > footer { padding: 2rem 1rem; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  body > footer p:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article,
  .principle-grid article:nth-child(odd) { min-height: 220px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.45); }
  .principle-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .lesson-pane h3 { font-size: clamp(2.5rem, 13vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
