/* ============================================================
   Navecta - product overview pages. Built to the tasteskill ruleset.
   Shared stylesheet for /products/<slug>. Mirrors the tokens and
   chrome (header/footer/buttons) of the landing page so the pages
   read as one site. No em-dashes anywhere by rule.
   ============================================================ */

@font-face {
    font-family: "Geist";
    src: url("/fonts/geist-sans.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: "Geist Mono";
    src: url("/fonts/geist-mono.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

:root {
    --bg: #0a1220;
    --bg-2: #0b1424;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --ink: #eef3f9;
    --ink-2: #aab6c6;
    --accent: #1ec1da;
    --accent-2: #6fe3f1;
    --accent-ink: #03141b;
    --accent-glow: rgba(30, 193, 218, 0.16);

    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;

    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --maxw: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 78% -8%, var(--accent-glow), transparent 60%),
        radial-gradient(700px 480px at 5% 8%, rgba(30, 193, 218, 0.06), transparent 55%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }

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

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: var(--r-md); font-weight: 600; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

.ic { width: 22px; height: 22px; flex: none; }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; }
.lead { color: var(--ink-2); font-size: 1.075rem; max-width: 60ch; }

/* ---------- nav ---------- */
header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 18, 32, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { color: var(--ink-2); font-size: 0.94rem; font-weight: 450; transition: color 0.2s var(--ease); }
.nav-links a.navlink:hover { color: var(--ink); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); font-size: 0.94rem; font-weight: 600;
    padding: 11px 18px; border-radius: var(--r-md); cursor: pointer;
    border: 1px solid transparent; white-space: nowrap;
    transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset; }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: translateY(1px) scale(0.99); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--ink); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }

/* ---------- product article ---------- */
.prose { max-width: 768px; padding-top: 40px; padding-bottom: 88px; }
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; margin-bottom: 30px; transition: gap 0.2s var(--ease), color 0.2s var(--ease); }
.back:hover { color: var(--accent); gap: 11px; }
.back .ic { width: 16px; height: 16px; }

.prose h1 { font-size: clamp(2.2rem, 4.6vw, 3rem); margin: 14px 0 0; }
.prose .tagline { color: var(--accent-2); font-size: 1.18rem; margin-top: 18px; font-weight: 450; max-width: 62ch; }

.page-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 8px; }
.page-cta .btn { padding: 13px 22px; font-size: 1rem; }

.prose h2 {
    font-size: 1.4rem; margin: 46px 0 16px;
    padding-top: 26px; border-top: 1px solid var(--border);
}
.prose p { color: var(--ink-2); margin: 14px 0; max-width: 68ch; }
.prose ul, .prose ol { color: var(--ink-2); margin: 16px 0; padding-left: 22px; max-width: 68ch; }
.prose li { margin: 9px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .rule { margin: 52px 0 36px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 20px; position: relative; z-index: 1; }
.foot-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand .brand { font-size: 1.15rem; }
.foot-brand p { color: var(--ink-2); font-size: 0.9rem; margin-top: 10px; max-width: 34ch; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--accent); }
.foot-legal { color: var(--ink-2); font-size: 0.84rem; margin-top: 36px; }

/* ---------- reveal motion (progressive, reduced-motion safe) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 22px 24px;
    }
    .nav-links.open .btn { width: 100%; }
    .nav-toggle { display: inline-flex; }
    .page-cta .btn { width: 100%; }
}
