/* HEINO - design system. Black surfaces, hairline borders, one gold accent, Inter. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #0a0a0c; --bg-2: #0e0e11; --surface: #131316; --surface-2: #18181c; --surface-3: #1f1f25;
    --border: #26262c; --border-soft: #1d1d22; --border-hi: #7d6428;
    --text: #ecece6; --muted: #9a958b; --faint: #5f5b53;
    --accent: #d4af37; --accent-hi: #f0cf6e; --accent-dn: #a8862a; --on-accent: #1a1405;
    --good: #5ad17a; --warn: #f0b24a; --bad: #f06e6e; --dead: #6b6b6b;
    --radius: 16px; --radius-sm: 10px; --shadow: 0 30px 80px rgba(0,0,0,.6);
    --max: 1160px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(900px 500px at 50% -10%, rgba(212,175,55,.10), transparent 60%), radial-gradient(600px 400px at 90% 20%, rgba(212,175,55,.05), transparent 60%); }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { line-height: 1.6; }
main { flex: 1; position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(90deg, var(--accent-hi), var(--accent), #b98e2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace; }
hr.sep { border: 0; border-top: 1px solid var(--border-soft); margin: 22px 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: .22em; font-size: 15px; }
.brand img { height: 30px; width: auto; }
.brand small { font-weight: 600; letter-spacing: .08em; color: var(--muted); font-size: 11px; margin-left: 2px; }
.nav-links { display: flex; gap: 6px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 9px; transition: .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 9px; width: 40px; height: 36px; font-size: 18px; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dn)); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 13px; }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); box-shadow: 0 8px 24px rgba(212,175,55,.22); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--on-accent); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-hi); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { background: rgba(240,110,110,.12); color: var(--bad); border-color: rgba(240,110,110,.3); }
.small.btn-primary, .small.btn-secondary, .btn-primary.small, .btn-secondary.small, .btn-ghost.small { padding: 8px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 80px 20px 50px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 900; letter-spacing: -.03em; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 20px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); color: var(--accent-hi); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-art .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.28), transparent 65%); filter: blur(20px); }
.hero-art img { position: relative; width: min(100%, 440px); filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 24px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 50px 20px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { color: var(--muted); max-width: 640px; margin: 8px 0 0; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.card.lift { transition: .2s; }
.card.lift:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(212,175,55,.1); color: var(--accent-hi); margin-bottom: 16px; border: 1px solid rgba(212,175,55,.2); }

/* product */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.product .cover { position: relative; min-height: 340px; background: #000 center/cover no-repeat; }
.product .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--surface) 100%), linear-gradient(0deg, var(--surface) 0%, transparent 40%); }
.product .cover .ribbon { position: absolute; top: 18px; left: 18px; z-index: 2; }
.product .body { padding: 30px 30px 30px 6px; }
.product h2 { font-size: 30px; font-weight: 800; }
.product .tagline { color: var(--muted); margin: 8px 0 18px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.pill.gold { border-color: rgba(212,175,55,.35); background: rgba(212,175,55,.1); color: var(--accent-hi); }
.pill.active { color: var(--good); border-color: rgba(90,209,122,.35); background: rgba(90,209,122,.08); }
.pill.inactive { color: var(--bad); border-color: rgba(240,110,110,.3); background: rgba(240,110,110,.08); }
.checks { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(212,175,55,.25) inset; }
.plan .name { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plan .price { font-size: 28px; font-weight: 800; margin: 10px 0 4px; }
.plan .per { color: var(--faint); font-size: 12px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .n { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }

/* status */
.status-list { display: grid; gap: 10px; }
.status-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.status-row .light { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.status-row .light.green { background: var(--good); box-shadow: 0 0 0 4px rgba(90,209,122,.15), 0 0 14px rgba(90,209,122,.5); }
.status-row .light.yellow { background: var(--warn); box-shadow: 0 0 0 4px rgba(240,178,74,.15), 0 0 14px rgba(240,178,74,.5); }
.status-row .light.red { background: var(--bad); box-shadow: 0 0 0 4px rgba(240,110,110,.15), 0 0 14px rgba(240,110,110,.5); }
.status-row .light.black { background: #222; }
.status-row .name { font-weight: 700; flex: 1; }
.status-row .name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.status-row .state { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-row .state.green { color: var(--good); } .status-row .state.yellow { color: var(--warn); } .status-row .state.red { color: var(--bad); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 16px; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: var(--faint); }
.legend .g::before { background: var(--good); } .legend .y::before { background: var(--warn); } .legend .r::before { background: var(--bad); } .legend .b::before { background: #222; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* cta band */
.cta { max-width: var(--max); margin: 30px auto 60px; padding: 0 20px; }
.cta .inner { background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.03)); border: 1px solid rgba(212,175,55,.3); border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; font-weight: 800; }
.cta p { color: var(--muted); margin: 6px 0 0; }

/* ---------- auth / forms ---------- */
.auth-wrap { max-width: var(--max); margin: 0 auto; padding: 56px 20px 70px; display: grid; place-items: center; }
.panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.panel.wide { max-width: 760px; }
.panel.xwide { max-width: 1160px; }
.brand-block { text-align: center; margin-bottom: 22px; }
.brand-block img { height: 54px; margin-bottom: 10px; }
.brand-block h1 { font-size: 22px; font-weight: 800; }
.brand-block p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 14px; outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
textarea { min-height: 120px; resize: vertical; }
form .btn-primary { margin-top: 18px; width: 100%; }
.msg { min-height: 20px; margin-top: 12px; font-size: 13px; }
.msg.ok { color: var(--good); } .msg.err { color: var(--bad); }
.form-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.small-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 4px 0 10px; }
.notice { background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.25); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--text); }
.notice.warn { background: rgba(240,178,74,.08); border-color: rgba(240,178,74,.3); }

/* tables */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255,255,255,.015); }
td .btn-ghost, td .btn-secondary, td .btn-danger { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
code.key { background: var(--bg-2); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* tabs (admin) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border-soft); padding-bottom: 12px; }
.tabs button { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs button.active { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.tab { display: none; } .tab.active { display: block; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.tile strong { display: block; font-size: 24px; font-weight: 800; }
.tile span { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar label { margin: 0 0 6px; }
.toolbar > div { flex: 1; min-width: 140px; }
.keys-out { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre-wrap; max-height: 220px; overflow: auto; }

/* loader page */
.download { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.download .big { flex: 1; }
.download .big strong { font-size: 18px; display: block; }
.download .big span { color: var(--muted); font-size: 13px; }

/* footer */
.footer { border-top: 1px solid var(--border-soft); margin-top: 40px; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.footer-inner a { color: var(--muted); margin-left: 16px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 50px; } .hero-art { order: -1; min-height: 220px; }
    .grid-3, .plans, .steps, .tiles { grid-template-columns: repeat(2, 1fr); }
    .product { grid-template-columns: 1fr; } .product .cover { min-height: 220px; } .product .cover::after { background: linear-gradient(0deg, var(--surface) 0%, transparent 60%); } .product .body { padding: 24px; }
}
@media (max-width: 700px) {
    .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 14px 16px; gap: 2px; }
    .nav-links.open { display: flex; } .nav-toggle { display: inline-block; } .nav-right .hide-m { display: none; }
    .grid-2, .grid-3, .plans, .steps, .tiles, .checks { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; }
    .panel { padding: 24px; } .cta .inner { padding: 26px; }
}
