/* Tezeraq's landing page. The colours are the app's own (the neon theme in
   src/ui/theme.odin) and so are the fonts, served from here: no request
   leaves for anyone else's server. */

@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url("fonts/Roboto-Light.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("fonts/Roboto-Regular.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("fonts/Roboto-Bold.woff") format("woff"); }
@font-face { font-family: "Departure Mono"; font-weight: 400; font-display: swap; src: url("fonts/DepartureMono-Regular.woff") format("woff"); }

:root {
    --background: #090c14;
    --panel: #0f131f;
    --raised: #181e2f;
    --editor: #07090f;
    --border: #21293e;
    --text: #e8ecf6;
    --muted: #8f9ab6;
    --accent: #ff3ea5;
    --on-accent: #18060f;
    --pink: #ff3ea5;
    --blue: #28a6ff;
    --amber: #ffba24;
    --violet: #a366ff;
    --teal: #18d6c4;
    --orange: #ff7834;
    --sans: "Roboto", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Departure Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--page), 100% - 48px); margin-inline: auto; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The bar: the mark and the name as the app draws them. */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(9, 12, 20, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 28px; height: 28px; color: var(--accent); }
.brand .name { height: 13px; width: auto; aspect-ratio: 9.58 / 1.4; color: var(--text); overflow: visible; }
.bar nav { display: flex; gap: 26px; }
.bar nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 22px; border: 0; border-radius: 6px;
    background: var(--accent); color: var(--on-accent);
    font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: #ff5cb4; }
.button.small { height: 36px; padding: 0 14px; font-size: 14px; }

.eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--tone, var(--accent)); }

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; max-width: 11em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

/* The hero: the graph canvas's grid behind it, fading out. */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 78% 0%, rgba(255, 62, 165, .16), transparent 70%),
        radial-gradient(50% 40% at 10% 30%, rgba(40, 166, 255, .08), transparent 70%),
        linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .35) 45%, transparent 85%);
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .35) 45%, transparent 85%);
    opacity: .7;
}
.hero .lead { max-width: 58ch; margin-top: 28px; font-size: 20px; line-height: 1.55; color: #c3cadd; }
.signup { display: flex; gap: 10px; margin-top: 36px; max-width: 520px; }
.signup input {
    flex: 1; min-width: 0; height: 48px; padding: 0 16px;
    background: var(--editor); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px; font: 400 16px/1 var(--sans);
}
.signup input::placeholder { color: #66708a; }
.signup input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.note.said { color: var(--amber); }

/* A screenshot, framed as a window on the page. */
.shot { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--editor); box-shadow: 0 28px 80px rgba(0, 0, 0, .55); }
.hero .shot { margin-top: 72px; position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 40px 120px rgba(0, 0, 0, .7), 0 0 140px rgba(255, 62, 165, .13); }

section { padding: 120px 0 0; scroll-margin-top: 40px; }
/* A feature: its name and claim on the left, what it does on the right,
   and its picture below at the page's full width, large enough to read. */
.feature .text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
.feature .text > .eyebrow { grid-column: 1 / -1; }
.feature .text > h2 { grid-column: 1; }
.feature .text > h2 { grid-row: 2 / span 5; }
.feature .text > p:not(.eyebrow), .feature .text > ul { grid-column: 2; }
.feature p:not(.eyebrow) { color: #c3cadd; margin-bottom: 20px; }
.feature .shot { margin-top: 36px; }
.feature .shot { box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 90px color-mix(in srgb, var(--tone) 10%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li { font: 400 12px/1 var(--mono); padding: 7px 10px; border-radius: 4px; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent); background: color-mix(in srgb, var(--tone) 7%, transparent); }

/* What else is in it: cards under a track's colour, as a track's tab is. */
.more h2 { max-width: 18ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { background: var(--panel); border: 1px solid var(--border); border-top: 2px solid var(--tone); border-radius: 8px; padding: 26px 24px 28px; }
.card p { margin-top: 10px; font-size: 16px; color: var(--muted); }

.status .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.status p { margin-top: 20px; color: #c3cadd; max-width: 52ch; }
.platforms { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.platforms li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.platforms span { font: 400 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.platforms .planned { color: var(--muted); }
.platforms .planned span { color: var(--muted); }

.last { padding-bottom: 120px; }
.last .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 64px; position: relative; overflow: hidden; }
.last .panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(255, 62, 165, .14), transparent 70%); pointer-events: none; }
.last .panel > * { position: relative; }
.last p { margin-top: 16px; color: #c3cadd; max-width: 48ch; }

footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 12px; }
footer .mark { width: 20px; height: 20px; color: var(--accent); }

@media (max-width: 900px) {
    .bar nav { display: none; }
    .hero { padding-top: 56px; }
    .hero .shot { margin-top: 48px; }
    section { padding-top: 88px; }
    .status .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .feature .text { display: block; }
    .feature .text > h2 { margin-bottom: 20px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .last { padding-bottom: 88px; }
    .last .panel { padding: 36px 24px; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 36px); }
    .hero .lead { font-size: 18px; }
    .eyebrow { font-size: 11px; letter-spacing: .04em; }
    .signup { flex-direction: column; }
    .signup input { flex: none; }
    /* A phone shows the left of a picture, larger, not the whole of it too small to read. */
    .shot img { width: 165%; max-width: none; }
}
