/* ==========================================================================
   MCLY Technology — storefront stylesheet
   Dark "control-plane" aesthetic: deep space base, cyan→indigo signal
   gradients, terminal motifs, monospace data labels.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --bg:        #04060b;
    --bg-soft:   #070b13;
    --panel:     #0a0f19;
    --panel-2:   #0d1421;
    --panel-3:   #111a2a;
    --line:      rgba(148, 163, 184, .14);
    --line-2:    rgba(148, 163, 184, .26);
    --txt:       #e8eef8;
    --muted:     #94a3b8;
    --dim:       #64748b;
    --cyan:      #22d3ee;
    --teal:      #2dd4bf;
    --indigo:    #818cf8;
    --violet:    #c084fc;
    --ok:        #34d399;
    --warn:      #fbbf24;
    --bad:       #f87171;
    --grad:      linear-gradient(115deg, #22d3ee 0%, #818cf8 58%, #c084fc 100%);
    --grad-soft: linear-gradient(115deg, rgba(34,211,238,.16), rgba(129,140,248,.16));
    --shadow:    0 24px 60px -30px rgba(2, 6, 23, .95);
    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    --wrap: 1200px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: rgba(34, 211, 238, .3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-size: .88em; letter-spacing: -.01em; }

/* ---------- 3. Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg-glow-a { width: 720px; height: 720px; top: -320px; right: -180px; background: radial-gradient(circle, rgba(34,211,238,.36), transparent 68%); }
.bg-glow-b { width: 640px; height: 640px; top: 180px; left: -280px; background: radial-gradient(circle, rgba(129,140,248,.3), transparent 68%); }

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { color: var(--muted); font-size: 1.075rem; max-width: 62ch; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2.2rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--cyan); margin: 0 0 16px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot-live { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.sec-num {
    font-family: var(--mono); font-size: .78rem; letter-spacing: .2em;
    color: var(--dim); display: block; margin-bottom: 14px;
}
.sec-num b { color: var(--indigo); font-weight: 600; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Hairline brand rule */
.hair {
    height: 1px; border: 0; margin: 0;
    background: linear-gradient(90deg, transparent, var(--line-2) 18%, rgba(34,211,238,.5) 50%, var(--line-2) 82%, transparent);
}

/* ---------- 5. Buttons & chips ---------- */
.btn {
    --btn-bg: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    background: var(--btn-bg); color: var(--txt);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--grad); color: #05121a;
    box-shadow: 0 12px 30px -14px rgba(34, 211, 238, .75);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(129, 140, 248, .8); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.07); }
.btn-line { border-color: rgba(34,211,238,.4); color: var(--cyan); font-family: var(--mono); font-size: .84rem; }
.btn-line:hover { background: rgba(34,211,238,.1); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 17px; font-size: .87rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
    font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted);
}
.chip-solid { background: var(--grad-soft); border-color: rgba(34,211,238,.35); color: var(--cyan); }
.badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    background: var(--grad); color: #06121b;
    font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}

/* Status pills */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-2);
    font-family: var(--mono); font-size: .73rem; color: var(--muted); white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-pending     { color: var(--warn);  border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.pill-paid        { color: var(--cyan);  border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.pill-provisioned { color: var(--indigo);border-color: rgba(129,140,248,.4); background: rgba(129,140,248,.1); }
.pill-completed   { color: var(--ok);    border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.pill-cancelled   { color: var(--dim);   border-color: var(--line); background: rgba(148,163,184,.06); }
.pill-unpaid      { color: var(--warn);  border-color: rgba(251,191,36,.3); }
.pill-paid-pay    { color: var(--ok);    border-color: rgba(52,211,153,.3); }

/* ---------- 6. Header ---------- */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--panel-3); padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.site-head {
    position: sticky; top: 0; z-index: 90;
    background: rgba(4, 6, 11, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: rgba(4, 6, 11, .93); }
.head-inner { display: flex; align-items: center; gap: 26px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-weight: 800; letter-spacing: -.03em; font-size: 1.06rem; }
.brand-text span { font-weight: 500; color: var(--muted); margin-left: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
    padding: 8px 13px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--muted);
    transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--txt); background: rgba(148,163,184,.08); }
.nav-link.is-active { color: var(--txt); background: rgba(34,211,238,.1); box-shadow: inset 0 0 0 1px rgba(34,211,238,.22); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-link { display: inline-flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 500; color: var(--muted); }
.head-link:hover { color: var(--txt); }
.avatar-dot {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid rgba(34,211,238,.35);
    font-family: var(--mono); font-size: .8rem; color: var(--cyan);
}
.nav-toggle {
    display: none; width: 42px; height: 38px; margin-left: auto;
    background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 10px;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { width: 17px; height: 1.7px; background: var(--txt); display: block; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

/* ---------- 7. Flash ---------- */
.flash-wrap { padding-top: 18px; display: grid; gap: 10px; }
.flash {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px; border-radius: var(--r-sm);
    border: 1px solid var(--line-2); background: var(--panel-2); font-size: .93rem;
}
.flash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.flash-success, .flash-ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.flash-success .flash-dot, .flash-ok .flash-dot { background: var(--ok); }
.flash-error { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.flash-error .flash-dot { background: var(--bad); }
.flash-info .flash-dot { background: var(--indigo); }

/* ---------- 8. Hero ---------- */
.hero { padding: 74px 0 54px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy, .hero-term { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.13rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: .78rem; color: var(--dim); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.term {
    border: 1px solid var(--line-2); border-radius: var(--r);
    background: linear-gradient(180deg, #0a111d, #070b13);
    box-shadow: var(--shadow); overflow: hidden;
}
.term-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 15px; border-bottom: 1px solid var(--line);
    background: rgba(148,163,184,.05);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--mono); font-size: .76rem; color: var(--dim); margin-left: 6px; }
.term-body { padding: 18px 20px; font-family: var(--mono); font-size: .82rem; line-height: 1.85; overflow-x: auto; }
.term-body pre { margin: 0; }
.c-cmd  { color: var(--teal); }
.c-key  { color: var(--indigo); }
.c-str  { color: #fcd34d; }
.c-punc { color: var(--dim); }
.c-out  { color: var(--muted); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1.15s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 9. Ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(148,163,184,.03); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
    flex: 0 0 auto; padding: 18px 22px 18px 0; margin-right: 22px;
    border-right: 1px solid var(--line);
    font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.ticker-track { display: flex; gap: 46px; animation: ticker 34s linear infinite; white-space: nowrap; }
.ticker-track span { font-family: var(--mono); font-size: .95rem; color: var(--muted); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 10. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--bg-soft); padding: 26px 22px; }
.stat-val { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; }
.stat-lbl { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* ---------- 11. Cards ---------- */
.card {
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(13,20,33,.9), rgba(10,15,25,.9));
    padding: 28px; position: relative; overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-ico {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid rgba(34,211,238,.28); margin-bottom: 18px;
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: rgba(10,15,25,.6); position: relative; }
.step::before {
    counter-increment: step; content: '0' counter(step);
    font-family: var(--mono); font-size: .8rem; color: var(--cyan); letter-spacing: .12em;
    display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Architecture diagram */
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.arch-box {
    border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px;
    background: rgba(10,15,25,.75); text-align: center;
}
.arch-box strong { display: block; font-family: var(--mono); font-size: .86rem; letter-spacing: .02em; }
.arch-box span { font-size: .8rem; color: var(--dim); }
.arch-box.hot { border-color: rgba(34,211,238,.45); box-shadow: 0 0 0 1px rgba(34,211,238,.12), 0 20px 50px -30px rgba(34,211,238,.7); }
.arch-mid { display: grid; gap: 8px; }
.arch-mid i {
    display: block; padding: 9px 14px; border-radius: 9px; font-family: var(--mono); font-size: .78rem;
    border: 1px solid var(--line); background: rgba(148,163,184,.05); color: var(--muted); font-style: normal; text-align: center;
}
.arch-arrow { color: var(--dim); font-family: var(--mono); }

/* ---------- 12. Plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px;
    background: linear-gradient(180deg, rgba(13,20,33,.92), rgba(8,12,20,.92));
    position: relative; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.is-hot { border-color: rgba(34,211,238,.5); box-shadow: 0 0 0 1px rgba(34,211,238,.14), 0 30px 70px -40px rgba(34,211,238,.85); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.plan-name { font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.plan-tag { color: var(--muted); font-size: .9rem; min-height: 2.6em; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.plan-amount { font-family: var(--mono); font-size: 2.05rem; font-weight: 600; letter-spacing: -.04em; }
.plan-unit { font-family: var(--mono); font-size: .78rem; color: var(--dim); }
.plan-credit { font-family: var(--mono); font-size: .79rem; color: var(--teal); margin: 6px 0 0; }
.plan-feats { margin: 20px 0 24px; display: grid; gap: 10px; }
.plan-feats li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--muted); }
.plan-feats li::before {
    content: ''; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px;
    background: var(--grad-soft); border: 1px solid rgba(34,211,238,.32);
}
.plan-feats li::after {
    content: ''; position: absolute; left: 4.6px; top: .72em; width: 5px; height: 2.4px;
    border-left: 1.6px solid var(--cyan); border-bottom: 1.6px solid var(--cyan); transform: rotate(-45deg);
}
.plan-cta { margin-top: auto; display: grid; gap: 10px; }
.plan-specs { display: grid; gap: 0; margin: 18px 0 22px; border-top: 1px solid var(--line); }
.plan-specs div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.plan-specs dt { color: var(--dim); font-family: var(--mono); font-size: .78rem; }
.plan-specs dd { margin: 0; color: var(--txt); font-family: var(--mono); font-size: .8rem; text-align: right; }

/* Category header row above each plan group */
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 12px 0 26px; flex-wrap: wrap; }
.group-head h2 { margin: 0; }
.group-head .lede { margin: 6px 0 0; }

/* ---------- 13. Model catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn {
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer;
    font-family: var(--mono); font-size: .79rem; transition: all .16s ease;
}
.filter-btn:hover { color: var(--txt); border-color: var(--line-2); }
.filter-btn.is-on { color: #05121a; background: var(--grad); border-color: transparent; }
.vendor-block { margin-bottom: 34px; }
.vendor-title {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo);
}
.vendor-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.model {
    border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
    background: rgba(10,15,25,.66); transition: border-color .18s ease, background .18s ease;
}
.model:hover { border-color: rgba(34,211,238,.4); background: rgba(13,20,33,.9); }
.model-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.model-name { font-weight: 600; font-size: .99rem; letter-spacing: -.01em; }
.model-ctx { font-family: var(--mono); font-size: .74rem; color: var(--cyan); background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.28); padding: 2px 9px; border-radius: 6px; }
.model-desc { color: var(--muted); font-size: .87rem; margin: 0; }
.model-flag { font-family: var(--mono); font-size: .68rem; color: var(--violet); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 14. Docs ---------- */
.docs-layout { display: grid; grid-template-columns: 232px 1fr; gap: 46px; align-items: start; }
.docs-side { position: sticky; top: 96px; border-left: 1px solid var(--line); padding-left: 20px; }
.docs-side h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 0 10px; }
.docs-side h4:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 6px 0; font-size: .9rem; color: var(--muted); }
.docs-side a:hover { color: var(--cyan); }
.doc-block { margin-bottom: 54px; scroll-margin-top: 100px; }
.doc-block h2 { font-size: 1.6rem; }
.code-tabs { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #070b13; margin: 18px 0; }
.code-tabbar { display: flex; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: rgba(148,163,184,.05); overflow-x: auto; }
.code-tab {
    padding: 6px 13px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted);
    font-family: var(--mono); font-size: .78rem; cursor: pointer; white-space: nowrap;
}
.code-tab.is-on { color: var(--cyan); background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.28); }
.code-pane { display: none; padding: 18px 20px; overflow-x: auto; }
.code-pane.is-on { display: block; }
.code-pane pre { margin: 0; font-family: var(--mono); font-size: .81rem; line-height: 1.8; color: #cbd5e1; }
.endpoint {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; background: rgba(10,15,25,.7);
    font-family: var(--mono); font-size: .84rem; margin-bottom: 12px;
}
.method { padding: 3px 9px; border-radius: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; }
.method-get  { background: rgba(52,211,153,.14); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.method-post { background: rgba(129,140,248,.16); color: var(--indigo); border: 1px solid rgba(129,140,248,.34); }
.endpoint code { color: var(--txt); }

/* ---------- 15. Forms ---------- */
.form-card {
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px;
    background: linear-gradient(180deg, rgba(13,20,33,.94), rgba(8,12,20,.94));
    box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; font-weight: 500; margin-bottom: 7px; color: var(--muted); }
.field .req { color: var(--cyan); }
.input, .select, .textarea {
    width: 100%; padding: 12px 15px; border-radius: 10px;
    border: 1px solid var(--line-2); background: rgba(4,6,11,.7); color: var(--txt);
    font-family: var(--sans); font-size: .95rem; transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #475569; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: .8rem; color: var(--dim); margin: 6px 0 0; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .89rem; color: var(--muted); }
.check input { margin-top: .28em; accent-color: #22d3ee; width: 16px; height: 16px; }
.form-error {
    border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.09);
    color: #fecaca; border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 20px;
}
.auth-shell { max-width: 458px; margin: 0 auto; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--cyan); }

/* Payment method selector (checkout) */
.pay-opts { display: grid; gap: 12px; }
.pay-opt {
    display: flex; gap: 14px; align-items: flex-start;
    border: 1px solid var(--line-2); border-radius: var(--r); padding: 17px 19px;
    background: rgba(4,6,11,.5); cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.pay-opt:hover { border-color: rgba(34,211,238,.4); }
.pay-opt input { margin-top: .3em; accent-color: #22d3ee; width: 17px; height: 17px; }
.pay-opt.is-on { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.06); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.pay-opt strong { display: block; font-size: .96rem; }
.pay-opt p { margin: 3px 0 0; font-size: .86rem; color: var(--muted); }
.pay-flag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(192,132,252,.35); background: rgba(192,132,252,.1); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }

/* ---------- 16. Summary / tables ---------- */
.summary {
    border: 1px solid var(--line); border-radius: var(--r); background: rgba(10,15,25,.7); padding: 24px;
}
.summary h3 { font-size: 1rem; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-family: var(--mono); font-size: .85rem; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.summary-total .amount { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: rgba(10,15,25,.66); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data th {
    text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2);
    font-family: var(--mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
    background: rgba(148,163,184,.05);
}
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(34,211,238,.04); }
table.data .num { font-family: var(--mono); }
.empty {
    border: 1px dashed var(--line-2); border-radius: var(--r); padding: 46px 24px; text-align: center; color: var(--muted);
}

/* Order timeline */
.timeline { display: grid; gap: 0; margin: 8px 0 0; }
.tl-step { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.tl-step::before {
    content: ''; position: absolute; left: 12.5px; top: 22px; bottom: 0; width: 1px; background: var(--line-2);
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step:last-child::before { display: none; }
.tl-dot {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-2); background: var(--panel); font-family: var(--mono); font-size: .7rem; color: var(--dim);
}
.tl-step.done .tl-dot { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.12); color: var(--ok); }
.tl-step.now .tl-dot { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.14); color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.1); }
.tl-body strong { display: block; font-size: .96rem; }
.tl-body p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

/* Notice / callout */
.notice {
    border: 1px solid rgba(34,211,238,.3); border-left-width: 3px; border-radius: 10px;
    background: rgba(34,211,238,.06); padding: 18px 20px; font-size: .92rem; color: var(--muted);
}
.notice strong { color: var(--txt); }
.notice-warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.07); }

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero { padding: 62px 0 34px; border-bottom: 1px solid var(--line); background: rgba(148,163,184,.02); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 12px; }
.page-hero .lede { margin: 0; }
.crumb { font-family: var(--mono); font-size: .76rem; color: var(--dim); margin-bottom: 14px; letter-spacing: .06em; }
.crumb a:hover { color: var(--cyan); }
.crumb span { margin: 0 8px; color: #334155; }

/* Prose (legal / static pages) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.42rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.9em; color: var(--txt); }
.prose p, .prose li { color: var(--muted); font-size: .97rem; }
.prose ul { list-style: none; display: grid; gap: 9px; margin: 0 0 1.2rem; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: .75; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(34,211,238,.3); }
.prose .updated { font-family: var(--mono); font-size: .8rem; color: var(--dim); }

details.faq {
    border: 1px solid var(--line); border-radius: var(--r); background: rgba(10,15,25,.6); margin-bottom: 12px;
    transition: border-color .18s ease;
}
details.faq[open] { border-color: rgba(34,211,238,.35); }
details.faq summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1rem; list-style: none;
    display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: '+'; font-family: var(--mono); color: var(--cyan); font-size: 1.1rem; flex: 0 0 auto;
}
details.faq[open] summary::after { content: '\2013'; }
details.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .94rem; }

/* ---------- 18. CTA band & footer ---------- */
.cta-band {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(34,211,238,.05), rgba(129,140,248,.045));
    padding: 62px 0; position: relative; overflow: hidden;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-copy { max-width: 620px; }
.cta-copy h2 { margin-bottom: 10px; }
.cta-copy .lede { margin: 0; font-size: 1rem; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

.site-foot { padding: 66px 0 26px; background: rgba(4,6,11,.6); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .85fr) 1.25fr; gap: 34px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-blurb { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.foot-meta { color: var(--dim); font-size: .84rem; line-height: 1.75; margin: 0; }
.foot-col h3 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-col a:not(.btn) { display: block; padding: 5px 0; font-size: .91rem; color: var(--muted); }
.foot-col a:not(.btn):hover { color: var(--cyan); }
.foot-contact .btn { margin-top: 4px; }
.foot-mail { font-family: var(--mono); font-size: .86rem !important; color: var(--cyan) !important; }
.foot-note { font-size: .85rem; color: var(--dim); margin: 12px 0 16px; }
.foot-bar {
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: .85rem; color: var(--dim);
}
.foot-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .79rem; }
.foot-status .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- 19. Composite layouts & utilities ---------- */
/* Main column + sticky aside (plan, checkout, receipt, account) */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; align-items: start; }
.side-sticky { position: sticky; top: 96px; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-sm { display: grid; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.buy-card { box-shadow: var(--shadow); }
.card .summary { border: 0; background: none; padding: 0; }
.card > h2 { margin-bottom: 14px; }

/* Quantity stepper (checkout) */
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-input {
    width: 96px; padding: 11px 14px; border-radius: 10px; text-align: center;
    border: 1px solid var(--line-2); background: rgba(4,6,11,.7); color: var(--txt);
    font-family: var(--mono); font-size: 1rem;
}
.qty-input:focus { outline: none; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.qty-note { font-size: .84rem; color: var(--dim); margin: 0; }

/* Data tables inside prose */
.prose table.data {
    min-width: 0; margin: .6rem 0 1.6rem;
    border: 1px solid var(--line); border-radius: var(--r);
    background: rgba(10,15,25,.6); overflow: hidden;
}
.prose table.data td { color: var(--muted); font-size: .91rem; }

/* ---------- 20. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: 52px; }
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .docs-layout { grid-template-columns: 1fr; gap: 30px; }
    .docs-side { position: static; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
    .arch { grid-template-columns: 1fr; }
    .arch-arrow { transform: rotate(90deg); justify-self: center; }
    .detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .side-sticky { position: static; }
}
@media (max-width: 900px) {
    .main-nav {
        position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(6,9,15,.98); border-bottom: 1px solid var(--line);
        padding: 14px 20px 22px; margin: 0;
        transform: translateY(-130%); transition: transform .24s ease; z-index: 80;
    }
    .main-nav.is-open { transform: none; }
    .nav-link { padding: 13px 14px; font-size: 1rem; }
    .nav-toggle { display: flex; }
    .head-actions { margin-left: auto; }
    .head-link-txt { display: none; }
    .stats { grid-template-columns: 1fr 1fr; }
    .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
    .section { padding: 62px 0; }
    .ticker-label { display: none; }
}
@media (max-width: 620px) {
    .wrap { padding: 0 18px; }
    .head-inner { height: 64px; gap: 14px; }
    .main-nav { inset: 64px 0 auto; }
    .btn-lg { padding: 13px 22px; font-size: .95rem; }
    .form-card { padding: 24px 20px; }
    .field-row { grid-template-columns: 1fr; }
    .plan { padding: 26px 20px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .foot-grid { grid-template-columns: 1fr; }
    .term-body { font-size: .76rem; }
    .stat-val { font-size: 1.5rem; }
}
