/* ==========================================================================
   KeyTester Pro — Premium Modern Design System (V3.0 Redesign)
   Aesthetic: Ultra-Sleek Glassmorphism, HSL Tailored Palettes, 3D Keycaps
   ========================================================================== */

:root {
    /* --- Light Mode Color Tokens --- */
    --bg-base: #f0f4f9;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-element: #e9eff8;
    
    --border-subtle: rgba(226, 232, 240, 0.9);
    --border-glow: rgba(37, 99, 235, 0.3);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Brand & Accent Colors */
    --brand-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: rgba(37, 99, 235, 0.1);
    --accent-green: #10b981;
    --accent-green-light: rgba(16, 185, 129, 0.12);
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    
    /* 3D Keycap Styling (Light Mode) */
    --key-bg: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    --key-border: #cbd5e1;
    --key-text: #1e293b;
    --key-shadow: 0 4px 0 #94a3b8, 0 6px 12px rgba(0, 0, 0, 0.08);
    
    --key-pressed-bg: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    --key-pressed-text: #ffffff;
    --key-pressed-shadow: 0 1px 0 #1e40af, 0 4px 16px rgba(37, 99, 235, 0.4);
    
    --key-checked-bg: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    --key-checked-border: #60a5fa;
    --key-checked-text: #1e40af;
    --key-checked-shadow: 0 3px 0 #93c5fd, 0 4px 10px rgba(37, 99, 235, 0.1);

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --glass-blur: blur(20px);
}

[data-theme="dark"] {
    /* --- Dark Mode Color Tokens --- */
    --bg-base: #070d19;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-glass: rgba(15, 23, 42, 0.75);
    --bg-element: #1e293b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --brand-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    --accent-blue: #3b82f6;
    --accent-blue-hover: #60a5fa;
    --accent-blue-light: rgba(59, 130, 246, 0.15);
    --accent-green: #34d399;
    --accent-green-light: rgba(52, 211, 153, 0.15);
    --accent-amber: #fbbf24;
    --accent-red: #f87171;
    
    /* 3D Keycap Styling (Dark Mode) */
    --key-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --key-border: #334155;
    --key-text: #f1f5f9;
    --key-shadow: 0 4px 0 #020617, 0 6px 12px rgba(0, 0, 0, 0.4);
    
    --key-pressed-bg: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    --key-pressed-text: #ffffff;
    --key-pressed-shadow: 0 1px 0 #1d4ed8, 0 4px 20px rgba(59, 130, 246, 0.6);
    
    --key-checked-bg: linear-gradient(180deg, rgba(30, 58, 138, 0.6) 0%, rgba(30, 58, 138, 0.3) 100%);
    --key-checked-border: #2563eb;
    --key-checked-text: #93c5fd;
    --key-checked-shadow: 0 3px 0 #1e3a8a, 0 4px 12px rgba(37, 99, 235, 0.2);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   Base Standard & Typography
   ========================================================================== */

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

code, kbd, pre, .mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Header & Sticky Navigation Bar
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-icon {
    font-size: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
    transition: transform 0.3s ease;
}

.brand-logo:hover .logo-icon {
    transform: scale(1.15) rotate(-5deg);
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-badge {
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.68rem;
    padding: 3px 9px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.06em;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-element);
    padding: 4px 6px;
    border-radius: 40px;
    border: 1px solid var(--border-subtle);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-link.active {
    color: #ffffff;
    background: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-blue);
}

.theme-icon.moon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.moon { display: inline-block; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
    flex: 1;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* Ad Placement Slots (AdSense Ready) */
.ad-slot {
    width: 100%;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 24px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.ad-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.ad-placeholder-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */

.hero-section {
    text-align: center;
    margin-bottom: 36px;
    padding: 24px 0 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue-light);
    border: 1px solid var(--border-glow);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero-title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Online Keyboard Tester Component Appliance
   ========================================================================== */

.tester-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 44px;
    position: relative;
}

.tester-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    border-radius: 2px;
}

/* Tester Header Controls */
.tester-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.layout-selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.select-input {
    background: var(--bg-element);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.select-input:focus, .select-input:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.sound-toggle-btn {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sound-toggle-btn.active {
    background: var(--accent-green-light);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Inspector Metric Cards */
.key-inspector-panel {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.inspector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.inspector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.inspector-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.inspector-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.inspector-value.highlight {
    color: var(--accent-blue);
}

/* Modifier Badges Bar */
.indicators-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-element);
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: all 0.2s ease;
}

.indicator-dot.active {
    background-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

/* Keystroke Stream Visual Feed */
.keystroke-stream {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 28px;
}

.stream-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.key-chip {
    background: var(--key-bg);
    border: 1px solid var(--key-border);
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--key-text);
    box-shadow: var(--shadow-sm);
    animation: popIn 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Virtual Keyboard 3D Keycap Grid Layout
   ========================================================================== */

.keyboard-grid-wrapper {
    overflow-x: auto;
    padding: 8px 4px 16px;
}

.keyboard-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 940px;
    user-select: none;
}

.keyboard-row {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

/* Base Key Visual Element */
.v-key {
    background: var(--key-bg);
    color: var(--key-text);
    border: 1px solid var(--key-border);
    box-shadow: var(--key-shadow);
    border-radius: var(--radius-sm);
    height: 52px;
    min-width: 48px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex: 1;
}

.v-key:hover {
    border-color: var(--accent-blue);
}

.v-key.pressed {
    background: var(--key-pressed-bg) !important;
    color: var(--key-pressed-text) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: var(--key-pressed-shadow) !important;
    transform: translateY(3px) scale(0.96);
}

.v-key.checked {
    background: var(--key-checked-bg);
    border-color: var(--key-checked-border);
    color: var(--key-checked-text);
    box-shadow: var(--key-checked-shadow);
}

.v-key.checked::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.v-key.special {
    background: var(--bg-element);
    font-size: 0.78rem;
}

/* Flex sizing multipliers */
.v-key.w-125 { flex: 1.25; }
.v-key.w-150 { flex: 1.5; }
.v-key.w-175 { flex: 1.75; }
.v-key.w-200 { flex: 2; }
.v-key.w-225 { flex: 2.25; }
.v-key.w-275 { flex: 2.75; }
.v-key.w-625 { flex: 6.25; }
.v-key.gap-space { visibility: hidden; flex: 0.5; pointer-events: none; }

/* Action Toolbar */
.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stats-summary {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.stats-summary strong {
    color: var(--accent-blue);
}

.toolbar-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--border-subtle);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn:active {
    transform: scale(0.96);
}

/* ==========================================================================
   Page Content & Feature Cards
   ========================================================================== */

.content-section {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 14px;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin: 0 0 24px 28px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 10px;
}

.content-section a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

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

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Accordion FAQ UI */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

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

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

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

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-element);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.data-table th, .data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.data-table th {
    background: var(--bg-surface);
    font-weight: 800;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 620px;
    margin-top: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-light);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 24px 32px;
    margin-top: auto;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 18px;
    max-width: 380px;
    line-height: 1.6;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-green);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 24px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .nav-menu.open { transform: translateY(0); }
    .mobile-menu-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .tester-container { padding: 18px; }
    .inspector-grid { grid-template-columns: repeat(2, 1fr); }
}
