/* ═══════════════════════════════════════════════════
   TrackForcePro Docs — SLDS-Inspired Design System v2
   Salesforce Lightning + Dark Mode Support
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Salesforce+Sans:wght@400;500;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Light Theme Variables (SLDS-inspired) ── */
:root {
    /* Salesforce Brand Colors */
    --slds-brand: #0176d3;
    --slds-brand-dark: #014486;
    --slds-brand-light: #1b96ff;
    --slds-brand-accessible: #0070d2;
    --slds-nav-bg: #032d60;
    --slds-nav-text: #ffffff;

    /* Semantic Colors */
    --primary: #0176d3;
    --primary-dark: #014486;
    --primary-hover: #015ba7;
    --primary-light: #1b96ff;
    --accent: #06b6d4;
    --success: #2e844a;
    --success-light: #45c65a;
    --warning: #fe9339;
    --danger: #ea001e;
    --info: #16325c;

    /* Medal Colors */
    --gold: #f59e0b;
    --silver: #94a3b8;
    --bronze: #d97706;

    /* Surface & Background */
    --bg: #f3f3f3;
    --bg-alt: #f9f9f9;
    --card-bg: #ffffff;
    --card-bg-hover: #f9f9f9;
    --surface-raised: #ffffff;

    /* Text */
    --text: #181818;
    --text-secondary: #444444;
    --text-muted: #706e6b;
    --text-inverse: #ffffff;
    --text-link: #0070d2;

    /* Borders & Dividers */
    --border: #dddbda;
    --border-light: #e5e5e5;
    --border-strong: #c9c9c9;

    /* Shadows (SLDS-style) */
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
    --shadow-focus: 0 0 0 3px rgba(1, 118, 211, 0.4);

    /* Radii */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index layers */
    --z-nav: 100;
    --z-modal: 200;
    --z-toast: 300;
}

/* ── Dark Theme Variables ── */
[data-theme='dark'] {
    --slds-nav-bg: #0d1117;
    --slds-nav-text: #e6e6e6;

    --primary: #1b96ff;
    --primary-dark: #0176d3;
    --primary-hover: #45b3ff;
    --primary-light: #57cbff;
    --accent: #22d3ee;
    --success: #45c65a;
    --success-light: #6ee77a;
    --warning: #fbb449;
    --danger: #ff5d5d;
    --info: #93c5fd;

    --bg: #0d1117;
    --bg-alt: #161b22;
    --card-bg: #1c2128;
    --card-bg-hover: #242b35;
    --surface-raised: #21262d;

    --text: #e6e6e6;
    --text-secondary: #b0b0b0;
    --text-muted: #8b949e;
    --text-inverse: #0d1117;
    --text-link: #58a6ff;

    --border: #30363d;
    --border-light: #21262d;
    --border-strong: #484f58;

    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
    --shadow-focus: 0 0 0 3px rgba(27, 150, 255, 0.4);
}

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

/* ── Base ── */
body {
    font-family:
        'Inter',
        'Salesforce Sans',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background var(--transition-normal),
        color var(--transition-normal);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════
   NAVIGATION — SLDS Global Header Style
   ══════════════════════════════════════════ */
.site-nav {
    background: var(--slds-nav-bg);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme='dark'] .site-nav {
    border-bottom-color: var(--primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.site-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 24px;
    overflow-x: auto;
}

/* Hide scrollbar on nav */
.site-nav-inner::-webkit-scrollbar {
    display: none;
}
.site-nav-inner {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
    white-space: nowrap;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.site-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.site-nav a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.theme-toggle .theme-icon {
    font-size: 16px;
    line-height: 1;
}
.theme-toggle .theme-label {
    font-size: 12px;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   HERO SECTION — SLDS Brand Band
   ══════════════════════════════════════════ */
.site-hero {
    background: linear-gradient(135deg, #032d60 0%, #0176d3 60%, #1b96ff 100%);
    color: white;
    padding: 60px 24px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme='dark'] .site-hero {
    background: linear-gradient(135deg, #0d1117 0%, #0b2645 50%, #0176d3 100%);
}

.site-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(27, 150, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated grid pattern */
.site-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.site-hero > * {
    position: relative;
    z-index: 1;
}

.site-hero .hero-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.site-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

.site-hero .version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   LAYOUT CONTAINERS
   ══════════════════════════════════════════ */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
}

.site-container.narrow {
    max-width: 940px;
}

/* ══════════════════════════════════════════
   CARD GRID — SLDS Card Pattern
   ══════════════════════════════════════════ */
.site-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.site-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition:
        transform var(--transition-spring),
        box-shadow var(--transition-normal),
        border-color var(--transition-fast);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.site-card:hover::before {
    opacity: 1;
}

.site-card .card-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.site-card h2,
.site-card h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ══════════════════════════════════════════
   BADGES — SLDS Badge Pattern
   ══════════════════════════════════════════ */
.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
}

.site-badge.primary {
    background: #d8edff;
    color: #014486;
}
.site-badge.success {
    background: #cdefc8;
    color: #194e31;
}
.site-badge.warning {
    background: #fce4b6;
    color: #6b3b04;
}
.site-badge.accent {
    background: #cffafe;
    color: #0e7490;
}
.site-badge.fun {
    background: #fce7f3;
    color: #9d174d;
}

[data-theme='dark'] .site-badge.primary {
    background: rgba(27, 150, 255, 0.2);
    color: #58a6ff;
}
[data-theme='dark'] .site-badge.success {
    background: rgba(69, 198, 90, 0.2);
    color: #6ee77a;
}
[data-theme='dark'] .site-badge.warning {
    background: rgba(251, 180, 73, 0.2);
    color: #fbb449;
}
[data-theme='dark'] .site-badge.accent {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}
[data-theme='dark'] .site-badge.fun {
    background: rgba(252, 231, 243, 0.15);
    color: #f472b6;
}

/* ══════════════════════════════════════════
   SECTION CARD — Content Sections
   ══════════════════════════════════════════ */
.site-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 24px 0;
    box-shadow: var(--shadow);
    transition:
        background var(--transition-normal),
        border-color var(--transition-normal);
}

.site-section-title {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════
   TABLES — SLDS Data Table
   ══════════════════════════════════════════ */
.site-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.site-table thead {
    background: var(--bg);
}

[data-theme='dark'] .site-table thead {
    background: var(--bg-alt);
}

.site-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.site-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-secondary);
}

.site-table tbody tr {
    transition: background var(--transition-fast);
}

.site-table tbody tr:hover td {
    background: var(--card-bg-hover);
}

.site-table tbody tr:last-child td {
    border-bottom: none;
}

.site-table td a {
    color: var(--text-link);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   FEATURE GRID
   ══════════════════════════════════════════ */
.site-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.site-feature-item {
    background: var(--bg-alt);
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.site-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.site-feature-item h4 {
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-feature-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ══════════════════════════════════════════
   BUTTONS — SLDS Button Pattern
   ══════════════════════════════════════════ */
.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.site-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.site-btn:active {
    transform: translateY(0);
}

.site-btn-primary {
    background: var(--slds-brand);
    color: white;
    box-shadow: 0 2px 8px rgba(1, 118, 211, 0.25);
}
.site-btn-primary:hover {
    background: var(--slds-brand-dark);
    box-shadow: 0 4px 14px rgba(1, 118, 211, 0.35);
    color: white;
}

.site-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.site-btn-outline:hover {
    background: var(--primary);
    color: white;
}

.site-btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 132, 74, 0.25);
}
.site-btn-success:hover {
    background: #236b3a;
    color: white;
}

.site-btn-pill {
    border-radius: var(--radius-pill);
}
.site-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   BROWSER AVAILABILITY COMPONENT
   ══════════════════════════════════════════ */
.browser-availability {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.browser-availability.compact {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.browser-store-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.browser-store-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.browser-store-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    /* Keep container neutral so inline SVGs render using their own brand colors */
    background: transparent;
    box-shadow: none;
}

/* Remove the translucent inner overlay so official logo colors remain intact */
.browser-store-icon::before {
    content: none;
}

.browser-store-icon svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: block;
    overflow: visible;
    /* avoid filter effects that alter official logo colors */
    filter: none;
}

/* Explicitly avoid forcing brand-like background gradients so logos appear original */
.browser-store-icon.chrome,
.browser-store-icon.firefox,
.browser-store-icon.edge {
    background: transparent;
}

.browser-store-copy {
    min-width: 0;
}

.browser-store-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.browser-store-meta {
    display: block;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.browser-store-card .site-badge {
    flex-shrink: 0;
}

.browser-store-card.is-link {
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.browser-store-card.is-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.browser-store-card.is-placeholder {
    opacity: 0.82;
}

[data-theme='dark'] .browser-store-card {
    background: var(--surface-raised);
}

[data-theme='dark'] .browser-store-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .browser-store-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════
   CALLOUT BOXES — SLDS Scoped Notification
   ══════════════════════════════════════════ */
.site-highlight {
    background: linear-gradient(135deg, #d8edff, #e8f4ff);
    border: 1px solid #b0d4f1;
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 20px 0;
}

[data-theme='dark'] .site-highlight {
    background: rgba(27, 150, 255, 0.08);
    border-color: rgba(27, 150, 255, 0.25);
}

.site-tip {
    background: linear-gradient(135deg, #e3f8e8, #f0fdf4);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme='dark'] .site-tip {
    background: rgba(69, 198, 90, 0.08);
    border-left-color: var(--success);
}

.site-warning {
    background: linear-gradient(135deg, #fff5e6, #fef3c7);
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme='dark'] .site-warning {
    background: rgba(251, 180, 73, 0.08);
    border-left-color: var(--warning);
}

/* ══════════════════════════════════════════
   FOOTER — SLDS-style Footer
   ══════════════════════════════════════════ */
.site-footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    border-top: 2px solid var(--border);
    margin-top: 56px;
    font-size: 0.85rem;
    background: var(--bg-alt);
    transition:
        background var(--transition-normal),
        border-color var(--transition-normal);
}

.site-footer a {
    color: var(--text-link);
    font-weight: 600;
}

.site-footer .footer-links {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer .footer-links .sep {
    color: var(--border-strong);
}

.site-footer .footer-social {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.82rem;
}

.site-footer .footer-social .sep {
    color: var(--border-strong);
}

.site-footer .footer-copy {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ══════════════════════════════════════════
   VERSION SELECTOR
   ══════════════════════════════════════════ */
.site-version-select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.site-version-select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.site-hero .site-version-select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.site-hero .site-version-select option {
    color: #333;
    background: white;
}

/* ══════════════════════════════════════════
   CHANGELOG
   ══════════════════════════════════════════ */
.site-changelog h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-changelog h4:first-child {
    margin-top: 0;
}

.site-changelog h4::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.site-changelog ul {
    list-style: none;
    padding: 0;
}

.site-changelog li {
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.site-changelog li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
}

/* ══════════════════════════════════════════
   KEYBOARD SHORTCUT — KBD
   ══════════════════════════════════════════ */
kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.82em;
    color: var(--text-secondary);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] kbd {
    background: var(--surface-raised);
    border-color: var(--border-strong);
}

/* ══════════════════════════════════════════
   CODE
   ══════════════════════════════════════════ */
code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.85em;
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

[data-theme='dark'] code {
    background: var(--surface-raised);
    color: var(--primary-light);
    border-color: var(--border);
}

/* ══════════════════════════════════════════
   FAQ — Accordion-style
   ══════════════════════════════════════════ */
.site-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    transition: padding var(--transition-fast);
}

.site-faq-item:last-child {
    border-bottom: none;
}

.site-faq-question {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.95rem;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-faq-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.site-faq-answer {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 32px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   CONTACT CARD
   ══════════════════════════════════════════ */
.site-contact {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 24px;
    box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out both;
}
.animate-in:nth-child(2) {
    animation-delay: 0.06s;
}
.animate-in:nth-child(3) {
    animation-delay: 0.12s;
}
.animate-in:nth-child(4) {
    animation-delay: 0.18s;
}
.animate-in:nth-child(5) {
    animation-delay: 0.24s;
}
.animate-in:nth-child(6) {
    animation-delay: 0.3s;
}

/* Scroll-triggered animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .site-hero h1 {
        font-size: 1.8rem;
    }
    .site-hero {
        padding: 44px 20px 40px;
    }
    .site-nav-inner {
        padding: 0 12px;
        gap: 0;
    }
    .site-container {
        padding: 24px 16px;
    }
    .site-section {
        padding: 20px;
    }
    .site-card {
        padding: 22px;
    }
    .theme-toggle .theme-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-hero h1 {
        font-size: 1.4rem;
    }
    .site-card-grid {
        grid-template-columns: 1fr;
    }
    .site-feature-grid {
        grid-template-columns: 1fr;
    }
    .site-nav a {
        padding: 12px 10px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════ */
@media print {
    .site-nav,
    .no-print,
    .theme-toggle {
        display: none;
    }
    .site-hero {
        background: #0176d3 !important;
    }
    .site-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    body {
        background: white;
        color: black;
    }
}

/* ══════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════ */
.text-center {
    text-align: center;
}
.text-muted {
    color: var(--text-muted);
}
.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 8px;
}
.mt-2 {
    margin-top: 16px;
}
.mt-3 {
    margin-top: 24px;
}
.mt-4 {
    margin-top: 32px;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 8px;
}
.mb-2 {
    margin-bottom: 16px;
}
.mb-3 {
    margin-bottom: 24px;
}
.gap-1 {
    gap: 8px;
}
.gap-2 {
    gap: 16px;
}
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-wrap {
    flex-wrap: wrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
