/* Spectre Solutions store.
   Direction: thermal imaging. A deep indigo void, one live thermal hero, and a
   cold-to-white-hot ramp used only where heat means something (hot = the
   thing to act on). Instrument Serif carries the voice; Geist does the work;
   Geist Mono is reserved for keys, prices and versions. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
    --void: #0a0912;
    --smoke: #13111e;
    --smoke-2: #1a1728;
    --ash: #2a263d;
    --bone: #ede9f5;
    --haze: #a39db9;
    --dim: #6f6a86;
    --t0: #1b1740;
    --t1: #4b1d8c;
    --t2: #b0247a;
    --t3: #f0513a;
    --t4: #ffa23a;
    --t5: #fff1b8;
    --heat: #ff7a3d;
    --heat-ink: #1a0b05;
    --good: #7fd6a4;
    --ramp: linear-gradient(90deg, var(--t0), var(--t1) 22%, var(--t2) 45%, var(--t3) 65%, var(--t4) 82%, var(--t5));
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Geist", "Segoe UI", system-ui, sans-serif;
    --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1240px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--void);
    color: var(--bone);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--t4); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bone); color: var(--void); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 6vw, 76px); line-height: 0.98; }
h3 { font-size: 28px; line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--haze); max-width: 52ch; }
.kicker { font-size: 15px; color: var(--t4); margin-bottom: 14px; }

/* ------------------------------------------------------------ buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 500 15px/1 var(--sans);
    padding: 15px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-heat { background: var(--heat); color: var(--heat-ink); box-shadow: 0 0 0 0 rgba(255, 122, 61, .5); }
.btn-heat:hover { background: #ff9058; box-shadow: 0 8px 36px -8px rgba(255, 122, 61, .75); }
.btn-ghost { border-color: rgba(237, 233, 245, .28); color: var(--bone); background: rgba(10, 9, 18, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4b57e0; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.discord-mark { width: 20px; height: 16px; flex: none; }

/* ------------------------------------------------------------ nav */

.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; gap: 28px;
    padding: 18px var(--gutter);
    transition: background-color .3s ease, transform .35s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 9, 18, .72); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(42, 38, 61, .7); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 23px/1 var(--serif); letter-spacing: -0.01em; }
.ghost { width: 26px; height: 26px; color: var(--bone); flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--haze); transition: color .2s; }
.nav-links a:hover { color: var(--bone); }
.nav-account { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; padding: 5px 14px 5px 5px; border: 1px solid var(--ash); border-radius: 999px; }
.nav-account img { width: 28px; height: 28px; border-radius: 50%; }
.nav-account:hover { border-color: var(--haze); }
@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav > :last-child { margin-left: auto; }
}

/* ------------------------------------------------------------ hero */

.hero {
    position: relative;
    min-height: max(640px, 100svh);
    display: flex; align-items: flex-end;
    padding: 140px var(--gutter) clamp(56px, 9vh, 110px);
    overflow: hidden;
    isolation: isolate;
}
.thermal {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
    background: radial-gradient(ellipse at 70% 40%, #3a1a6e 0%, #140f2c 55%, var(--void) 100%);
}
.hero-grain {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(10, 9, 18, .22) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(10, 9, 18, 0) 55%, var(--void) 100%);
}
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-title {
    font-size: clamp(64px, 12.5vw, 196px);
    line-height: 0.86;
    letter-spacing: -0.025em;
    max-width: 11ch;
    text-shadow: 0 2px 40px rgba(10, 9, 18, .45);
}
.hero-title .line { display: block; }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--bone); opacity: .82; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-live { margin-top: 30px; font: 400 13px/1 var(--mono); color: var(--haze); display: inline-flex; align-items: center; gap: 10px; }
.hero-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(127, 214, 164, .15); }

/* ------------------------------------------------------------ sections */

.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 60px; margin-bottom: 48px; }
.section-head p { color: var(--haze); font-size: 18px; max-width: 42ch; justify-self: end; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head p { justify-self: start; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card-link { display: block; text-decoration: none; height: 100%; border-radius: 18px; background: var(--smoke); border: 1px solid var(--ash); overflow: hidden; transition: border-color .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover { border-color: rgba(255, 162, 58, .55); transform: translateY(-4px); }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--smoke-2); }
.cover .art, .cover img, .cover canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .cover .art, .card-link:hover .cover img { transform: scale(1.04); }
.sweep {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 241, 184, .16) 48%, rgba(255, 162, 58, .22) 50%, transparent 70%);
    transform: translateX(-100%);
}
.card-link:hover .sweep { opacity: 1; transform: translateX(100%); transition: transform 1s ease, opacity .2s; }
.card-body { padding: 22px 24px 24px; }
.card-tagline { color: var(--haze); margin-top: 8px; }
.price { font: 500 14px/1.2 var(--mono); color: var(--t4); margin-top: 18px; }

/* Featured single product (Blender) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.feature-copy .lede { margin-top: 20px; }
.feature-copy .price { margin: 26px 0 22px; font-size: 16px; }
.feature-visual { position: relative; display: block; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 45%, #1c1636 0%, var(--void) 70%); border: 1px solid var(--ash); overflow: hidden; transition: border-color .3s ease; }
.feature-visual:hover { border-color: rgba(255, 162, 58, .55); }
.feature-visual:hover .sweep { opacity: 1; transform: translateX(100%); transition: transform 1.1s ease, opacity .2s; }
.feature-visual img, .feature-visual canvas, .feature-visual .art { width: 100%; height: 100%; object-fit: cover; }
.feature-flip .feature-copy { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature-visual, .feature-flip .feature-visual { order: -1; } .feature-flip .feature-copy { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--bone); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--t4); }

/* How it works: a real sequence, so it is numbered. */
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; }
.steps-line { position: absolute; top: 22px; left: 0; width: 100%; height: 4px; overflow: visible; }
.steps-line path { stroke: var(--t3); stroke-width: 2; vector-effect: non-scaling-stroke; }
.steps li { position: relative; padding-top: 70px; }
.step-n {
    position: absolute; top: 0; left: 0;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    font: 500 16px/1 var(--mono);
    background: var(--void); border: 1px solid var(--t3); color: var(--t4);
}
.steps h3 { font-size: 30px; }
.steps p { color: var(--haze); margin-top: 12px; max-width: 34ch; }
@media (max-width: 820px) {
    .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .steps-line { display: none; }
    .steps li { padding-top: 0; padding-left: 70px; min-height: 46px; }
}

.community { padding-bottom: 0; }
.community-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(176, 36, 122, .28), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(75, 29, 140, .35), transparent 60%),
        var(--smoke);
    border: 1px solid var(--ash);
}
.community-card h2 { font-size: clamp(30px, 3.6vw, 46px); }
.community-card p { color: var(--haze); margin-top: 8px; }
.community-icon { width: 72px; height: 72px; border-radius: 20px; }
.community-card .ghost { width: 64px; height: 64px; }
@media (max-width: 760px) { .community-card { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ product page */

.product-hero {
    max-width: var(--max); margin: 0 auto;
    padding: 140px var(--gutter) 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: start;
}
.product-copy h1 { font-size: clamp(54px, 7.5vw, 104px); line-height: 0.92; margin-top: 18px; }
.product-copy .lede { margin-top: 22px; }
.back { display: inline-block; color: var(--haze); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--ash); padding-bottom: 2px; }
.back:hover { color: var(--bone); border-color: var(--bone); }
.product-visual { position: sticky; top: 100px; }
.cover-large { aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid var(--ash); }
@media (max-width: 900px) {
    .product-hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
    .product-visual { position: static; order: -1; }
}

.buy-box { margin-top: 34px; display: grid; gap: 14px; max-width: 460px; }
.buy { display: grid; gap: 14px; }
.plans { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio name price" "radio tags tags";
    align-items: center; gap: 4px 14px;
    padding: 16px 18px; border-radius: 14px;
    background: var(--smoke); border: 1px solid var(--ash); cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.plan input { grid-area: radio; accent-color: var(--heat); width: 18px; height: 18px; margin: 0; }
.plan-name { grid-area: name; font-weight: 500; }
.plan-price { grid-area: price; font: 500 16px/1 var(--mono); }
.plan-price small { font: 400 13px var(--sans); color: var(--haze); }
.plan-save, .plan-seats { grid-area: tags; font-size: 13px; color: var(--good); }
.plan-seats { color: var(--haze); }
.plan:has(input:checked) { border-color: var(--heat); background: linear-gradient(0deg, rgba(255, 122, 61, .07), rgba(255, 122, 61, .07)), var(--smoke); }
.fine { font-size: 13px; color: var(--dim); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--smoke-2); border: 1px solid var(--ash); color: var(--bone); }
.notice.good { border-color: rgba(127, 214, 164, .4); }
.form-error { color: #ff8f7a; font-size: 14px; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.prose { font-size: 18px; color: var(--haze); display: grid; gap: 18px; max-width: 64ch; }
.features { padding: 28px; border-radius: 18px; background: var(--smoke); border: 1px solid var(--ash); }
.features h2 { font-size: 34px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: minmax(0, 1fr); } }

.changelog h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 28px; }
.versions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ash); }
.versions li { display: grid; grid-template-columns: 140px 180px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ash); align-items: baseline; }
.version { font: 500 15px var(--mono); color: var(--t4); }
.versions time { color: var(--dim); font-size: 14px; }
.versions p { color: var(--haze); }
@media (max-width: 700px) { .versions li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ------------------------------------------------------------ join / errors */

.panel-page { min-height: 80vh; display: grid; place-items: center; padding: 130px var(--gutter) 40px; }
.gate { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.gate .ghost { width: 56px; height: 56px; }
.gate h1 { font-size: clamp(46px, 6vw, 72px); line-height: 1; }
.gate p { color: var(--haze); font-size: 18px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------ account */

.account-page { max-width: 1100px; margin: 0 auto; padding: 130px var(--gutter) 0; }
.account-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 48px; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ash); }
.account-head h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.account-head p { color: var(--haze); margin-top: 6px; }
.loading { color: var(--haze); }
.acct-section { margin-bottom: 64px; }
.acct-section > h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 20px; }
.acct-section > .sub { color: var(--haze); margin: -10px 0 20px; }
.keys { display: grid; gap: 16px; }
.key-card { padding: 24px; border-radius: 18px; background: var(--smoke); border: 1px solid var(--ash); display: grid; gap: 16px; }
.key-card.is-off { opacity: .72; }
.key-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.key-top h3 { font-size: 30px; }
.key-top h3 a { text-decoration: none; }
.key-top h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.state { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.active { color: var(--good); }
.state.expired { color: var(--t4); }
.state.revoked { color: #ff8f7a; }
.key-plate {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 14px 16px; border-radius: 12px;
    background: var(--void); border: 1px dashed rgba(255, 162, 58, .45);
}
.key-plate code { font: 500 clamp(14px, 1.7vw, 17px)/1.3 var(--mono); letter-spacing: .04em; color: var(--t5); overflow-wrap: anywhere; flex: 1 1 280px; }
.key-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--haze); font-size: 15px; }
.key-facts b { color: var(--bone); font-weight: 500; }
.key-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.extend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.extend select { font: inherit; color: var(--bone); background: var(--void); border: 1px solid var(--ash); border-radius: 999px; padding: 10px 14px; }
.empty { padding: 26px; border-radius: 18px; border: 1px dashed var(--ash); color: var(--haze); }
.empty a { color: var(--t4); }
.downloads { display: grid; gap: 16px; }
.dl-card { padding: 22px 24px; border-radius: 18px; background: var(--smoke); border: 1px solid var(--ash); }
.dl-card h3 { font-size: 26px; }
.dl-latest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.dl-meta { font: 400 14px/1.5 var(--mono); color: var(--haze); }
.dl-meta b { color: var(--t4); font-weight: 500; }
.dl-notes { color: var(--haze); margin-top: 10px; font-size: 15px; }
.dl-older { margin-top: 14px; }
.dl-older summary { cursor: pointer; color: var(--haze); font-size: 14px; }
.dl-older ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.dl-older a { font: 400 14px var(--mono); color: var(--bone); }
.banner { padding: 16px 18px; border-radius: 14px; margin-bottom: 28px; background: rgba(127, 214, 164, .1); border: 1px solid rgba(127, 214, 164, .35); }
.banner.warn { background: rgba(255, 162, 58, .08); border-color: rgba(255, 162, 58, .35); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px); background: var(--bone); color: var(--void); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .account-head { grid-template-columns: auto minmax(0, 1fr); } .account-head .btn { grid-column: 1 / -1; justify-self: start; } }

/* ------------------------------------------------------------ footer */

.footer { max-width: var(--max); margin: clamp(90px, 12vw, 160px) auto 0; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--ash); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px var(--serif); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; font-size: 15px; }
.footer nav a { color: var(--haze); text-decoration: none; }
.footer nav a:hover { color: var(--bone); }
.footer-note { grid-column: 1 / -1; font-size: 13px; color: var(--dim); max-width: 80ch; }
@media (max-width: 700px) { .footer { grid-template-columns: minmax(0, 1fr); } .footer nav { justify-content: flex-start; } }

/* Motion starting states. boot.js adds .motion before first paint (unless the
   visitor prefers reduced motion) and removes it if site.js never takes over,
   so content can't get stuck invisible. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion .hero-title, .motion .split { visibility: hidden; }
.motion .hero-sub, .motion .hero-cta, .motion .hero-live { opacity: 0; }
.split-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
