/* Scoreboard Publisher — public website styles.
 * Dark, FGC-energy aesthetic. Orange accent on near-black canvas with subtle
 * grid texture. System fonts, mono accents on code. */

* { box-sizing: border-box; }
:root {
    --bg:           #0b0e14;
    --bg-surface:   #13161f;
    --bg-elev:      #1a1e2a;
    --border:       #252a36;
    --border-soft:  #1d2230;
    --text:         #e8e6e1;
    --text-muted:   #8b909c;
    --text-dim:     #5a6070;
    --accent:       #ff5b1c;
    --accent-hi:    #ff7a3d;
    --accent-dim:   rgba(255,91,28,0.12);
    --accent-glow:  rgba(255,91,28,0.4);
    --code-bg:      #0e1119;
    --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
    --font-mono:    ui-monospace, "SF Mono", Menlo, Monaco, "JetBrains Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    /* Subtle grid texture + orange spotlight upper-left for hero pages.
     * Background-attachment fixed gives a slight parallax feel. */
    background-image:
        radial-gradient(ellipse 70% 50% at 0% 0%, var(--accent-dim), transparent 70%),
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 100% 100%, 56px 56px, 56px 56px;
    background-position: 0 0, 0 0, 0 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Top nav: backdrop-blurred sticky bar --- */
header.site-nav {
    background: rgba(11, 14, 20, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
header.site-nav .brand {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
header.site-nav .brand::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    display: inline-block;
}
header.site-nav .brand .accent { color: var(--accent); }
header.site-nav nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
header.site-nav nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s;
}
header.site-nav nav a:hover { color: var(--text); }
header.site-nav nav a.active { color: var(--accent); }

/* --- Main content wrapper --- */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 28px 96px;
    position: relative;
}
main.narrow { max-width: 760px; }

/* --- Headings --- */
h1, h2, h3 {
    color: var(--text);
    letter-spacing: -0.02em;
    font-weight: 800;
}
h1 { font-size: 38px; line-height: 1.1; margin: 0 0 16px; }
h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 56px 0 18px;
    position: relative;
    padding-left: 14px;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent);
}
h3 { font-size: 16px; margin: 28px 0 8px; }
p.meta {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 28px;
    font-family: var(--font-mono);
    letter-spacing: 0;
}

p { color: var(--text); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hi); text-decoration: underline; }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

/* --- Hero --- */
.hero {
    padding: 80px 28px 72px;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero .hero-text { max-width: 540px; }
.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hi) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.tagline {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 28px;
}
.hero .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0a0a0a;
    padding: 13px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
    border: 1px solid var(--accent);
}
.hero .cta:hover {
    background: var(--accent-hi);
    color: #0a0a0a;
    text-decoration: none;
    transform: translateY(-1px);
}
.hero .cta.secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.hero .cta.secondary:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--text);
    transform: translateY(-1px);
}

/* Hero right column: code mockup showing a caption template render. */
.hero-mockup {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6),
                0 0 0 1px rgba(255,91,28,0.05);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
}
.hero-mockup .mockup-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.hero-mockup .mockup-bar .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.5;
}
.hero-mockup .mockup-bar .label {
    margin-left: 8px;
    font-size: 11px;
    color: var(--text-muted);
}
.hero-mockup .mockup-body {
    padding: 18px 18px 20px;
    color: var(--text-muted);
}
.hero-mockup .mockup-body .comment { color: var(--text-dim); }
.hero-mockup .mockup-body .var {
    color: var(--accent);
    font-weight: 500;
}
.hero-mockup .mockup-body .arrow { color: var(--text-dim); }
.hero-mockup .mockup-body .out {
    color: var(--text);
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.hero-mockup .mockup-body .hashtag { color: var(--accent); }

/* --- Sections --- */
section.divider {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border-soft);
}

/* --- Feature cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 28px 0 16px;
}
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 22px 24px;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-elev);
    transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
    font-size: 22px;
    margin-bottom: 12px;
    display: inline-block;
    width: 40px; height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 6px;
}
.feature-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}
.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* --- Numbered steps --- */
ol.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 32px 0;
    position: relative;
}
ol.steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--border);
}
ol.steps li {
    counter-increment: step;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 24px 18px 64px;
    margin-bottom: 12px;
    position: relative;
    transition: border-color 0.15s;
}
ol.steps li:hover { border-color: var(--accent); }
ol.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: -1px;
    top: -1px;
    width: 40px;
    height: calc(100% + 2px);
    background: var(--bg-elev);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    border-right: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
}
ol.steps li:hover::before { border-right-color: var(--accent); }
ol.steps li h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text);
}
ol.steps li p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
ol.steps li code { background: var(--code-bg); }

/* --- FAQ --- */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.faq-item:hover {
    border-color: var(--accent);
    background: var(--bg-elev);
}
.faq-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-item h3::before {
    content: "?";
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 800;
    flex-shrink: 0;
}
.faq-item p {
    margin: 0 0 0 22px;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Platform pills --- */
.platforms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.platforms .pill {
    background: var(--bg-elev);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}
th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th {
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
td { color: var(--text-muted); }

/* --- Code --- */
code {
    background: var(--code-bg);
    color: var(--accent-hi);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid var(--border);
}

/* --- Screenshot placeholder --- */
.screenshot {
    display: block;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}
.screenshot-placeholder {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-dim);
    margin: 24px 0;
    font-size: 13px;
    font-family: var(--font-mono);
}

/* --- Footer --- */
footer.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
footer.site-footer nav {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
footer.site-footer nav a {
    color: var(--text-muted);
    text-decoration: none;
}
footer.site-footer nav a:hover { color: var(--accent); text-decoration: none; }
footer.site-footer p { margin: 0; color: var(--text-dim); }
footer.site-footer p a { color: var(--text-muted); }
footer.site-footer p a:hover { color: var(--accent); }

/* --- CTA section in middle of pages --- */
.cta-callout {
    text-align: center;
    margin: 56px 0 16px;
    padding: 32px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.cta-callout::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-dim), transparent 60%);
    pointer-events: none;
}
.cta-callout > * { position: relative; }
.cta-callout p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 15px;
}
.cta-callout .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0a0a0a;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--accent);
}
.cta-callout .cta:hover {
    background: var(--accent-hi);
    color: #0a0a0a;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 48px 24px 56px;
        gap: 36px;
    }
    .hero h1 { font-size: 38px; }
    .hero p.tagline { font-size: 15px; }
}
@media (max-width: 640px) {
    header.site-nav { padding: 12px 18px; gap: 12px; }
    header.site-nav nav { gap: 14px; }
    header.site-nav nav a { font-size: 13px; }
    main { padding: 32px 18px 64px; }
    h1 { font-size: 28px; }
    h2 { font-size: 20px; margin-top: 40px; }
    .hero { padding: 40px 18px 40px; }
    .hero h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    ol.steps li { padding: 16px 18px 16px 56px; }
    ol.steps li::before { width: 36px; }
    body { background-size: 100% 100%, 36px 36px, 36px 36px; }
}
