/* shared.css — substrate-fingerprint site common style (matches Modulum) */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #0a0a0c; color: #e8e8ec;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden; line-height: 1.55;
}
::selection { background: rgba(255,140,50,0.3); }
a { color: #ff8c32; text-decoration: none; }
a:hover { color: #ffb070; }

/* ── NAV ── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,12,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,140,50,0.1);
    padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 16px; font-weight: 800; letter-spacing: 4px; color: #fff; }
.nav-logo span { color: #ff8c32; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #777; transition: color 0.2s; }
.nav-links a.active { color: #ff8c32; }
.nav-links a:hover { color: #fff; }

/* ── HERO / SECTIONS ── */
.hero {
    min-height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 80px 24px 60px; position: relative; text-align: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,100,20,0.05) 0%, transparent 70%),
                radial-gradient(ellipse 40% 30% at 30% 60%, rgba(60,120,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.hero-label { font-size: 11px; letter-spacing: 6px; text-transform: uppercase; color: #ff8c32; margin-bottom: 24px; position: relative; }
.hero h1 {
    font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.05; position: relative;
    background: linear-gradient(135deg, #fff 0%, #ff8c32 50%, #ff4400 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    max-width: 920px;
}
.hero-sub { font-size: clamp(15px, 2vw, 19px); color: #aaa; margin-top: 24px; max-width: 700px; line-height: 1.65; position: relative; }
.hero-sub strong { color: #ff8c32; font-weight: 600; }

.hero-stat-row { display: flex; gap: 56px; margin-top: 56px; position: relative; flex-wrap: wrap; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 48px; font-weight: 800; color: #fff; }
.hero-stat .num span { color: #ff8c32; }
.hero-stat .label { font-size: 12px; color: #666; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,140,50,0.2), transparent); margin: 40px auto; max-width: 600px; }

/* ── SECTION  ── */
section.body {
    padding: 80px 24px; max-width: 980px; margin: 0 auto;
}
section.body h2 {
    font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin-bottom: 18px;
}
section.body h2 span { color: #ff8c32; }
section.body .lead {
    font-size: 16px; color: #aaa; line-height: 1.75; margin-bottom: 36px; max-width: 760px;
}
section.body p { color: #aaa; line-height: 1.75; margin-bottom: 18px; max-width: 760px; }
section.body p strong { color: #e8e8ec; }
section.body code {
    background: rgba(255,140,50,0.08); color: #ffb070;
    padding: 2px 8px; border-radius: 4px; font-size: 13px; font-family: 'SF Mono', Menlo, monospace;
}

/* ── FACTBOX ── */
.factbox {
    background: rgba(255,255,255,0.02); border-left: 2px solid #ff8c32;
    padding: 24px 28px; margin: 28px 0; max-width: 760px; border-radius: 2px;
}
.factbox .factlabel { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #ff8c32; margin-bottom: 10px; }
.factbox .factbody { font-size: 14px; color: #ccc; line-height: 1.7; }
.factbox .factbody strong { color: #fff; }

/* ── GRID OF METRICS ── */
.metric-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    max-width: 900px; margin: 40px auto;
}
.metric-cell { padding: 28px; background: rgba(255,255,255,0.02); }
.metric-cell .metric { font-size: 32px; font-weight: 800; color: #fff; }
.metric-cell .metric span { color: #ff8c32; }
.metric-cell .desc { font-size: 13px; color: #888; margin-top: 8px; line-height: 1.55; }
.metric-cell .proof { font-size: 11px; color: #555; margin-top: 12px; font-style: italic; }

/* ── COMPONENT ROWS (per-head etc) ── */
.row-grid { max-width: 900px; margin: 40px auto; display: grid; grid-template-columns: 1fr; gap: 2px; }
.row-card {
    display: grid; grid-template-columns: 180px 1fr 200px 80px; gap: 0;
    background: rgba(255,255,255,0.02); transition: background 0.2s;
}
.row-card:hover { background: rgba(255,255,255,0.04); }
.row-name { padding: 22px; border-right: 1px solid rgba(255,255,255,0.04); }
.row-name h3 { font-size: 16px; font-weight: 700; color: #fff; }
.row-name .type { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #ff8c32; margin-top: 4px; }
.row-desc { padding: 22px; }
.row-desc p { font-size: 13px; color: #aaa; line-height: 1.55; margin: 0; }
.row-result { padding: 22px; border-left: 1px solid rgba(255,255,255,0.04); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.row-result .number { font-size: 22px; font-weight: 800; color: #ff8c32; }
.row-result .unit { font-size: 11px; color: #666; margin-top: 2px; }
.row-fingerprint { padding: 22px; display: flex; align-items: center; justify-content: center; }

/* ── SVG containers ── */
.svg-figure {
    margin: 28px auto; max-width: 640px; padding: 18px 20px;
    background: rgba(255,255,255,0.015); border: 1px solid rgba(255,140,50,0.05);
    box-sizing: border-box;
}
.svg-figure svg {
    display: block; margin: 0 auto;
    width: 100%; max-width: 600px; height: auto;
}
.svg-figure .formula {
    display: block; text-align: center;
    margin: 4px auto 0 auto;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px; color: #ffb070;
    background: rgba(255,140,50,0.06);
    padding: 6px 14px; border-radius: 4px;
    width: fit-content; max-width: 100%;
    line-height: 1.4;
}
.svg-figure .caption { font-size: 12px; color: #777; text-align: center; margin-top: 12px; line-height: 1.55; }

/* ── FOOTER (matches Modulum site exactly) ── */
.footer {
    padding: 60px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 60px;
}
.footer .legal { font-size: 11px; color: #444; line-height: 1.6; margin-top: 12px; }
.footer .legal a { color: #ff8c32; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .row-card { grid-template-columns: 1fr; }
    .row-fingerprint, .row-result { border-left: none; align-items: flex-start; }
    .metric-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 10px; letter-spacing: 1px; }
}
