/* winhance.net landing page, on top of base.css (type, colours, top bar, buttons, footer).
   The app window in the hero draws itself in the app's own face and tokens (demo/winhance-demo.css),
   and a night-blue "desktop" sits behind it. */

[data-theme="light"] .flight-rocket img { filter: invert(1) drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 40%, transparent)); }

/* ---- Hero ---- */
.hero { padding-top: clamp(32px, 5vw, 64px); overflow: clip; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px clamp(32px, 5vw, 80px);
    align-items: start;
}
.hero-title {
    grid-column: 1 / -1;
    font-size: clamp(52px, 9.4vw, 128px);
    line-height: .9;
    font-weight: 700;
    font-stretch: 86%;
    letter-spacing: -.01em;
    font-variation-settings: "opsz" 96;
    text-wrap: balance;
}
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; padding-top: 6px; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.command { display: flex; flex-direction: column; gap: 6px; }
.command-label { font-size: 14px; color: var(--ink-3); }
.command-box {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    padding: 6px 6px 6px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.command-box code { flex: 1; font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.command-copy {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    color: var(--ink-2);
    cursor: pointer;
}
.command-copy:hover { color: var(--ink); }
.command-copy .i { width: 18px; height: 18px; }
.command-copy .i-done, .command-copy.is-done .i-copy { display: none; }
.command-copy.is-done .i-done { display: block; color: var(--good); }

.stage {
    position: relative;
    margin-top: clamp(36px, 5vw, 56px);
    padding: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 32px);
}
/* The window gets the app's own fallback size, 1280x800 (MainWindow), wider than the page's text column;
   it shrinks with the screen like a real window would, never below the app's 640x480 minimum height. */
.stage-inner { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: calc(1280px + 2 * var(--gutter)); }
.stage-note { font-size: 15px; color: rgba(238, 243, 249, .78); max-width: 60ch; }
.stage-window { height: min(800px, 88vh); min-height: 480px; }


.facts { padding-top: 28px; }
.facts-list {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    gap: 16px 32px;
    padding: 20px 0 4px;
}
.facts-list dt { font-size: 13px; color: var(--ink-3); }
.facts-list dd { font-size: 17px; font-weight: 600; }
.facts-list a { text-decoration: none; }
.facts-list a:hover { text-decoration: underline; }

/* ---- Section scaffolding ---- */
section { scroll-margin-top: 72px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 46ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2, .press-title, .voices h2, .faq h2, .open h2, .finale h2 {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1;
    font-weight: 720;
    font-stretch: 82%;
    letter-spacing: -.012em;
    text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 18px; }
.section-head-center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* Panels: anything people read below the hero sits on one, so the flight line passes behind it. */
.mode, .sponsors-panel, .press-list a, .area-copy, .scene-rail, .open-points, .voice-list li, .faq-list {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}

/* ---- Sponsors (the cards themselves are sponsors.css) ---- */
.sponsors-showcase { padding: var(--section) 0 calc(var(--section) * .8); }
.sponsors-panel { width: fit-content; max-width: 100%; margin: 36px auto 0; padding: 32px 40px; }
.sponsors-panel .wall-wnet { margin-top: 0; }
.sponsors-showcase .btn { min-height: 44px; }

/* ---- Press ---- */
.press { padding: calc(var(--section) * .6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.press-title { font-size: 20px; font-stretch: 100%; letter-spacing: 0; font-weight: 600; color: var(--ink-3); margin-bottom: 28px; }
.press-list { columns: 3 300px; column-gap: 16px; }
.press-list li { break-inside: avoid; margin-bottom: 16px; }
.press-list a { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; }
.press-list q { font-size: 21px; line-height: 1.3; font-weight: 500; quotes: "\201C" "\201D"; }
.press-list a:hover q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.press-list span { font-size: 14px; color: var(--ink-3); }

/* ---- Areas: scenes.css ---- */
.areas { padding: var(--section) 0; }

/* ---- Flight path: the rocket rides a wavy line from side to side as the page scrolls ---- */
/* Sections sit above the line, so it disappears under the panels; the rocket flies over all. */
main { position: relative; }
main > section { position: relative; z-index: 1; }
.flight { display: none; }
/* Clipped sideways only, so the rocket can never widen the page but still shows whole when parked. */
@media (min-width: 1100px) {
    .flight.is-on { display: block; position: absolute; left: 0; width: 100%; pointer-events: none; overflow-x: clip; overflow-y: visible; }
}
.flight-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.flight-track, .flight-fill { fill: none; stroke-width: 2; stroke-linecap: round; }
.flight-track { stroke: var(--line); stroke-dasharray: 6 8; }
.flight-fill { stroke: var(--accent); }
/* Over a panel, the rocket fades back where the line goes under. */
.flight-rocket { transition: opacity .3s; }
.flight.is-over .flight-rocket { opacity: .2; }
.flight.is-hidden .flight-rocket { opacity: 0; }
.flight-node { position: absolute; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--page); border: 2px solid var(--line); transition: border-color .3s, background-color .3s, transform .3s; }
.flight-node.is-passed { border-color: var(--accent); background: var(--accent); transform: scale(1.2); }
.flight-node.is-under { opacity: .15; }
.flight-rocket { position: absolute; z-index: 3; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; transform: translate(var(--flight-x, 0), var(--flight-y, 0)); }
.flight-rocket img { display: block; width: 40px; height: 40px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); transform: rotate(var(--flight-turn, 135deg)); transition: transform .2s ease-out; }
/* Exhaust behind the tail while it moves; the tail sits bottom left of the artwork, so it turns with it. */
.flight-rocket::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
    background: radial-gradient(circle, #ffb347, rgba(255, 120, 40, .5) 45%, transparent 70%);
    opacity: 0; transform: rotate(var(--flight-turn, 135deg)) translate(-21px, 21px); transition: opacity .2s, transform .2s ease-out;
}
.flight.is-moving .flight-rocket::after { opacity: 1; }
.flight.is-landed .flight-rocket img, .flight.is-landed .flight-rocket::after { --flight-turn: 0deg; transition-duration: .45s; }

/* ---- Modes ---- */
.modes { padding: 0 0 var(--section); }
.mode-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { padding: 28px; }
.mode img { width: 48px; height: 48px; margin-bottom: 18px; }
.mode h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.mode p { color: var(--ink-2); }

/* ---- New PC (a real sequence, so numbered) ---- */
.newpc { padding: var(--section) 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n {
    display: block;
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    font-stretch: 75%;
    color: var(--accent);
    margin-bottom: 16px;
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.newpc-links { display: flex; gap: 28px; margin-top: 40px; }
.newpc-links a { color: var(--accent-ink); font-weight: 600; }
[data-theme="dark"] .newpc-links a, [data-theme="dark"] .open a, [data-theme="dark"] .faq a { color: var(--accent); }

/* ---- Nothing hidden ---- */
.open { padding: var(--section) 0; }
.open-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 72px; }
.open-points { display: flex; flex-direction: column; gap: 20px; padding: 32px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.open-points strong, .open-points em { color: var(--ink); font-style: normal; font-weight: 600; }
.open a { color: var(--accent-ink); }

/* ---- Voices ---- */
.voices { padding: 0 0 var(--section); }
.voices h2 { margin-bottom: 36px; }
.voice-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.voice-list li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; }
.voice-list q { font-size: 18px; line-height: 1.4; }
.voice-list span { font-size: 14px; color: var(--ink-3); }

/* ---- FAQ ---- */
.faq { padding: var(--section) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 72px; }
.faq-list { align-self: start; padding: 0 28px; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* ---- Finale + footer ---- */
.finale { position: relative; padding: var(--section) 0; }
.finale-inner { position: relative; }
.finale-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.finale h2 { font-size: clamp(48px, 7.4vw, 104px); font-stretch: 86%; font-weight: 700; letter-spacing: -.01em; line-height: .9; }
.finale .btn-quiet { color: #eef3f9; border-color: rgba(238, 243, 249, .28); }
.finale .btn-quiet:hover { border-color: rgba(238, 243, 249, .6); }
.finale .btn-primary { background: #60cdff; color: #06121f; }


/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .voice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-list { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (max-width: 860px) {
    .hero-grid, .open-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-title { grid-column: auto; }
    .mode-list, .steps { grid-template-columns: minmax(0, 1fr); }
    .step, .step + .step { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
    .step-n { font-size: 56px; }
    .stage-window { height: 640px; min-height: 0; }
}

@media (max-width: 560px) {
    .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
    .command-box code { font-size: 13px; }
    .voice-list { grid-template-columns: minmax(0, 1fr); }
    .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stage-window { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
    .flight-rocket::after { display: none; }
}
