/* velociportr.app — "iron → oxide", on the service's own dark metal.
   The product oxidizes C into memory-safe Rust; the identity is
   metallurgical: steel (the C "before") + burnt rust-oxide (the Rust
   "after", the accent). The palette IS the console's (velociportr.ai) —
   one product, one scheme, storefront to workbench. The signature is the
   translation SEAM running C→Rust.

   Type: Space Grotesk (editorial display) · IBM Plex Sans (body) ·
   JetBrains Mono (every technical layer: code, labels, stats, eyebrows). */

:root {
    /* Console palette (velociportr/style/main.css) under the site's
       token names: --paper = bg-primary, --paper-2 = bg-secondary,
       --card = bg-card, --input = bg-input, --line = border,
       --ink/--muted = text-primary/secondary. */
    --paper: #0f1117;
    --paper-2: #1a1d28;
    --card: #222536;
    --input: #2a2e3f;
    --line: #374151;
    --ink: #e4e6eb;
    --muted: #9ca3af;
    --steel: #8b95a3;        /* steel as TEXT on dark; the mark uses raw #47515E */
    --steel-soft: #9aa4b0;
    --oxide: #DC5B2E;        /* console accent (bright oxide for dark bg) */
    --oxide-soft: #F0774A;   /* console accent-hover */
    --oxide-wash: rgba(220, 91, 46, 0.10);
    --code-bg: #171b23;      /* the editor inset sits slightly ABOVE the page */
    --code-panel: #1d222c;
    --code-fg: #C9CDD4;
    --code-dim: #6A7480;
    --ok: #34d399;

    --sans: "IBM Plex Sans", system-ui, sans-serif;
    --display: "Space Grotesk", "IBM Plex Sans", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --shell: min(1180px, 92vw);
}

* { box-sizing: border-box; }

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

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

a { color: var(--oxide); text-decoration: none; }
a:hover { color: var(--oxide-soft); }

::selection { background: var(--oxide); color: #fff; }

/* ── Type ── */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--oxide);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--oxide);
}

/* ── The oxide mark: a square, half steel / half oxide = iron oxidizing.
     Raw steel #47515E is the brand constant (favicon, console sidebar). ── */
.mark {
    width: 20px; height: 20px;
    border-radius: 3px;
    background: linear-gradient(120deg, #47515E 0 50%, var(--oxide) 50% 100%);
    display: inline-block;
    flex: none;
}

/* ── Shell / header ── */
.site-header {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    width: var(--shell); margin: 0 auto;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 20px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a.navlink {
    font-family: var(--mono); font-size: 13px; color: var(--steel);
    padding: 7px 11px; border-radius: 6px;
}
.site-nav a.navlink:hover { color: var(--ink); background: var(--paper-2); }

main { width: var(--shell); margin: 0 auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 14px; font-weight: 500;
    padding: 11px 18px; border-radius: 7px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--oxide); color: #fff; }
.btn-primary:hover { background: var(--oxide-soft); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--steel); color: var(--ink); }
.btn-large { padding: 14px 24px; font-size: 15px; }
.btn::after { content: ""; }

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
    padding: 84px 0 40px;
}
.hero-copy { max-width: 30ch; }
.hero h1 {
    font-size: clamp(38px, 5.1vw, 62px);
    margin: 20px 0 0;
}
.hero h1 .before { color: var(--steel); }
.hero h1 .after {
    color: var(--oxide);
    position: relative;
    white-space: nowrap;
}
.hero-sub {
    font-size: 19px; color: var(--muted);
    margin: 22px 0 0; max-width: 46ch;
    line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ── Signature: the translation seam (the editor inset, one step above the page) ── */
.seam {
    background: var(--code-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: var(--mono);
}
.seam-tabs {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #262c37;
    font-size: 12.5px; color: var(--code-dim);
}
.seam-tab { display: inline-flex; align-items: center; gap: 7px; }
.seam-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.seam-tab.c .dot { background: var(--steel-soft); }
.seam-tab.rs .dot { background: var(--oxide); }
.seam-tab.c { color: #9aa4b0; }
.seam-tab.rs { color: var(--oxide-soft); }
.seam-arrow { color: #454c56; }
.seam-verdict {
    margin-left: auto; font-size: 11.5px; letter-spacing: 0.04em;
    color: var(--ok); display: inline-flex; align-items: center; gap: 6px;
}
.seam-verdict .tick { color: var(--ok); }

.seam-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.seam-body .code { margin: 0; padding: 18px 18px; font-size: 12.8px; line-height: 1.7; overflow-x: auto; color: var(--code-fg); }
.seam-body .code.c { background: linear-gradient(90deg, rgba(71,81,94,0.12), transparent); }
.seam-body .code.rs { background: linear-gradient(270deg, rgba(220,91,46,0.10), transparent); }
.seam-line {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 1px; background: linear-gradient(var(--steel-soft), var(--oxide));
    transform: translateX(-0.5px);
}
.seam-node {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--code-bg);
    border: 1px solid var(--oxide);
    display: grid; place-items: center;
    color: var(--oxide); font-size: 13px;
    box-shadow: 0 0 0 4px var(--code-bg);
}
.tok-k { color: var(--oxide-soft); }
.tok-t { color: #8fb8d8; }
.tok-f { color: #d9c67a; }
.tok-c { color: var(--code-dim); font-style: italic; }
.tok-u { color: #c98b6b; }

/* ── Spec bar (datasheet strip) ── */
.specbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-2);
    margin: 20px 0 0;
    overflow: hidden;
}
.spec {
    padding: 16px 20px;
    border-right: 1px solid var(--line);
}
.spec:last-child { border-right: 0; }
.spec .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--display); font-weight: 600; font-size: 16px; margin-top: 4px; color: var(--ink); }

/* ── Section frame ── */
.section { padding: 74px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

/* ── Pipeline (earned numbering: a real ordered sequence) ── */
.pipeline { display: grid; gap: 0; }
.stage {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 28px;
    padding: 26px 0;
    border-top: 1px dashed var(--line);
    position: relative;
}
.stage:first-child { border-top: 0; }
.stage-no {
    font-family: var(--mono); font-size: 13px; color: var(--oxide);
    padding-top: 4px;
    position: relative;
}
.stage-no::after {
    content: ""; position: absolute; left: 6px; top: 30px; bottom: -30px;
    width: 1px; background: linear-gradient(var(--oxide), transparent);
}
.stage:last-child .stage-no::after { display: none; }
.stage h3 { font-size: 21px; }
.stage p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.stage .stage-tag { font-family: var(--mono); font-size: 12px; color: var(--steel); margin-top: 10px; display: inline-block; }

/* ── Cost anchor ── */
.anchor {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.anchor-cell { padding: 40px; }
.anchor-cell.was { background: var(--paper-2); }
.anchor-cell.now {
    background:
        radial-gradient(420px 180px at 20% 0, var(--oxide-wash), transparent),
        var(--card);
}
.anchor-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.anchor-big { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); margin-top: 10px; letter-spacing: -0.03em; }
.anchor-cell.was .anchor-big { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--oxide); text-decoration-thickness: 2px; }
.anchor-cell.now .anchor-big { color: var(--ink); }
.anchor-cell.now .anchor-big .accent { color: var(--oxide-soft); }
.anchor-note { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* ── Figures (proof) — intentional, captioned, never a sad dashed box ── */
.figures { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.figure {
    margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-2);
}
.figure .frame {
    aspect-ratio: 16 / 10;
    display: grid; place-items: center;
    background:
        repeating-linear-gradient(135deg, transparent 0 11px, rgba(139,149,163,0.05) 11px 12px),
        var(--code-bg);
    color: var(--code-dim);
    font-family: var(--mono); font-size: 12px; text-align: center; padding: 0 20px;
}
.figure figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.figure figcaption b { color: var(--ink); font-weight: 600; }

/* ── Page head (interior pages) ── */
.page-head { padding: 72px 0 8px; max-width: 68ch; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* Legal long-form (Terms / Privacy) — readable measure, quiet type. */
.legal-body { max-width: 74ch; border-top: 0; padding-top: 8px; }
.legal-body h2 { font-size: 20px; margin: 34px 0 8px; }
.legal-body p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.legal-disclaimer {
    border-left: 2px solid var(--oxide);
    padding: 12px 16px;
    background: var(--paper-2);
    border-radius: 0 8px 8px 0;
    color: var(--steel-soft) !important;
    font-size: 14px !important;
    margin-bottom: 28px !important;
}

/* ── Pricing ── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: start; }
.tier {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--paper-2);
}
.tier-featured {
    background:
        radial-gradient(420px 200px at 50% 0, var(--oxide-wash), transparent),
        var(--card);
    border-color: var(--oxide);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.tier h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxide); }
.tier-featured h3 { color: var(--oxide-soft); }
.tier-price { font-family: var(--display); font-size: 34px; font-weight: 700; margin: 14px 0 2px; letter-spacing: -0.03em; }
.tier-unit { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.tier li { position: relative; padding-left: 22px; margin: 11px 0; font-size: 15px; color: var(--muted); }
.tier li::before { content: "+"; position: absolute; left: 0; color: var(--oxide); font-family: var(--mono); }
.tier-compute { color: var(--ink) !important; }
.tier-compute::before { content: "$" !important; }
.pricing-notes { margin-top: 56px; max-width: 74ch; }
.pricing-notes h2 { font-size: 24px; }
.pricing-notes p { color: var(--muted); margin-top: 12px; }

/* ── Security ── */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.sec-item { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--paper-2); }
.sec-item h3 { font-size: 17px; }
.sec-item h3::before {
    content: "⛬"; color: var(--oxide); font-family: var(--mono);
    margin-right: 8px; font-size: 14px;
}
.sec-item p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin-top: 28px; }
.faq-item { border-top: 1px solid var(--line); padding: 6px 0; }
.faq-item summary {
    cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: 18px;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--oxide); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }

/* ── Signup / contact ── */
.signup-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.signup-form input, .signup-form textarea {
    background: var(--input); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); padding: 11px 13px; font-size: 15px; font-family: var(--sans);
}
.signup-form input:focus, .signup-form textarea:focus { outline: none; border-color: var(--oxide); }
.signup-form textarea { min-height: 88px; resize: vertical; }
.signup-ok { color: var(--ok); font-size: 15px; }
.signup-err { color: var(--oxide); font-size: 14px; margin: 0; }
.contact-body { max-width: 460px; }

/* ── CTA band ── */
.cta-band {
    margin-top: 80px; padding: 56px; border-radius: 14px;
    background: var(--card); text-align: center;
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 50% 0, var(--oxide-wash), transparent);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); position: relative; }
.cta-band p { color: var(--muted); margin: 14px 0 26px; position: relative; }
.cta-band .btn { position: relative; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); margin-top: 84px; }
.footer-inner { width: var(--shell); margin: 0 auto; padding: 48px 0; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--steel); font-size: 14px; margin: 6px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-fine { width: var(--shell); margin: 0 auto; padding: 0 0 40px; color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* ── Reveal on load (respected below) ── */
.reveal { opacity: 0; transform: translateY(10px); animation: reveal 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.06s; }
.reveal.d2 { animation-delay: 0.12s; }
.reveal.d3 { animation-delay: 0.18s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Quality floor ── */
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
    .hero-copy { max-width: none; }
    .specbar { grid-template-columns: 1fr 1fr; }
    .spec:nth-child(2) { border-right: 0; }
    .anchor, .figures, .tiers, .sec-grid { grid-template-columns: 1fr; }
    .tier-featured { transform: none; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    .btn { transition: none; }
    * { scroll-behavior: auto; }
}
