/* PledgeSec shared design system — dark "blueprint terminal".
 * Single source of truth for tokens, chrome (nav/footer), buttons, section
 * rhythm and reveal animation. Linked by every page; page-specific styles stay
 * inline per template. */

@font-face {
    font-family: "LiberationMono";
    src: url("/static/LiberationMono-Regular.ttf") format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "LiberationMono";
    src: url("/static/LiberationMono-Bold.ttf") format("truetype");
    font-weight: 700;
}

:root {
    --bg: #0b0b0d;
    --panel: #131317;
    --panel-2: #0f0f13;
    --line: #26262b;
    --line-2: #33333a;
    --acc: #10e298;
    --acc-2: #0bc47f;
    --acc-ink: #04140d;
    --acc-dim: rgba(16, 226, 152, 0.10);
    --tx: #e9e9ec;
    --tx-mut: #9a9aa2;
    --tx-dim: #6b6b73;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "LiberationMono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    position: relative;
    background: var(--bg);
    color: var(--tx);
    font-family: var(--sans);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* blueprint grid tying every page together — spans the full document and
 * scrolls with the content (not fixed to the viewport) */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 12vh, transparent 82vh);
    mask-image: linear-gradient(to bottom, #000 0, #000 12vh, transparent 82vh);
}

/* ---------------- nav ---------------- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 58px;
    z-index: 100;
    display: flex;
    justify-content: center;
    background: rgba(11, 11, 13, 0.72);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--wrap);
    width: 100%;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--tx-mut);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* ---------------- buttons ---------------- */
.btn {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: #2affab; }

.btn-ghost {
    background: var(--panel);
    color: var(--tx);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--acc); color: var(--acc); }

.btn-outline {
    background: transparent;
    color: var(--acc);
    border-color: var(--acc);
    font-family: var(--mono);
}
.btn-outline:hover { background: var(--acc-dim); }

/* ---------------- shared bits ---------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 14px;
}

.rule {
    width: 44px;
    height: 3px;
    background: var(--acc);
    margin-bottom: 26px;
}

/* generic section: separated by a hairline, never by a color swap */
.section {
    position: relative;
    padding: 104px 40px;
    border-top: 1px solid var(--line);
}
.section > .wrap { position: relative; }

.section h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 22px;
}

.section .lead {
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 640px;
    color: var(--tx-mut);
}

/* bordered callout panel with a green left edge — used for emphasis */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--acc);
    padding: 34px 34px;
}

/* spec-sheet section layout: numbered left rail + content */
.spec { display: grid; grid-template-columns: 190px 1fr; gap: 48px; align-items: start; }
.spec-rail { position: sticky; top: 84px; }
.spec-rail .mk {
    font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--acc);
    line-height: 1; display: flex; align-items: center; gap: 9px;
}
.spec-rail .mk::before {
    content: ""; width: 8px; height: 8px; flex: none; background: var(--acc);
    position: relative; top: -2px;
    box-shadow: 0 0 8px rgba(16, 226, 152, 0.7);
}
.spec-rail .mk-label {
    font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--tx-dim); margin-top: 10px; padding-left: 17px;
}
.spec-body h2 { margin-top: -6px; }

/* centered contact close */
.contact { text-align: center; padding: 24px 0; }
.contact h2 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin-bottom: 14px; }
.contact p { font-size: 1.08rem; color: var(--tx-mut); max-width: 500px; margin: 0 auto 34px; line-height: 1.7; }

@media (max-width: 900px) {
    .spec { grid-template-columns: 1fr; gap: 22px; }
    .spec-rail { position: static; display: flex; align-items: baseline; gap: 14px; }
    .spec-rail .mk-label { margin-top: 0; padding-left: 0; }
    .spec-body h2 { margin-top: 0; }
}

/* ---------------- footer ---------------- */
.site-footer {
    text-align: center;
    padding: 34px 40px;
    font-size: 0.82rem;
    color: var(--tx-dim);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
}

/* ---------------- reveal ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ---------------- responsive chrome ---------------- */
@media (max-width: 620px) {
    .nav-inner { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .section { padding: 72px 22px; }
}
