/* SCU Protocol — Stylesheet */
:root {
    --bg:       #04060d;
    --bg2:      #080d18;
    --bg3:      #0c1120;
    --border:   #111a2e;
    --accent:   #3b82f6;
    --accent2:  #06b6d4;
    --green:    #10b981;
    --text:     #dce8ff;
    --text-dim: #6b7fa8;
    --radius:   10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(4,6,13,.9); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); height: 62px;
}
.navbar .inner {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1rem; color: var(--text); }
.nav-brand .hexagon { font-size: 1.2rem; color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: .88rem; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-btn {
    padding: 8px 18px; border-radius: 8px;
    background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600;
    transition: background .2s;
}
.nav-btn:hover { background: #2563eb; color: #fff; }

/* HERO */
.hero {
    padding: 100px 0 70px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(59,130,246,.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 60%, rgba(6,182,212,.06) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block;
    background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3);
    color: var(--accent); padding: 5px 14px; border-radius: 20px;
    font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px;
}
.hero h1 .grad {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); max-width: 540px; margin: 0 auto 36px; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: .9rem;
    transition: all .2s; border: none; cursor: pointer; text-decoration: none;
}
.btn-blue    { background: var(--accent); color: #fff; }
.btn-blue:hover { background: #2563eb; color: #fff; transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* SPEC CARDS */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.spec-card {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
    transition: border-color .2s, transform .2s;
}
.spec-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.spec-card .tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(59,130,246,.12); color: var(--accent); margin-bottom: 14px;
}
.spec-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.spec-card p  { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }

/* SECTION */
.section { padding: 76px 0; }
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-heading p  { color: var(--text-dim); max-width: 480px; margin: 0 auto; }

/* PIPELINE */
.pipeline { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.pipe-step {
    display: flex; flex-direction: column;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 24px; min-width: 180px;
    position: relative;
}
.pipe-step .num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 800; margin-bottom: 12px;
}
.pipe-step h4 { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.pipe-step p  { font-size: .8rem; color: var(--text-dim); }
.pipe-arrow { display: flex; align-items: center; padding: 0 10px; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }

/* FORMULA */
.formula-box {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px 32px;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: .92rem; color: #93c5fd;
    text-align: center; letter-spacing: .02em;
}
.formula-box .comment { color: var(--text-dim); font-size: .78rem; margin-top: 12px; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* CODE */
.code-block {
    background: #020409; border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 22px;
    font-family: 'Fira Code', monospace; font-size: .82rem;
    color: #7dd3fc; overflow-x: auto; white-space: pre;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 36px 0; text-align: center;
    font-size: .82rem; color: var(--text-dim);
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

@media (max-width: 700px) {
    .nav-links { display: none; }
    .pipe-arrow { display: none; }
    .pipeline { flex-direction: column; align-items: stretch; }
}
