/* Dark Cyberpunk Theme - Cyber Crimson & Neon Coral Opera Palette */
:root {
    color-scheme: dark;
    --bg: #0d0b12;
    --bg-head: #09070d;
    --bg-deep: #050408;
    --bg-panel: #16121f;
    --bg-panel-2: #211b2e;
    --border: #352b47;
    --line: rgba(255, 71, 87, 0.2);
    --accent: #ff4757;
    --accent-dark: #d63031;
    --accent-wash: rgba(255, 71, 87, 0.12);
    --violet: #a55eea;
    --violet-shade: #8854d0;
    --amber: #ffa502;
    --text: #f8f9fa;
    --text-muted: #a4b0be;
    --success: #2ed573;
    --shadow-ink: rgba(5, 4, 8, 0.85);
    --shadow-card: 0 20px 40px -16px var(--shadow-ink), 0 2px 0 rgba(255, 71, 87, 0.15);
    --shadow-btn: 0 4px 0 var(--accent-dark), 0 16px 32px -10px rgba(255, 71, 87, 0.45);
    --shadow-btn-hover: 0 6px 0 var(--accent-dark), 0 20px 36px -10px rgba(255, 71, 87, 0.6);
    --r-card: 8px;
    --r-btn: 8px;
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Film Grain Texture */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wrap {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
}

/* Header */
.site-header {
    min-height: 68px;
    background: rgba(9, 7, 13, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 6px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.35);
}

.brand-name {
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
}

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.primary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.primary-nav a:hover, .primary-nav a.active {
    color: var(--accent);
}

.header-btn {
    background: var(--accent);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--r-btn);
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.35);
}

.header-btn:hover {
    background: #ff6b81;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 56px 0 44px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    gap: 40px;
    align-items: center;
}

.eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.eyebrow-bar {
    width: 14px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
}

.hero-title {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.ht-key {
    background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lede {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 24px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-panel-2);
    border-color: var(--line);
}

.get-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Neon Facts */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin-bottom: 20px;
}

.fact {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

.fact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.fact-dot--violet {
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
}

.fact-dot--amber {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

/* Platform strip */
.platforms {
    margin-top: 14px;
}

.devices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.device {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.device:hover {
    color: var(--accent);
    background: var(--accent-wash);
}

.device svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* Right Hero Stage */
.stage-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
}

.stage-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stage-badge {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.stage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.stage-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.stage-table td:first-child {
    color: var(--text-muted);
    font-weight: 600;
    width: 110px;
}

/* Section */
.section {
    padding: 58px 0;
    border-top: 1px solid var(--border);
}

.kicker {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section h2 {
    font-size: 27px;
    font-weight: 900;
    margin: 8px 0 12px 0;
}

.home-section-lede {
    color: var(--text-muted);
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Config Tabs */
.config-tabs {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-btn {
    text-align: left;
    background: transparent;
    border: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: var(--bg-panel-2);
    color: var(--text);
}

.tab-btn.active {
    background: var(--bg-panel-2);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.tab-panel {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px;
}

.panel-badge {
    background: var(--accent-wash);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.tab-panel h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.tab-panel p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.tab-panel pre {
    background: #08060c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
    padding: 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
}

/* Reference Grid */
.home-reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 36px;
}

.home-reference {
    border-top: 2px solid var(--violet);
    padding-top: 22px;
}

.home-reference h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.home-reference p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Device Cards Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.device-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.device-card svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.device-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.device-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.text-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* Verification Facts */
.home-verification {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 36px;
}

.verification-facts {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.verification-facts img {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.verification-facts dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.verification-facts dt {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.verification-facts dd {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
}

/* FAQ Accordion */
.faq-wrap {
    margin-top: 28px;
}

.faq-wrap h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.faq-item {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 18px 14px 18px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.art-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.art-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.art-card h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.art-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Download Page */
.download-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 44px;
    max-width: 820px;
    margin: 44px auto;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.download-card h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
}

.download-spec-table {
    width: 100%;
    margin: 24px 0 32px 0;
    border-collapse: collapse;
    text-align: left;
}

.download-spec-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.download-spec-table td:first-child {
    color: var(--text-muted);
    font-weight: 700;
    width: 120px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 34px 0;
    font-size: 13.5px;
    color: var(--text-muted);
    background: var(--bg-head);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

/* Responsive */
@media (max-width: 860px) {
    .site-header {
        height: auto;
    }
    .masthead-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .brand-sub {
        display: none;
    }
    .primary-nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .config-tabs {
        grid-template-columns: 1fr;
    }
    .home-reference-grid, .device-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    .verification-facts dl {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
