/* Landing page. Brand tokens are the ones of the product UI (src/TyrolAI.Web.UI/wwwroot/css/app.css). */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-latin-ext-wght.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-wght.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --nacht: #0E1821;
    --fels: #1B2833;
    --gletscher: #4FC3D1;
    --alpengluehen: #FF6B3D;
    --firn: #EEF2F4;

    --bg: #F7FAFB;
    --bg-alt: #EEF2F4;
    --panel: #FFFFFF;
    --text: #0E1821;
    --muted: #556975;
    --border: #D2DCE2;
    --accent: #0B6F7B;
    --accent-strong: #2BA9B8;
    --on-accent: #FFFFFF;
    --code-bg: #F2F6F8;
    --ridge-back: #D3F0F3;
    --ridge-front: #EEF2F4;
    --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #EAF6F8 100%);

    --radius: 14px;
    --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E1821;
        --bg-alt: #101D27;
        --panel: #15232E;
        --text: #EEF2F4;
        --muted: #8FA3B0;
        --border: #1F2E3A;
        --accent: #4FC3D1;
        --accent-strong: #4FC3D1;
        --on-accent: #0E1821;
        --code-bg: #0B141C;
        --ridge-back: #15303A;
        --ridge-front: #0E1821;
        --hero-bg: radial-gradient(1200px 500px at 70% 0%, #173A40 0%, #0E1821 70%);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
}

a { color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.12rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.accent { color: var(--accent); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 6px 10px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-strong); color: var(--on-accent);
    border: 1px solid transparent; border-radius: 10px;
    padding: .8em 1.3em; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--alpengluehen); outline-offset: 2px; }
.btn-small { padding: .45em .9em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* Hero */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; padding: 96px 0 150px; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.eyebrow { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--alpengluehen); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.meta { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; }
.ridge-back { fill: var(--ridge-back); }
.ridge-front { fill: var(--ridge-front); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--fels); color: var(--gletscher); font-family: var(--mono); font-weight: 700; margin-bottom: 16px;
}

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
/* Grid items default to min-width:auto, so the terminal's <pre> would widen the page on phones. */
.split > *, .grid > * { min-width: 0; }
body { overflow-x: hidden; }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: 1em; color: var(--muted); }
.steps strong { color: var(--text); }

.terminal { background: var(--nacht); border-radius: var(--radius); border: 1px solid #1F2E3A; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); }
.terminal-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--fels); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #36495A; }
.terminal-bar span:first-child { background: var(--alpengluehen); }
.terminal pre { margin: 0; padding: 18px; color: #EEF2F4; font-family: var(--mono); font-size: .8rem; line-height: 1.7; overflow-x: auto; }
.terminal .dim { color: #8FA3B0; }
.terminal .ok, .terminal .accent { color: var(--gletscher); }

.code-block {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--nacht); border-radius: var(--radius); padding: 14px 14px 14px 20px; margin: 24px 0;
}
.code-block code { background: none; color: #EEF2F4; font-size: .95rem; overflow-x: auto; white-space: nowrap; padding: 0; }
.install-grid { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hash { word-break: break-all; }

details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { color: var(--muted); margin: .7em 0 0; }

.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .muted { font-weight: 400; font-size: .9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }

@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .nav a:not(.btn) { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .grid, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 120px; }
    .section { padding: 64px 0; }
    .code-block { flex-direction: column; align-items: stretch; }
    .code-block code { white-space: normal; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
