@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/courier-prime-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/courier-prime-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
    --paper: #f1eadc;
    --paper-deep: #e4dac6;
    --ink: #191816;
    --muted: #69645b;
    --line: #bdb3a2;
    --red: #d93b2b;
    --red-dark: #b62b20;
    --night: #11161d;
    --cyan: #55ffff;
    --magenta: #ff55ff;
    --white: #fffdf7;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'Courier Prime', Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 20; padding: .75rem 1rem; color: white; background: var(--ink); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; max-width: 1440px; height: 84px; margin: auto; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; width: max-content; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font: 700 .78rem/1 var(--sans); letter-spacing: .16em; }
.wordmark-mark { width: 29px; height: 36px; display: grid; place-items: center; color: var(--paper); background: var(--ink); font: 700 1.15rem/1 var(--mono); clip-path: polygon(0 0, 73% 0, 100% 22%, 100% 100%, 0 100%); }
.site-header nav { display: flex; gap: 2.2rem; }
.site-header nav a, .site-footer a { color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; }
.site-header nav a:hover, .site-footer a:hover { color: var(--red); }
.site-header > .button { justify-self: end; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.5rem; min-height: 54px; padding: 0 1.35rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, background .2s, transform .2s; }
.button:hover { color: var(--paper); background: var(--ink); transform: translateY(-2px); }
.button-small { min-height: 40px; gap: .8rem; }
.button-primary { color: var(--white); border-color: var(--red); background: var(--red); }
.button-primary:hover { border-color: var(--red-dark); background: var(--red-dark); }

.hero { max-width: 1440px; min-height: 720px; margin: auto; padding: clamp(4.5rem, 8vw, 8.5rem) 4vw 6rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 2.1rem; color: var(--muted); font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { color: var(--red); }
.hero h1, .manifesto h2, .primer h2, .features h2, .retro-callout h2, .final-cta h2 { margin: 0; font-family: var(--mono); font-weight: 400; letter-spacing: -.055em; }
.hero h1 { max-width: 720px; font-size: clamp(3.35rem, 5.7vw, 6.4rem); line-height: .89; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lede { max-width: 600px; margin: 2.2rem 0 0; color: #46423c; font: 1.05rem/1.75 var(--sans); }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.text-link { color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: .35rem; }
.microcopy { margin: 1rem 0 0; color: var(--muted); font: .72rem/1.4 var(--mono); }

.hero-demo { position: relative; min-width: 0; background: var(--night); border: 1px solid #252d38; box-shadow: 18px 18px 0 var(--paper-deep); transform: rotate(.5deg); }
.demo-chrome { height: 44px; padding: 0 1.1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; border-bottom: 1px solid #303946; color: #98a2af; font: 600 .58rem/1 var(--sans); letter-spacing: .12em; }
.demo-chrome span:last-child { text-align: right; }
.demo-status { color: #92bc9b; }
.demo-status i, .feature-callout i { width: 6px; height: 6px; display: inline-block; margin-right: .35rem; border-radius: 50%; background: #75b983; }
.demo-body { min-height: 440px; display: grid; grid-template-columns: 1fr 1.08fr; }
.demo-source { padding: 3.5rem 1.7rem; display: flex; flex-direction: column; color: #c8d0da; font: clamp(.7rem, 1vw, .86rem)/1.65 var(--mono); }
.demo-source .line { display: block; margin-bottom: 1.45rem; }
.demo-source .scene { color: #e8cf98; }
.demo-source .character { margin: .35rem 0 0; color: #93c5fd; }
.demo-source .dialogue { color: #e2e8f0; }
.demo-source .action { color: #9fa8b5; }
.caret { width: 1px; height: 1.3em; margin-top: -1.45rem; background: #e2e8f0; animation: blink 1s step-end infinite; }
.demo-page { position: relative; margin: 1.1rem 1.1rem 1.1rem 0; padding: 4rem clamp(1.4rem, 3vw, 3.3rem); color: #111; background: #fff; box-shadow: 0 12px 30px #0006; font: clamp(.58rem, .82vw, .74rem)/1.55 var(--mono); }
.demo-page p { margin: 0 0 1.55rem; }
.demo-page .page-character { width: 70%; margin: 2rem 0 0 auto; }
.demo-page .page-dialogue { width: 83%; margin: 0 0 0 auto; }
.page-number { position: absolute; top: 1.4rem; right: 1.4rem; }
.demo-caption { position: absolute; right: -1.2rem; bottom: -3.25rem; margin: 0; color: var(--muted); font: 700 .62rem/1 var(--mono); letter-spacing: .13em; }
@keyframes blink { 50% { opacity: 0; } }

.promise { max-width: 1440px; min-height: 96px; margin: auto; padding: 0 4vw; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border-block: 1px solid var(--line); }
.promise p { margin: 0; padding: .8rem 2rem; border-left: 1px solid var(--line); color: var(--muted); font: .68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.promise p:first-child { padding-left: 0; border-left: 0; }
.promise strong { margin-right: .55rem; color: var(--red); font-family: var(--mono); }
.section-shell { max-width: 1280px; margin: auto; padding-inline: 4vw; }
.manifesto { padding-top: clamp(7rem, 12vw, 12rem); padding-bottom: clamp(7rem, 12vw, 12rem); }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.manifesto h2, .features h2, .retro-callout h2 { font-size: clamp(2.7rem, 4.5vw, 5rem); line-height: .95; }
.manifesto-grid > div { max-width: 560px; }
.manifesto-grid p { color: var(--muted); font-size: .92rem; line-height: 1.8; }
.manifesto-grid .large-copy { margin-top: 0; color: var(--ink); font: 1.3rem/1.55 var(--mono); }

.primer { color: var(--white); background: var(--ink); }
.primer > .section-shell { padding-top: clamp(6rem, 10vw, 9rem); padding-bottom: clamp(6rem, 10vw, 9rem); }
.section-kicker.light { color: #aaa49a; }
.primer-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; }
.primer h2 { font-size: clamp(3rem, 5vw, 5.5rem); line-height: .94; }
.primer-heading > p { margin: 0 0 .4rem; color: #bcb6ad; font-size: .95rem; line-height: 1.75; }
kbd { padding: .08rem .35rem; border: 1px solid currentColor; border-radius: 2px; font: .8em var(--mono); }
.steps { margin: 5rem 0 0; padding: 0; list-style: none; border-top: 1px solid #44403b; }
.steps li { min-height: 160px; padding: 2.3rem 0; display: grid; grid-template-columns: 10% 1fr; border-bottom: 1px solid #44403b; }
.steps li > div { display: grid; grid-template-columns: .75fr 1.1fr 1fr; gap: 2.5rem; align-items: baseline; }
.step-number { color: var(--red); font: 700 .75rem var(--mono); }
.steps h3 { margin: 0; font: 400 1.35rem var(--mono); }
.steps code { width: max-content; max-width: 100%; padding: .55rem .7rem; color: #efe6d7; background: #2a2825; font: .75rem/1.4 var(--mono); }
.steps p { margin: 0; color: #aaa49a; font-size: .82rem; line-height: 1.65; }
.primer-note { margin-top: 2.2rem; display: flex; gap: 1rem; align-items: center; color: #c7c1b7; font: .78rem/1.6 var(--mono); }
.primer-note p { margin: 0; }
.note-mark { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--red); color: var(--red); }

.features { padding-top: clamp(7rem, 11vw, 11rem); padding-bottom: clamp(7rem, 11vw, 11rem); }
.features-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; }
.features-heading > p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.7; }
.feature-grid { margin-top: 5rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 370px; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-index { color: var(--red); font: 700 .75rem var(--mono); }
.feature h3 { margin: auto 0 .75rem; font: 400 1.55rem var(--mono); }
.feature > p:not(.feature-callout):not(.terminal-line) { max-width: 520px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.feature-wide { grid-column: span 2; min-height: 420px; position: relative; overflow: hidden; }
.feature-wide h3, .feature-wide > p { width: 40%; }
.focus-visual { position: absolute; right: 4%; bottom: 12%; width: 50%; padding: 2.5rem; display: grid; gap: 1.3rem; color: #aaa49a; background: var(--night); box-shadow: 12px 12px 0 var(--paper-deep); font: .82rem/1.6 var(--mono); }
.focus-visual strong { position: relative; color: white; font-weight: 400; }
.focus-visual strong::before { content: ''; position: absolute; left: -1rem; top: 0; bottom: 0; width: 2px; background: var(--red); }
.feature-callout { margin: 2.5rem 0 0; font: 700 .66rem var(--mono); letter-spacing: .14em; }
.stat-row { margin-top: 2.5rem; display: flex; gap: 2.2rem; color: var(--muted); font: .7rem var(--mono); text-transform: uppercase; }
.stat-row b { display: block; margin-bottom: .25rem; color: var(--ink); font-size: 1.2rem; font-weight: 400; }
.feature-dark { color: white; background: var(--night); border-color: var(--night); }
.feature-dark > p:not(.terminal-line) { color: #aeb6c0; }
.terminal-line { margin: 2rem 0 0; padding: 1.2rem; border: 1px solid var(--magenta); color: var(--cyan); font: .72rem/1.65 var(--mono); }
.terminal-line span { color: var(--magenta); }

.retro-callout { padding-bottom: clamp(7rem, 11vw, 11rem); display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.retro-copy > p:not(.section-kicker) { max-width: 500px; color: var(--muted); line-height: 1.8; }
.retro-screen { min-height: 330px; padding: 2.4rem; color: #d6dee8; background: var(--night); border: 1px solid #303946; box-shadow: 12px 12px 0 var(--paper-deep); font: .9rem/1.65 var(--mono); }
.retro-screen p { margin: 0 0 1.3rem; }
.retro-screen .narration-label { color: #86cfa3; }
.retro-screen .narration-action { color: #9fa8b5; }
.retro-screen .narration-character { width: 70%; margin: 2.2rem 0 .2rem auto; color: #93c5fd; }
.narration-stats { margin-top: 2.6rem; padding-top: 1.2rem; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; border-top: 1px solid #303946; }
.narration-stats span { color: #8f9aa8; font: 600 .6rem var(--sans); letter-spacing: .12em; }
.narration-stats strong { color: white; font-weight: 400; }

.final-cta { color: var(--white); background: var(--red); }
.final-cta-inner { min-height: 620px; padding-top: 7rem; padding-bottom: 7rem; display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 8vw; }
.final-cta .section-kicker { grid-column: 1 / -1; color: #ffd2ca; }
.final-cta h2 { font-size: clamp(4rem, 9vw, 9rem); line-height: .8; }
.final-cta p:not(.section-kicker) { max-width: 390px; margin: .7rem 0 2rem; align-self: end; line-height: 1.7; }
.button-paper { width: max-content; min-width: 200px; grid-column: 2; color: var(--ink); border-color: var(--paper); background: var(--paper); }
.button-paper:hover { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.site-footer { max-width: 1440px; min-height: 120px; margin: auto; padding: 2rem 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-footer p { color: var(--muted); font: .76rem var(--mono); }
.site-footer > div { justify-self: end; display: flex; gap: 1.5rem; }

@media (max-width: 900px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 5rem; }
    .hero-copy { max-width: 700px; }
    .hero-demo { width: min(100%, 700px); }
    .promise { grid-template-columns: 1fr 1fr; padding-block: 1rem; }
    .promise p:nth-child(3) { border-left: 0; }
    .manifesto-grid, .primer-heading, .retro-callout { grid-template-columns: 1fr; gap: 3rem; }
    .steps li { grid-template-columns: 12% 1fr; }
    .steps li > div { grid-template-columns: 1fr 1fr; }
    .steps p { grid-column: 1 / -1; }
    .features-heading { align-items: start; flex-direction: column; }
    .feature-wide h3, .feature-wide > p { width: 52%; }
    .focus-visual { width: 42%; }
}

@media (max-width: 620px) {
    .site-header { height: 72px; padding-inline: 1rem; }
    .wordmark { letter-spacing: .1em; }
    .button-small { padding-inline: .8rem; font-size: .65rem; }
    .hero { min-height: auto; padding: 4.5rem 1rem 5rem; gap: 3.5rem; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
    .demo-body { min-height: 340px; }
    .demo-source { padding: 2.1rem .8rem; font-size: .58rem; }
    .demo-page { padding: 3rem .8rem; font-size: .48rem; }
    .demo-caption { right: 0; }
    .promise { margin-inline: 1rem; padding-inline: 0; }
    .promise p { padding: .8rem; font-size: .56rem; }
    .promise strong { display: block; margin-bottom: .3rem; }
    .section-shell { padding-inline: 1rem; }
    .manifesto-grid { gap: 2.3rem; }
    .steps { margin-top: 3.5rem; }
    .steps li { grid-template-columns: 1fr; gap: 1rem; }
    .steps li > div { grid-template-columns: 1fr; gap: 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature, .feature-wide { grid-column: auto; min-height: 350px; }
    .feature-wide { padding-bottom: 15rem; }
    .feature-wide h3, .feature-wide > p { width: 100%; }
    .focus-visual { right: 1rem; bottom: 1.5rem; width: calc(100% - 2rem); padding: 1.5rem; }
    .stat-row { gap: 1rem; }
    .retro-screen { min-height: 290px; padding: 1.5rem; font-size: .78rem; }
    .final-cta-inner { min-height: 600px; display: block; }
    .final-cta h2 { margin-bottom: 2.5rem; font-size: 20vw; }
    .site-footer { grid-template-columns: 1fr; gap: 1.2rem; }
    .site-footer p { margin: 0; }
    .site-footer > div { justify-self: start; flex-wrap: wrap; }
}

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