:root {
    --bg: #1A1712;
    --bg-2: #221E18;
    --panel: #2A241C;
    --panel-2: #322B21;
    --line: rgba(244, 237, 224, 0.1);
    --ink: #F4EDE0;
    --muted: #B8A990;
    --amber: #F5A623;
    --amber-2: #D48912;
    --amber-soft: rgba(245, 166, 35, 0.16);
    --good: #8FCB8A;
    --warn: #E0B85A;
    --bad: #D97A6A;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --font-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
    --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
    --radius: 18px;
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(245, 166, 35, 0.12), transparent 50%),
        radial-gradient(900px 400px at 100% 0%, rgba(180, 90, 30, 0.1), transparent 45%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.4em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }

.skip {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--amber); color: #1A1712; padding: 8px 12px; z-index: 20; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(26, 23, 18, 0.86);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 50%;
    background: conic-gradient(from 210deg, #F5A623, #8A5A12, #F5A623);
    box-shadow: inset 0 0 0 3px #1A1712, 0 0 0 1px var(--amber);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.topnav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.topnav a:hover { color: var(--amber); }
.who { display: flex; flex-direction: column; line-height: 1.15; margin-left: 0.5rem; }
.who-name { font-weight: 800; font-size: 0.92rem; }
.who-role { font-size: 0.75rem; color: var(--muted); }

.main { width: min(var(--max), calc(100% - 2rem)); margin: 1.5rem auto 6rem; }
.main-bleed { margin: 0; width: 100%; }
.site-foot {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto 5.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.flash {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 1rem auto;
    width: min(var(--max), 100%);
    font-weight: 700;
}
.flash-success { background: rgba(143, 203, 138, 0.15); color: var(--good); }
.flash-error { background: rgba(217, 122, 106, 0.16); color: var(--bad); }
.flash-info { background: var(--amber-soft); color: var(--amber); }

.hero {
    padding: clamp(2rem, 6vw, 5rem) 1.25rem 3rem;
    width: min(var(--max), 100%);
    margin: 0 auto;
}
.kicker {
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 14ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.step-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}
.step-card b { display: block; color: var(--amber); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }

.panel, .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card { padding: 1.1rem; }
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}
.stat .n {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--amber);
}
.stat .l { color: var(--muted); font-size: 0.88rem; font-weight: 700; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--amber); color: #1A1712; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #5a2a22; color: #f3c7bf; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.4rem 0.9rem; font-size: 0.92rem; }

label { display: block; font-weight: 800; margin: 0.9rem 0 0.35rem; }
.hint { color: var(--muted); font-weight: 600; font-size: 0.88rem; margin: 0; }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #1E1B16;
    color: var(--ink);
    font: inherit;
    padding: 0.6rem 0.85rem;
}
textarea { min-height: 96px; resize: vertical; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--amber-soft);
    color: var(--amber);
}
.badge-intake { background: rgba(184,169,144,.15); color: var(--muted); }
.badge-testing { background: rgba(224,184,90,.15); color: var(--warn); }
.badge-processing { background: rgba(245,166,35,.15); color: var(--amber); }
.badge-verified { background: rgba(143,203,138,.15); color: var(--good); }
.badge-paid { background: rgba(143,203,138,.22); color: var(--good); }

.batch-list { display: flex; flex-direction: column; gap: 0.75rem; }
.batch-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
}
.batch-row:hover { border-color: rgba(245,166,35,.4); text-decoration: none; }
.batch-row h3 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
.price-tag { font-family: var(--font-display); font-size: 1.35rem; color: var(--amber); white-space: nowrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative;
    padding: 0 0 1.2rem 1.4rem;
    border-left: 2px solid rgba(245,166,35,.35);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -7px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--panel);
}
.timeline .t { color: var(--muted); font-size: 0.85rem; }
.timeline .todo::before { background: #5a5246; }

.cert {
    background:
        linear-gradient(180deg, rgba(245,166,35,.08), transparent 28%),
        var(--panel);
    border: 1px solid rgba(245,166,35,.28);
    border-radius: 24px;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    position: relative;
}
.cert-seal {
    width: 88px; height: 88px;
    border: 2px dashed var(--amber);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--amber);
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-8deg);
    margin-left: auto;
}
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.2rem; margin: 1.2rem 0; }
.kv div { background: #1E1B16; border-radius: 12px; padding: 0.8rem 0.9rem; }
.kv b { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.demo-box {
    margin-top: 1.5rem;
    background: #1E1B16;
    border: 1px dashed rgba(245,166,35,.35);
    border-radius: 14px;
    padding: 1rem;
    font-size: 0.95rem;
}
.demo-box code { color: var(--amber); }

.muted { color: var(--muted); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.auth-wrap { width: min(460px, calc(100% - 2rem)); margin: 2rem auto 4rem; }

.bottomnav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #16130f;
    border-top: 1px solid var(--line);
    padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
    z-index: 12;
}
.bottomnav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.bottomnav svg { width: 22px; height: 22px; }

.rec { background: var(--amber-soft); border-radius: 12px; padding: 0.8rem 1rem; margin: 0.8rem 0; }

@media (max-width: 760px) {
    .topnav a:not(.btn) { display: none; }
    .who { display: none; }
    .bottomnav { display: grid; grid-template-columns: repeat(3, 1fr); }
    .kv { grid-template-columns: 1fr; }
    .batch-row { flex-direction: column; align-items: flex-start; }
    .main { margin-bottom: 7rem; }
}

@media print {
    .topbar, .bottomnav, .site-foot, .btn, .flash { display: none !important; }
    body { background: #fff; color: #111; }
    .cert { box-shadow: none; border-color: #ccc; }
}
