/* PyroSoft product-site kit — shared by every product site under pyrosoft.pro/<product>/.
   Derived from the house design used by infinitepip.app, firefetch.app, burnb.in and
   burnflix.app (Apple-style dark "Pro page": system font, ribbon header, hairline
   borders, ember accent). Change it here and every product site follows.
   Per-site overrides: set --brand-a / --brand-b on :root for the header wordmark. */

:root {
    --bg: #000;
    --bg-soft: #101012;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: #1d1d1f;
    --line: rgba(255, 255, 255, 0.10);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --dim: #86868b;
    --ember: #ff5b04;
    --ember-2: #ff8a3d;
    --gold: #ffb340;
    --blue: #2997ff;
    --green: #30d158;
    --yellow: #ffd60a;
    --red: #ff453a;
    --brand-a: #ff8a3d;
    --brand-b: #ff5b04;
    --radius: 28px;
    --radius-lg: 28px;
    --max: 1080px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #08090c 0%, #0d0f15 44%, #07080b 100%);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20; width: 100%; margin: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    height: 48px; padding: 0 max(22px, calc((100% - 1240px) / 2));
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(18,18,19,.8);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand, .site-nav { display: flex; align-items: center; }
.brand { gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; font-size: 24px; }
.brand-mark img { width: 26px; height: 26px; border-radius: 7px; }
.brand-word {
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.site-nav { gap: 4px; font-size: 0.92rem; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
    padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap;
    transition: color 180ms ease, background 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
    color: var(--text); background: rgba(255, 255, 255, 0.08); outline: none;
}
.site-nav .pyro-home { color: var(--dim); padding-right: 14px; margin-right: 2px; border-right: 1px solid var(--line); border-radius: 0; }
.site-nav .pyro-home:hover { color: var(--text); background: transparent; }
.site-nav .nav-cta { position: sticky; right: 0; color: #fff; font-weight: 600; background: var(--ember); padding: 6px 14px; border-radius: 980px; box-shadow: -10px 0 12px rgba(18,18,19,.9); }
.site-nav .nav-cta:hover { color: #fff; background: var(--ember-2); }

main { overflow: hidden; }
section, .site-footer { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
    margin: 0 0 14px; color: var(--ember-2); font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.018em; line-height: 0.98; }
h1 { max-width: 620px; margin-bottom: 22px; font-size: clamp(3.0rem, 5.25vw, 5.4rem); }
h1 span, h2 em {
    font-style: normal; font-family: inherit;
    background: linear-gradient(92deg, var(--ember-2), var(--ember) 55%, #ff3b30 110%);
    -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: inherit;
}
h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 3.7vw, 3.8rem); }
h3 { margin-bottom: 10px; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.25; }
.hero-lede, .section-copy p, .center-copy p, .download-cta p, .tech-hero p, .lede {
    color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem);
}
.text-link { color: var(--gold); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- hero ---------- */
.hero {
    min-height: min(calc(100vh - 94px), 860px);
    display: grid; grid-template-columns: minmax(310px, 0.82fr) minmax(420px, 1.12fr);
    align-items: center; gap: 56px; padding: 70px 0 58px;
}
.hero.hero-centered { grid-template-columns: 1fr; text-align: center; min-height: auto; padding: 96px 0 40px; }
.hero.hero-centered h1, .hero.hero-centered .hero-lede { margin-inline: auto; max-width: 820px; }
.hero.hero-centered .hero-actions, .hero.hero-centered .hero-proof { justify-content: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-lede { max-width: 580px; margin-bottom: 28px; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-proof span, .tech-pill-grid span {
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 8px 12px;
    color: var(--muted); background: rgba(255, 255, 255, 0.055); font-size: .92rem;
}
.hero-proof .proof-lead { color: var(--text); border-color: rgba(255, 138, 61, .45); background: rgba(255, 91, 4, .12); }

/* ---------- buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
    cursor: pointer; border: 0; font: inherit; font-weight: 800;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button-primary { color: #fff; background: var(--ember); }
.button-primary:hover { background: var(--ember-2); }
.button-secondary { color: var(--text); border: 1px solid rgba(255,255,255,.35); background: transparent; }
.button-secondary:hover { border-color: rgba(255,255,255,.6); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--muted);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { color: var(--green); border-color: rgba(48,209,88,.35); background: rgba(48,209,88,.10); }
.badge-soon { color: var(--yellow); border-color: rgba(255,214,10,.35); background: rgba(255,214,10,.08); }
.badge-dev { color: var(--blue); border-color: rgba(41,151,255,.35); background: rgba(41,151,255,.10); }
.badge-oss { color: var(--ember-2); border-color: rgba(255,138,61,.4); background: rgba(255,91,4,.10); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-centered .badge-row { justify-content: center; }

/* ---------- screenshot frames ---------- */
.product-frame {
    position: relative; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
    background: rgba(8, 9, 12, 0.92); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    transform-style: preserve-3d; transition: transform 220ms ease, border-color 220ms ease;
}
.product-frame:hover { border-color: rgba(255, 209, 102, 0.38); }
.hero-frame { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.screenshot-frame, .screenshot-card { display: block; }
.screenshot-frame img, .screenshot-card img {
    width: 100%; height: auto; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover; object-position: top center; background: #0b0c10;
}
.fit-contain img { object-fit: contain; }
.shot-caption {
    position: relative; z-index: 2; display: grid; gap: 4px; margin: 0; padding: 14px 16px;
    background: rgba(8, 9, 12, 0.88); backdrop-filter: blur(18px) saturate(1.2);
}
.shot-caption span { color: var(--gold); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.shot-caption strong { font-size: 0.98rem; line-height: 1.35; }
a.shot-link { display: block; text-decoration: none; color: inherit; }

/* ---------- promise strip ---------- */
.marquee {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line);
}
.marquee div { padding: 28px; background: rgba(255, 255, 255, 0.055); }
.marquee strong, .marquee span { display: block; }
.marquee strong { margin-bottom: 5px; font-size: 1.2rem; }
.marquee span { color: var(--muted); }

/* ---------- two-column sections ---------- */
.split-section, .showcase-row, .tech-hero {
    display: grid; grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.05fr);
    gap: 42px; align-items: center; padding: 120px 0 0;
}
.showcase-row.flip > :first-child { order: 2; }
.sticky-copy { align-self: start; position: sticky; top: 110px; }
.section-copy p { max-width: 540px; }
.section-copy ul { color: var(--muted); padding-left: 1.1em; }
.section-copy li { margin-bottom: 6px; }

/* ---------- cards ---------- */
.source-showcase { display: grid; gap: 16px; }
.source-card {
    position: relative; overflow: hidden; padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 35%), rgba(255, 255, 255, 0.06);
}
.source-card::after {
    content: ""; position: absolute; right: -60px; top: -70px; width: 180px; height: 180px; border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 68%); pointer-events: none;
}
.source-number { color: var(--gold); font-weight: 800; }
.source-card p { margin-bottom: 0; color: var(--muted); }

.center-copy { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.controls-section { padding: 120px 0 0; }
.control-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line);
}
.control-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.control-grid article {
    min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)), rgba(255, 255, 255, 0.045);
}
.control-grid span { color: var(--gold); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: .85rem; }
.control-grid strong { font-size: 1.08rem; line-height: 1.35; }
.control-grid p { color: var(--muted); margin: 0; font-size: .95rem; }

.tech-pill-grid {
    display: flex; flex-wrap: wrap; gap: 10px; align-content: center; min-height: 240px; padding: 34px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.055);
}

.list-panel, .virtual-display-panel {
    display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.055); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
.list-panel article, .virtual-display-panel article {
    display: grid; gap: 7px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
}
.list-panel span, .virtual-display-panel span { color: var(--gold); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.list-panel strong, .virtual-display-panel strong { font-size: 1.05rem; line-height: 1.35; }
.list-panel p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- gallery ---------- */
.gallery-section { padding: 120px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery .screenshot-card { border-radius: 22px; }
.gallery .wide { grid-column: 1 / -1; }

/* ---------- status (honest state) ---------- */
.status-section { padding: 120px 0 0; }
.status-panel {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line);
}
.status-panel > div { padding: 28px; background: rgba(255,255,255,.05); }
.status-panel h3 { display: flex; align-items: center; gap: 10px; }
.status-panel h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.status-panel .not-yet h3::before { background: var(--yellow); }
.status-panel ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.status-panel li { margin-bottom: 8px; }
.progress-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.progress-list li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 48px; gap: 12px; align-items: center; color: var(--muted); font-size: .95rem; }
.progress-list .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-list .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ember-2), var(--ember)); }
.progress-list b { color: var(--text); text-align: right; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { list-style: none; position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.05); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--gold); font-weight: 800; letter-spacing: .1em; }
.steps li p { margin: 0; color: var(--muted); font-size: .95rem; }
ol.steps { padding: 0; margin: 0; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.stat-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-row div { padding: 26px; background: rgba(255,255,255,.05); }
.stat-row strong { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; line-height: 1.05; }
.stat-row span { color: var(--muted); font-size: .92rem; }

/* ---------- specs / requirements ---------- */
.spec-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 32%; color: var(--gold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.spec-table td { color: var(--muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- repo cards ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.repo-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.05); text-decoration: none; transition: border-color 180ms ease, transform 180ms ease; }
.repo-card:hover { border-color: rgba(255,138,61,.5); transform: translateY(-2px); }
.repo-card h3 { margin: 0; }
.repo-card p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.repo-card .repo-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 120px 0 0; }
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- notice ---------- */
.notice { margin-top: 18px; padding: 14px 18px; border: 1px solid rgba(255,214,10,.28); border-radius: 16px; background: rgba(255,214,10,.06); color: var(--muted); font-size: .92rem; }
.notice strong { color: var(--text); }

/* ---------- CTA ---------- */
.download-cta {
    margin-top: 120px; padding: 52px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg);
    background: radial-gradient(120% 140% at 0% 0%, rgba(255,91,4,.14), transparent 55%), rgba(255, 255, 255, 0.065);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}
.download-cta h2 { max-width: 760px; }
.download-cta p { max-width: 680px; }
.download-cta code {
    display: inline-flex; margin-top: 22px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
    padding: 10px 14px; color: var(--gold); background: rgba(0, 0, 0, 0.28);
}

/* ---------- footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 32px 0 46px; color: var(--dim); }
.pyro-net { width: 100%; display: grid; gap: 6px; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: #86868b; }
.pyro-net a { color: #a1a1a6; text-decoration: none; }
.pyro-net a:hover { color: #f5f5f7; text-decoration: underline; }

/* ---------- reveal ---------- */
.section-reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.section-reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .section-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .section-reveal { opacity: 1; transform: none; }
    .hero-frame { transform: none; }
}

@media (max-width: 980px) {
    .hero, .split-section, .showcase-row, .tech-hero { grid-template-columns: 1fr; }
    .showcase-row.flip > :first-child { order: 0; }
    .hero { min-height: auto; padding-top: 54px; }
    .hero-frame { transform: none; }
    .sticky-copy { position: static; }
    .marquee, .control-grid, .control-grid.cols-3, .stat-row, .steps, .repo-grid { grid-template-columns: 1fr 1fr; }
    .gallery.cols-3 { grid-template-columns: 1fr 1fr; }
    .site-nav a:not(.nav-cta):not(.pyro-home) { display: none; }
}

@media (max-width: 680px) {
    section, .site-footer { width: min(100% - 24px, var(--max)); }
    .site-header { padding: 0 12px; gap: 10px; }
    .site-nav .pyro-home, .site-nav a:not(.nav-cta):not(.pyro-home) { display: none; }
    h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
    .hero { gap: 32px; padding-top: 42px; }
    .hero-actions, .download-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .product-frame { border-radius: 20px; }
    .marquee, .control-grid, .control-grid.cols-3, .control-grid.cols-2, .gallery, .gallery.cols-3,
    .status-panel, .stat-row, .stat-row.cols-3, .steps, .steps.cols-3, .repo-grid { grid-template-columns: 1fr; }
    .split-section, .showcase-row, .tech-hero, .controls-section, .gallery-section, .status-section, .faq-section { padding-top: 80px; }
    .download-cta { margin-top: 80px; padding: 28px; }
    .progress-list li { grid-template-columns: 1fr 44px; }
    .progress-list .bar { grid-column: 1 / -1; grid-row: 2; }
    .site-footer { flex-direction: column; }
}
