/* QuotaBar — an instrument panel, not a landing page.
   Palette is the app's own, so the site and the product read as one thing.
   Everything is monospaced on purpose: this is a measurement tool. */

:root {
    --bg: #14161c;
    --rail: #181b23;
    --card: #1b1e26;
    --line: #262a33;
    --fg: #eceef2;
    --sub: #8b8f99;
    --accent: #35c4a8;
    --track: #262931;
    --amber: #f5c242;
    --red: #e8483f;

    --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
            Consolas, monospace;

    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 1120px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Atmosphere: a cool glow bleeding from the top edge, and a fine grain so the
   flat dark never looks like an empty div. */
body::before {
    content: "";
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 70vh;
    background:
        radial-gradient(60% 60% at 72% 0%, rgba(53, 196, 168, 0.14), transparent 70%),
        radial-gradient(50% 50% at 20% 0%, rgba(59, 130, 246, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.028;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
    position: relative;
    z-index: 2;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Instrument labels: small, wide, quiet. */
.label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sub);
    margin: 0 0 0.9rem;
}

/* ---------- header ---------- */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 0;
    flex-wrap: wrap;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
    text-decoration: none;
}

.wordmark img { width: 26px; height: 26px; border-radius: 6px; display: block; }

nav { display: flex; gap: 1.4rem; font-size: 13px; }
nav a { color: var(--sub); text-decoration: none; }
nav a:hover { color: var(--fg); }

/* ---------- hero ---------- */

.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 0; }

h1 {
    font-size: clamp(2.1rem, 6.4vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 1.2rem;
    max-width: 16ch;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.lead {
    color: var(--sub);
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    max-width: 58ch;
    margin: 0 0 2rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* The install command is the primary call to action for this audience —
   a button is secondary to something you can paste. */
.command {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.9rem 0.75rem 1rem;
    font-size: 13.5px;
    color: var(--fg);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.command:hover { border-color: var(--accent); background: #1e222b; }
.command .sigil { color: var(--accent); user-select: none; }
.command .copy { color: var(--sub); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.button:hover { background: var(--accent); color: #10151a; }

.fineprint { color: var(--sub); font-size: 12.5px; margin: 0; }

/* ---------- gauge ---------- */

.readout {
    margin: clamp(2.5rem, 7vw, 4.5rem) 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(27, 30, 38, 0.9), rgba(20, 22, 28, 0.9));
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.readout-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.readout-head .who { font-size: 13px; color: var(--sub); letter-spacing: 0.08em; }
.readout-head .who b { color: var(--fg); font-weight: 700; letter-spacing: 0; }

.pct {
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}
.pct span { font-size: 0.4em; color: var(--sub); margin-left: 0.15em; }

/* Sixteen segments, cool to warm — the same ramp the app draws. */
.gauge {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 3px;
    position: relative;
    margin-bottom: 0.5rem;
}

.gauge i {
    display: block;
    height: 26px;
    border-radius: 3px;
    background: var(--track);
    transform-origin: bottom;
}

.gauge i.on {
    background: var(--c);
    animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: var(--d);
}

@keyframes rise {
    from { transform: scaleY(0.25); background: var(--track); }
    to   { transform: scaleY(1); background: var(--c); }
}

/* The 85% line: the app marks it, so the site marks it. */
.gauge::after {
    content: "";
    position: absolute;
    left: 85%;
    top: -6px;
    bottom: -6px;
    width: 1px;
    background: var(--red);
    opacity: 0.9;
}

.gauge-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--sub);
    letter-spacing: 0.1em;
}

.verdict {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    display: grid;
    gap: 0.35rem;
}
.verdict .warn { color: var(--amber); }
.verdict .dim { color: var(--sub); }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 10vw, 7rem) 0 0; }

h2 {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 22ch;
}

.section-lead {
    color: var(--sub);
    max-width: 62ch;
    margin: 0 0 2rem;
    font-size: 14.5px;
}

/* Terminal transcript — the app's real output, not a mockup of one. */
.terminal {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #10131a;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: var(--rail);
}
.terminal-bar u { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.terminal-bar span { margin-left: 0.5rem; font-size: 11px; color: var(--sub); letter-spacing: 0.14em; text-transform: uppercase; }

.terminal pre {
    margin: 0;
    padding: 1.1rem 1.2rem;
    font-size: 13px;
    line-height: 1.85;
    overflow-x: auto;
    color: var(--fg);
}

.terminal .g { color: var(--accent); }
.terminal .a { color: var(--amber); }
.terminal .r { color: var(--red); }
.terminal .d { color: var(--sub); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.cell { background: var(--bg); padding: 1.4rem; }
.cell h3 { margin: 0 0 0.5rem; font-size: 14.5px; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--sub); font-size: 13.5px; }
.cell .tick { color: var(--accent); }

/* ---------- trust ---------- */

.claims { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

.claim {
    background: var(--bg);
    padding: 1.3rem 1.4rem;
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 0.9rem;
    align-items: start;
}

.claim .n { color: var(--accent); font-size: 12px; padding-top: 0.2rem; }
.claim h3 { margin: 0 0 0.35rem; font-size: 14.5px; }
.claim p { margin: 0 0 0.6rem; color: var(--sub); font-size: 13.5px; }
.claim code {
    display: block;
    background: #10131a;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.55rem 0.7rem;
    font-size: 12.5px;
    color: var(--fg);
    overflow-x: auto;
    white-space: pre;
}

.caveat {
    margin-top: 1.5rem;
    border-left: 2px solid var(--amber);
    padding: 0.3rem 0 0.3rem 1rem;
    color: var(--sub);
    font-size: 13.5px;
    max-width: 66ch;
}
.caveat b { color: var(--fg); font-weight: 700; }

/* ---------- install ---------- */

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.pane {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.4rem;
    background: var(--card);
}
.pane h3 { margin: 0 0 0.8rem; font-size: 14px; letter-spacing: 0.02em; }
.pane p { color: var(--sub); font-size: 13px; margin: 0.8rem 0 0; }

/* ---------- footer ---------- */

footer {
    margin-top: clamp(4rem, 10vw, 7rem);
    border-top: 1px solid var(--line);
    padding: 2rem 0 3.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--sub);
}

footer nav { gap: 1.2rem; flex-wrap: wrap; }

.no-track { max-width: 44ch; }

/* The transcript is the one thing that cannot reflow — shrink it rather than
   make a phone scroll sideways through the whole block. */
@media (max-width: 560px) {
    .terminal pre { font-size: 11px; line-height: 1.75; padding: 0.9rem; }
    .gauge i { height: 20px; }
    .claim { grid-template-columns: 1fr; gap: 0.4rem; }
    .claim .n { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gauge i.on { animation: none; }
    * { transition: none !important; }
}
