/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2a45;
    --bg-surface: rgba(30, 41, 72, 0.6);
    --bg-glass: rgba(17, 24, 39, 0.7);

    /* Accent colors */
    --accent-blue: #3B82F6;
    --accent-indigo: #6366F1;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-teal: #14B8A6;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-emerald: #10B981;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --grad-warm: linear-gradient(135deg, #F59E0B 0%, #F43F5E 100%);
    --grad-cool: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --grad-success: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
    --grad-hero: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.15) 50%, rgba(6,182,212,0.1) 100%);

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #93C5FD;

    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-active: rgba(59, 130, 246, 0.4);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(59,130,246,0.15);

    /* Spacing */
    --container-max: 1280px;
    --nav-height: 72px;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--nav-height);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon svg {
    width: 38px;
    height: 38px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
}

.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.12);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== MAIN CONTENT ===== */
#app {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

.page-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 24px 80px;
    animation: fadeInUp 0.5s ease forwards;
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.15); }
    50% { box-shadow: 0 0 40px rgba(59,130,246,0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(6,182,212,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.btn-download {
    background: rgba(16,185,129,0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16,185,129,0.25);
}

.btn-download:hover {
    background: rgba(16,185,129,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16,185,129,0.2);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-icon.blue { background: rgba(59,130,246,0.15); }
.card-icon.purple { background: rgba(139,92,246,0.15); }
.card-icon.cyan { background: rgba(6,182,212,0.15); }
.card-icon.amber { background: rgba(245,158,11,0.15); }
.card-icon.rose { background: rgba(244,63,94,0.15); }
.card-icon.emerald { background: rgba(16,185,129,0.15); }
.card-icon.teal { background: rgba(20,184,166,0.15); }

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: 10px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header .overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 680px;
}

/* ===== FAQ / ACCORDION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-active);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(59,130,246,0.04);
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-answer-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.faq-answer-content li {
    margin-bottom: 4px;
}

/* ===== TABLES ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: rgba(59,130,246,0.08);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.data-table tbody tr:hover {
    background: rgba(59,130,246,0.04);
}

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

/* ===== INFO BOXES ===== */
.info-box {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    border-left: 4px solid;
}

.info-box.note {
    background: rgba(59,130,246,0.08);
    border-color: var(--accent-blue);
    color: var(--text-secondary);
}

.info-box.warning {
    background: rgba(245,158,11,0.08);
    border-color: var(--accent-amber);
    color: var(--text-secondary);
}

.info-box.critical {
    background: rgba(244,63,94,0.08);
    border-color: var(--accent-rose);
    color: var(--text-secondary);
}

.info-box.success {
    background: rgba(16,185,129,0.08);
    border-color: var(--accent-emerald);
    color: var(--text-secondary);
}

.info-box strong {
    color: var(--text-primary);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.timeline-item:hover {
    border-color: var(--border-active);
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.timeline-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.timeline-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.timeline-tag.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.timeline-tag.amber { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.timeline-tag.emerald { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.timeline-tag.rose { background: rgba(244,63,94,0.15); color: var(--accent-rose); }

/* ===== STAT CARDS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.stat-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== DOWNLOAD SECTION ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: var(--accent-emerald);
    background: rgba(16,185,129,0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(16,185,129,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.download-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.download-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== STEPS ===== */
.steps {
    counter-reset: step-counter;
    margin: 28px 0;
}

.step {
    counter-increment: step-counter;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.step:last-child { border-bottom: none; }

.step::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    margin: 20px 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
    content: '☐';
    font-size: 1rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== TAGS ===== */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.tag-blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.tag-purple { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
.tag-cyan { background: rgba(6,182,212,0.12); color: var(--accent-cyan); }
.tag-amber { background: rgba(245,158,11,0.12); color: var(--accent-amber); }
.tag-rose { background: rgba(244,63,94,0.12); color: var(--accent-rose); }
.tag-emerald { background: rgba(16,185,129,0.12); color: var(--accent-emerald); }

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 28px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(59,130,246,0.06);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(59,130,246,0.12);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 48px;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(59,130,246,0.2);
    display: inline-block;
}

.content-section > p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
}

/* ===== COMPARISON TABLE ===== */
.comparison-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.comparison-row:hover {
    border-color: var(--border-active);
}

.comparison-row .label {
    padding: 14px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-row .old {
    padding: 14px 18px;
    font-size: 0.875rem;
    color: var(--accent-rose);
    text-decoration: line-through;
    background: rgba(244,63,94,0.04);
    text-align: center;
    min-width: 100px;
}

.comparison-row .new {
    padding: 14px 18px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16,185,129,0.04);
    text-align: center;
    min-width: 100px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-bottom .disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-style: italic;
}

/* ===== SEARCH ===== */
.search-bar {
    position: relative;
    max-width: 500px;
    margin: 24px auto 40px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-subtle);
        gap: 4px;
    }

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

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-row .old,
    .comparison-row .new {
        text-align: left;
    }

    .page-container {
        padding: 20px 16px 60px;
    }

    .tabs {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        aspect-ratio: auto;
        padding: 32px 20px;
    }
}

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.flow-step .flow-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.flow-step .flow-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.flow-step .flow-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
}

.flow-arrow {
    color: var(--accent-blue);
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===== PROVISION BADGE ===== */
.provision-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(99,102,241,0.12);
    color: var(--accent-indigo);
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== SEPARATOR ===== */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 40px 0;
}

/* ===== BADGE LIST ===== */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.badge:hover {
    border-color: var(--border-active);
    color: var(--text-primary);
}

.badge .emoji {
    font-size: 0.9rem;
}


/* ===== LIGHT THEME VARIABLES ===== */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #94a3b8;
    --text-accent: #1d4ed8;

    --border-subtle: rgba(148, 163, 184, 0.3);
    --border-active: rgba(59, 130, 246, 0.6);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    
    --grad-hero: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(139,92,246,0.05) 50%, rgba(6,182,212,0.03) 100%);
}

/* Base Light Theme Adjustments */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}
[data-theme="light"] .mobile-toggle span {
    background: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover {
    color: var(--accent-amber);
    transform: rotate(15deg);
}
[data-theme="light"] .theme-toggle:hover {
    color: var(--accent-blue);
    transform: rotate(-15deg);
}

/* Layout Fixes for Uneven Boxes */
.card-grid, .download-grid, .stat-grid {
    align-items: stretch;
}
.card, .download-card, .stat-card, .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-link, .download-info {
    margin-top: auto;
}

/* News Feed Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-card h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.news-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}
.news-card .news-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* ===== INTERACTIVE CHAIN OF CUSTODY ===== */
.interactive-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.flow-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.flow-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.flow-card:hover::before {
    opacity: 0.05;
}

.flow-card:hover .flow-icon-wrapper {
    background: var(--grad-primary);
    color: white;
    transform: rotateY(180deg);
}

.flow-card:hover .flow-icon-wrapper i {
    transform: rotateY(-180deg);
}

.flow-num-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.flow-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.6s ease;
    perspective: 1000px;
}

.flow-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.flow-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .interactive-flow {
        grid-template-columns: 1fr;
    }
}
