/*
 * Sales Execution — Velocity Theme
 * Bold, action-oriented, high-energy
 * Black + Lime + Zinc
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #09090B;
    --black-soft: #18181B;
    --black-card: #1C1C20;
    --lime: #84CC16;
    --lime-light: #A3E635;
    --lime-dark: #65A30D;
    --lime-muted: rgba(132,204,22,0.10);
    --lime-glow: rgba(132,204,22,0.25);
    --zinc-100: #F4F4F5;
    --zinc-200: #E4E4E7;
    --zinc-300: #D4D4D8;
    --zinc-400: #A1A1AA;
    --zinc-500: #71717A;
    --zinc-600: #52525B;
    --zinc-700: #3F3F46;
    --zinc-800: #27272A;
    --zinc-900: #18181B;
    --white: #FAFAFA;
    --text-primary: #1A1A1A;
    --text-secondary: #3D3D3D;
    --text-muted: #71717A;
    --border: #E4E4E7;
    --content-bg: #FAFAFA;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--content-bg);
    -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */

.velocity-nav {
    background: var(--black);
    border-bottom: 2px solid var(--lime);
    position: sticky;
    top: 0;
    z-index: 100;
}

.velocity-nav .nav-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 1.5rem;
    color: var(--lime);
    letter-spacing: -0.05em;
    line-height: 1;
}

.brand-name {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.velocity-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.velocity-nav .nav-links li a {
    display: block;
    padding: 1rem 1.15rem;
    color: var(--zinc-400);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.velocity-nav .nav-links li a:hover {
    color: var(--lime-light);
    border-bottom-color: var(--lime);
}

.velocity-nav .nav-links li.active a {
    color: var(--lime);
    border-bottom-color: var(--lime);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--zinc-700);
    cursor: pointer;
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--zinc-400);
    transition: background 0.15s;
}

.nav-toggle:hover span {
    background: var(--lime);
}

/* === HERO — VELOCITY STYLE === */

.velocity-hero {
    background: var(--black);
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Speed lines — diagonal gradient streaks */
.hero-speed-lines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(132,204,22,0.03) 60px,
            rgba(132,204,22,0.03) 62px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 120px,
            rgba(132,204,22,0.05) 120px,
            rgba(132,204,22,0.05) 123px
        );
    pointer-events: none;
}

.velocity-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--lime) 30%, var(--lime-light) 50%, var(--lime) 70%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--lime);
    padding: 0.3rem 1rem;
    margin-bottom: 1.25rem;
}

.velocity-hero h1 {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.hero-accent {
    color: var(--lime);
}

.hero-deck {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--zinc-400);
    max-width: 36rem;
    margin: 0 auto;
}

.hero-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--zinc-500);
}

.hero-breadcrumb a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.bc-sep {
    margin: 0 0.4rem;
    color: var(--zinc-600);
}

.bc-current {
    color: var(--zinc-400);
}

/* Hero stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--zinc-800);
}

.stat-block {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 2.25rem;
    color: var(--lime);
    line-height: 1;
    letter-spacing: 0.02em;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--zinc-500);
    margin-top: 0.35rem;
}

/* Hero variants — subtle differentiation */
.landscape-hero { padding: 3rem 1.5rem 2.5rem; }
.compare-hero { padding: 3rem 1.5rem 2.5rem; }
.comparison-hero { padding: 2.5rem 1.5rem 2rem; }
.glossary-index-hero { padding: 3rem 1.5rem 2.5rem; }
.glossary-entry-hero { padding: 2.5rem 1.5rem 2rem; }
.about-hero { padding: 3rem 1.5rem 2.5rem; }

.comparison-hero h1,
.glossary-entry-hero h1 {
    font-size: 2.5rem;
}

/* === CONTENT === */

.content-wrap {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

/* === TYPOGRAPHY === */

.content h1 {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.content h2 {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.15;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--lime);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.content h3 {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black-soft);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--zinc-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.content a {
    color: var(--lime-dark);
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.15s;
}

.content a:hover {
    color: var(--black);
}

.content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--lime) 0%, transparent 100%);
    margin: 2.5rem 0;
}

/* === LISTS === */

.content ul, .content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content li strong {
    color: var(--text-primary);
}

/* === TABLES === */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    display: block;
}

.content thead th {
    background: var(--black);
    color: var(--lime);
    font-weight: 700;
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-family: 'Source Sans 3', sans-serif;
}

.content tbody td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--zinc-200);
    vertical-align: top;
    background: var(--white);
}

.content tbody tr:hover td {
    background: var(--lime-muted);
}

.content tbody tr:last-child td {
    border-bottom: 3px solid var(--black);
}

.content tbody td:first-child {
    font-weight: 700;
    color: var(--black);
}

/* Harvey ball alignment */
.content td:not(:first-child),
.content th:not(:first-child) {
    text-align: center;
}

/* === HARVEY BALL SPRITE === */
/* SVG sprite strip: 5 balls at 24px cells = 120x24 */
/* Black stroke (#09090B), lime fill (#84CC16) */

.hb {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxMjAgMjQiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkFGQUZBIi8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzA5MDkwQiIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMzYiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGQUZBRkEiLz48cGF0aCBkPSJNMzYsMTIgTDM2LDIgQTEwLDEwIDAgMCwxIDQ2LDEyIFoiIGZpbGw9IiM4NENDMTYiLz48Y2lyY2xlIGN4PSIzNiIgY3k9IjEyIiByPSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDkwOTBCIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSI2MCIgY3k9IjEyIiByPSIxMCIgZmlsbD0iI0ZBRkFGQSIvPjxwYXRoIGQ9Ik02MCwxMiBMNjAsMiBBMTAsMTAgMCAwLDEgNjAsMjIgWiIgZmlsbD0iIzg0Q0MxNiIvPjxjaXJjbGUgY3g9IjYwIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwOTA5MEIiIHN0cm9rZS13aWR0aD0iMiIvPjxjaXJjbGUgY3g9Ijg0IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkFGQUZBIi8+PHBhdGggZD0iTTg0LDEyIEw4NCwyIEExMCwxMCAwIDEsMSA3NCwxMiBaIiBmaWxsPSIjODRDQzE2Ii8+PGNpcmNsZSBjeD0iODQiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzA5MDkwQiIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjODRDQzE2Ii8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwOTA5MEIiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-size: 110px 22px;
    vertical-align: middle;
    position: relative;
}

.hb-1 { background-position: 0 0; }
.hb-2 { background-position: -22px 0; }
.hb-3 { background-position: -44px 0; }
.hb-4 { background-position: -66px 0; }
.hb-5 { background-position: -88px 0; }

.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;
}

/* === BLOCKQUOTES === */

.content blockquote {
    border-left: 4px solid var(--lime);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--black);
    color: var(--zinc-300);
    font-style: italic;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content blockquote strong {
    font-style: normal;
    color: var(--lime);
}

/* === CODE === */

.content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.83em;
    background: var(--zinc-200);
    padding: 0.15em 0.4em;
    border-radius: 0.2rem;
    color: var(--text-primary);
}

.content pre {
    background: var(--black);
    color: var(--lime-light);
    padding: 1.25rem 1.5rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--lime);
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* === GLOSSARY INDEX GRID === */

.glossary-index ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}

.glossary-index ul li {
    margin-bottom: 0;
}

.glossary-index ul li a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-left: 3px solid var(--lime);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.glossary-index ul li a:hover {
    background: var(--lime-muted);
    border-left-color: var(--lime-dark);
}

/* === GLOSSARY ENTRY === */

.glossary-entry h2 {
    border-bottom-color: var(--lime);
}

/* === COMPARISON DETAIL TABLES === */

.comparison-detail table {
    border: 1px solid var(--zinc-200);
}

.compare-index ul {
    list-style: none;
    padding-left: 0;
}

.compare-index ul li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--zinc-200);
}

.compare-index ul li:last-child {
    border-bottom: none;
}

/* === FOOTER === */

.velocity-footer {
    background: var(--black);
    color: var(--zinc-500);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 3px solid var(--lime);
    position: relative;
}

.velocity-footer::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--lime-glow) 50%, transparent 100%);
}

.footer-inner {
    max-width: 48rem;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-brand .brand-icon {
    color: var(--lime);
    margin-right: 0.25rem;
}

.footer-disclosure {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.footer-edition {
    font-size: 0.72rem;
    color: var(--zinc-600);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    html { font-size: 16px; }

    .nav-toggle {
        display: flex;
    }

    .velocity-nav .nav-links {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        border-bottom: 2px solid var(--lime);
        padding: 0.5rem 0;
    }

    .velocity-nav .nav-links.open {
        display: flex;
    }

    .velocity-nav .nav-inner {
        position: relative;
    }

    .velocity-nav .nav-links li a {
        text-align: center;
        padding: 0.65rem 1rem;
        border-bottom: none;
        margin-bottom: 0;
    }

    .velocity-hero { padding: 2.5rem 1rem 2rem; }
    .velocity-hero h1 { font-size: 2.25rem; }
    .comparison-hero h1,
    .glossary-entry-hero h1 { font-size: 1.85rem; }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-value { font-size: 1.75rem; }

    .content-wrap { padding: 1.5rem 1rem 3rem; }

    .glossary-index ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .velocity-hero h1 { font-size: 1.85rem; }
    .comparison-hero h1,
    .glossary-entry-hero h1 { font-size: 1.5rem; }
    .hero-deck { font-size: 0.95rem; }
    .content h1 { font-size: 1.75rem; }
    .content h2 { font-size: 1.35rem; }

    .hero-stats { gap: 1rem; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
}
