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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2a40;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.3);
    --accent-secondary: #7c3aed;
    --accent-secondary-glow: rgba(124, 58, 237, 0.3);
    --danger: #ff3b5c;
    --warning: #ffb020;
    --success: #22c55e;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 240, 255, 0.2);
    --nav-bg: rgba(10, 14, 23, 0.9);
    --footer-bg: #05070d;
    --overlay: rgba(0, 0, 0, 0.3);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
    --bg-primary: #f4f6fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #eef2f9;
    --accent: #00839b;
    --accent-glow: rgba(0, 150, 180, 0.25);
    --accent-secondary: #6d28d9;
    --accent-secondary-glow: rgba(109, 40, 217, 0.2);
    --danger: #d92d4a;
    --warning: #b45309;
    --success: #15803d;
    --text-primary: #0f1626;
    --text-secondary: #3f4a5f;
    --text-muted: #64748b;
    --border: rgba(15, 22, 38, 0.1);
    --border-accent: rgba(0, 140, 160, 0.3);
    --nav-bg: rgba(244, 246, 251, 0.9);
    --footer-bg: #e6ebf4;
    --overlay: rgba(255, 255, 255, 0.5);
    --surface: rgba(15, 22, 38, 0.04);
    --surface-strong: rgba(15, 22, 38, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.a11y-btn {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.a11y-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle {
    position: relative;
    width: 42px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: opacity var(--transition), transform var(--transition);
}

html[data-theme="light"] .theme-toggle::before {
    content: '☀️';
}

.theme-toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle:hover::before {
    transform: rotate(20deg) scale(1.15);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 100000;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

#main-content {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.logo-icon {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

.logo-orbit.orbit-outer {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 2px solid rgba(0, 240, 255, 0.85);
    border-top-color: transparent;
    border-right-color: rgba(0, 240, 255, 0.25);
    animation: orbitSpin 3.5s linear infinite;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4), inset 0 0 6px rgba(0, 240, 255, 0.15);
}

.logo-orbit.orbit-inner {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border: 2px solid rgba(124, 58, 237, 0.9);
    border-top-color: transparent;
    border-bottom-color: rgba(124, 58, 237, 0.3);
    animation: orbitSpin 2s linear infinite reverse;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.logo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--accent));
    animation: corePulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent), 0 0 24px var(--accent-glow);
}

.logo-satellite {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    margin-left: -3.5px;
}

.logo-satellite.sat-1 {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent-glow);
}

.logo-satellite.sat-2 {
    bottom: -5px;
    top: auto;
    background: #a78bfa;
    box-shadow: 0 0 8px var(--accent-secondary-glow);
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.85; }
}

/* вращение ускоряется при наведении на логотип */
.logo:hover .logo-orbit.orbit-outer {
    animation-duration: 1.2s;
}

.logo:hover .logo-orbit.orbit-inner {
    animation-duration: 0.7s;
}

.logo:hover .logo-core {
    animation-duration: 0.8s;
    box-shadow: 0 0 14px var(--accent), 0 0 36px var(--accent-glow);
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--accent);
    transition: text-shadow 0.3s ease;
}

.logo:hover .logo-text {
    text-shadow: 0 0 14px var(--accent-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
}

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

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

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -1%) rotate(3deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 32px;
    background: rgba(0, 240, 255, 0.03);
    animation: fadeInUp 0.8s ease-out;
    max-width: 100%;
    overflow-wrap: break-word;
    line-height: 1.55;
}

.hero-title {
    font-size: clamp(26px, 5.4vw, 70px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    overflow-wrap: break-word;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s ease-out both;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }

.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c8d6);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 240, 255, 0.03);
}

.btn-full { width: 100%; }

/* ===== STATS ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.stat-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* ===== SECTIONS ===== */
.section-header {
    margin-bottom: 56px;
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.05);
}

.about-card-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== THREATS ===== */
.threats {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 59, 92, 0.02) 50%, transparent 100%);
}

.threats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.threat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.threat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.threat-card:hover {
    border-color: rgba(255, 59, 92, 0.2);
    transform: translateY(-2px);
}

.threat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.threat-icon {
    font-size: 32px;
}

.threat-level {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}

.threat-level.critical { background: rgba(255, 59, 92, 0.15); color: var(--danger); }
.threat-level.high { background: rgba(255, 176, 32, 0.15); color: var(--warning); }
.threat-level.medium { background: rgba(255, 176, 32, 0.1); color: var(--warning); }
.threat-level.low { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.threat-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.threat-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.threat-example {
    background: rgba(255, 59, 92, 0.05);
    border: 1px solid rgba(255, 59, 92, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.threat-example strong {
    color: var(--danger);
}

.threat-bar {
    position: relative;
}

.threat-bar-fill {
    height: 4px;
    background: linear-gradient(90deg, var(--danger), var(--warning));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.threat-bar span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== PROTECTION ===== */
.protection {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.protection-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    display: flex;
    gap: 24px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.step-number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.step-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* ===== PASSWORD GENERATOR ===== */
.tools-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
}

.password-gen {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.password-output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

#password-display {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent);
    word-break: break-all;
    user-select: all;
}

.copy-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.copy-btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.password-controls {
    padding: 28px;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.slider-group strong {
    color: var(--accent);
    font-family: var(--font-mono);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-primary);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-glow);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label:hover { color: var(--text-primary); }

.checkbox-label input {
    display: none;
}

.checkbox-label span {
    font-family: var(--font-mono);
    width: 36px;
    padding: 6px;
    text-align: center;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    transition: var(--transition);
}

.checkbox-label input:checked + span {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.password-strength {
    margin-top: 20px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.5s ease;
}

#strength-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ===== QUIZ ===== */
.quiz-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.quiz-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.quiz-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.5s ease;
}

#quiz-progress-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.quiz-question {
    padding: 40px 28px;
}

.quiz-question h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.5;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    color: var(--text-secondary);
    background: transparent;
    text-align: left;
    font-family: var(--font-main);
    width: 100%;
}

.quiz-answer:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 240, 255, 0.03);
}

.quiz-answer.correct {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.quiz-answer.wrong {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 59, 92, 0.1);
}

.quiz-answer.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.quiz-result {
    padding: 48px 28px;
    text-align: center;
}

.quiz-result.hidden { display: none; }

.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.quiz-result h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.quiz-result p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.result-score {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
}

/* ===== NEWS ===== */
.news-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

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

.news-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-link {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.news-link:hover {
    text-decoration: underline;
}

/* ===== TETRIS ===== */
.tetris-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
}

.tetris-wrapper {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tetris-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 200px;
}

.tetris-score {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.score-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.score-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

#tetris-next {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto;
}

.tetris-controls-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tetris-controls-hint kbd {
    display: inline-block;
    font-family: var(--font-mono);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    color: var(--accent);
    margin-right: 4px;
}

#tetris-canvas {
    background: #05070d;
    border: 2px solid var(--border-accent);
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.08);
}

.tetris-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.tetris-status.game-over {
    color: var(--danger);
    background: rgba(255, 59, 92, 0.1);
}

.tetris-status.running {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

@media (max-width: 768px) {
    .tetris-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .tetris-panel {
        min-width: 100%;
        max-width: 400px;
    }

    #tetris-canvas {
        max-width: 100%;
        height: auto;
    }
}

/* ===== KNOWLEDGE BASE ===== */
.kb-hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.04), transparent 60%);
}

.kb-hero-content {
    max-width: 800px;
}

.kb-hero-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.kb-hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 auto 36px;
    max-width: 600px;
}

.kb-search {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.kb-search-input {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.kb-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.kb-main {
    position: relative;
    z-index: 1;
    padding: 32px 0 120px;
}

.kb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.kb-filter {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.kb-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.kb-filter.active {
    background: linear-gradient(135deg, var(--accent), #00c8d6);
    color: var(--bg-primary);
    border-color: transparent;
    font-weight: 600;
}

.kb-count {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.kb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    display: none;
    align-content: start;
}

.kb-card.visible-card {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.kb-card:hover {
    border-color: var(--border-accent);
}

.kb-card.open {
    grid-column: 1 / -1;
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), inset 0 0 0 1px var(--accent);
}

.kb-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.kb-category {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.kb-card-title h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.kb-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.kb-toggle.rotate {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--bg-primary);
}

.kb-preview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 12px;
}

.kb-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.kb-card.open .kb-body {
    max-height: 3000px;
}

.kb-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 16px;
}

.kb-body ul, .kb-body ol {
    margin-top: 12px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.kb-body li::marker {
    color: var(--accent);
}

.kb-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
    color: #ffb020;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.kb-note {
    margin-top: 16px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: rgba(0, 240, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.kb-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.kb-empty span {
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

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

    .kb-card.open {
        grid-column: 1 / -1;
    }

    .kb-search {
        flex-direction: column;
    }

    .kb-filter {
        font-size: 12px;
        padding: 7px 14px;
    }
}

/* ===== CHECKLISTS ===== */
.cl-main {
    position: relative;
    z-index: 1;
    padding: 32px 0 120px;
}

.cl-overall {
    max-width: 640px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.cl-overall-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cl-overall-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}

.cl-overall-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.cl-overall-info strong {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent);
}

.cl-reset-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.cl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.cl-card:hover {
    border-color: var(--border-accent);
}

.cl-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.15);
}

.cl-category {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.cl-card-title h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.cl-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.cl-progress-bar {
    width: 140px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.cl-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.cl-progress-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.cl-list {
    list-style: none;
    padding: 0;
}

.cl-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

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

.cl-item:hover {
    background: rgba(0, 240, 255, 0.02);
}

.cl-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
}

.cl-item.done .cl-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.cl-item.done .cl-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 700;
}

.cl-item-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cl-item-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cl-item.done .cl-item-text {
    opacity: 0.45;
}

.cl-item.done .cl-item-text strong {
    text-decoration: line-through;
    color: var(--text-muted);
}

.cl-status {
    padding: 16px 28px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.cl-status-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cl-status-text.complete {
    color: var(--success);
}

@media (max-width: 768px) {
    .cl-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cl-progress {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cl-progress-bar {
        flex: 1;
        width: auto;
    }

    .cl-item {
        padding: 16px 20px;
    }

    .cl-status {
        padding: 14px 20px;
    }
}

/* ===== INCIDENTS ===== */
.inc-main {
    position: relative;
    z-index: 1;
    padding: 32px 0 120px;
}

.inc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.inc-filter {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.inc-filter:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.inc-filter.active {
    background: linear-gradient(135deg, var(--danger), #e11d48);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.inc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out both;
}

.inc-card.hidden-card {
    display: none;
}

.inc-card:hover {
    border-color: rgba(255, 59, 92, 0.25);
}

.inc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 59, 92, 0.03);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.inc-category {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.inc-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 50px;
    background: rgba(255, 59, 92, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 92, 0.2);
    font-weight: 600;
}

.inc-card-main {
    display: flex;
    gap: 24px;
    padding: 28px 24px;
}

.inc-date-col {
    flex-shrink: 0;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.inc-year {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    letter-spacing: 2px;
    opacity: 0.5;
}

.inc-content h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.inc-company {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.inc-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.inc-body ul {
    margin: 12px 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.inc-body li::marker {
    color: var(--danger);
}

.inc-body ul + p strong,
.inc-body p strong {
    color: var(--text-primary);
}

.inc-bottom-note {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.inc-bottom-note a {
    color: var(--accent);
    text-decoration: none;
}

.inc-bottom-note a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .inc-card-main {
        flex-direction: column;
        gap: 8px;
        padding: 20px;
    }

    .inc-year {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 16px;
        opacity: 0.7;
    }

    .inc-card-top {
        padding: 12px 16px;
    }
}

/* ===== LOADER ===== */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: loaderBlink 1.2s ease-in-out infinite;
}

@keyframes loaderBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== TYPING TEXT ===== */
.typewriter {
    display: inline-block;
    border-right: 2px solid var(--accent);
    padding-right: 4px;
    animation: caretBlink 0.8s step-end infinite;
}

@keyframes caretBlink {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch:hover::before {
    opacity: 0.8;
    color: var(--accent);
    animation: glitchShift 0.4s steps(2) infinite;
    clip-path: inset(0 0 55% 0);
    transform: translate(-2px, -1px);
}

.glitch:hover::after {
    opacity: 0.8;
    color: var(--danger);
    animation: glitchShift 0.3s steps(2) infinite reverse;
    clip-path: inset(40% 0 0 0);
    transform: translate(2px, 1px);
}

@keyframes glitchShift {
    0% { clip-path: inset(0 0 60% 0); }
    20% { clip-path: inset(20% 0 40% 0); }
    40% { clip-path: inset(60% 0 0 0); }
    60% { clip-path: inset(30% 0 30% 0); }
    80% { clip-path: inset(10% 0 50% 0); }
    100% { clip-path: inset(50% 0 10% 0); }
}

/* ===== SCANLINE / CRT OVERLAY ===== */
.scanlines::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: none;
    opacity: 0;
    display: none;
}

.hero-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
    animation: heroScanMove 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes heroScanMove {
    0% { top: 0; left: -100%; }
    30% { top: 45%; left: 100%; }
    60% { top: 90%; left: -100%; }
    100% { top: 0; left: 100%; }
}

/* ===== PULSE GLOW HOVER ===== */
.btn-primary, .btn-outline, .news-link, .kb-filter, .inc-filter {
    position: relative;
}

.fx-glow {
    animation: fxPulse 2s ease-in-out infinite;
}

@keyframes fxPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-glow); }
    50% { box-shadow: 0 0 28px var(--accent-glow), 0 0 60px rgba(124, 58, 237, 0.25); }
}

/* ===== FLOATING PARTICLES ===== */
.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0.5;
    filter: drop-shadow(0 0 6px var(--accent-glow));
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    50% { transform: translateY(-45vh) translateX(30px); opacity: 0.4; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-110vh) translateX(-20px); opacity: 0; }
}

/* ===== MOUSE PARALLAX ===== */
.parallax-wrap, .parallax-hero {
    will-change: transform;
}

/* ===== 3D CARD TILT ===== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.tilt-card .about-card-icon,
.tilt-card .threat-icon,
.tilt-card .step-number {
    transform: translateZ(40px);
    transition: transform 0.15s ease-out;
}

.tilt-card .about-card h3,
.tilt-card .threat-card h3,
.tilt-card .step-content h3 {
    transform: translateZ(20px);
}

/* ===== SECTION GRADIENT SHIFT ===== */
.gradient-bg {
    background: linear-gradient(120deg,
        rgba(0, 240, 255, 0.06),
        rgba(124, 58, 237, 0.06),
        rgba(255, 59, 92, 0.04),
        rgba(0, 240, 255, 0.06));
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== PARTICLES REVEAL ===== */
.particle-badge {
    animation: particlePop 0.5s ease-out both;
}

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

/* ===== NEWS CARD SHUFFLE HOVER ===== */
.news-card:hover .news-date {
    color: var(--accent);
    animation: shuffleRight 0.4s ease-out;
}

@keyframes shuffleRight {
    0% { transform: translateX(-8px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===== BUTTON SCAN SHINE ===== */
.btn-shine { overflow: hidden; }

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-shine:hover::after {
    left: 120%;
}

/* ===== STAT NUMBER GLOW ===== */
.stat-number {
    transition: text-shadow 0.3s, transform 0.3s;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
    transform: scale(1.08);
    display: inline-block;
}

/* ===== FOOTER TAGLINE SPIN ===== */
.footer-tagline:hover {
    color: var(--accent);
}

/* ===== TOOLS PAGE ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-3px);
}

.tool-card-head {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 240, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.tool-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.tool-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tool-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.pw-meter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-bar {
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
}

.pw-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-txt {
    font-weight: 700;
    font-size: 14px;
}

.pw-criteria {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.pw-criteria li {
    padding-left: 24px;
    position: relative;
}

.pw-criteria li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

.pw-criteria li.met {
    color: var(--success);
}

.pw-criteria li.met::before {
    content: '✓';
    color: var(--success);
}

.pw-estimate {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

.totp-display {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.totp-code {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.totp-progress {
    display: block;
    height: 6px;
    background: var(--surface-strong);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 20px;
}

.totp-timer {
    height: 100%;
    width: 0%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.9s linear, background 0.3s ease;
}

.hash-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.hash-name {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 64px;
    flex-shrink: 0;
}

.hash-row code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
}

.copy-mini {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
    transition: var(--transition);
}

.copy-mini:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.breach-bad {
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.3);
    color: var(--danger);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.breach-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.link-quiz-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.link-quiz-url code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    word-break: break-all;
    display: block;
    margin-bottom: 10px;
}

.link-quiz-answers {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.link-quiz-answers label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.link-explain {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

@keyframes taglineWink {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-mono);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.15);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.04);
}

.footer-counter-icon {
    font-size: 13px;
}

.footer-counter-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-counter-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1279px) and (min-width: 769px) {
    .logo-text { font-size: 14px; letter-spacing: 1px; }
    .nav-links { gap: 2px; }
    .nav-links a { padding: 8px 10px; font-size: 13px; }
    .nav-actions { margin-left: auto; }
}

@media (max-width: 768px) {
    .nav-actions {
        margin-left: 0;
        gap: 6px;
    }

    .a11y-btn { width: 30px; height: 30px; font-size: 12px; }
    .theme-toggle { width: 34px; height: 30px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .protection-steps {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .password-output {
        flex-direction: column;
        text-align: center;
    }

    #password-display {
        font-size: 14px;
    }

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

    main .kb-grid,
    main .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    main .kb-card,
    main .service-card {
        min-width: 0;
    }

    main .kb-card p,
    main .kb-card li,
    main .kb-card h3,
    main .service-card h3,
    main .service-card p {
        overflow-wrap: break-word;
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICES ===== */
.services {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.service-icon {
    font-size: 34px;
    margin-bottom: 18px;
    display: inline-block;
    padding: 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.05);
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a.active {
    color: var(--accent);
}

.services-more {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

/* ===== SERVICES PROCESS ===== */
.services-process {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.03) 50%, transparent 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: inline-block;
}

.step-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SERVICES HERO ===== */
.services-hero {
    padding-bottom: 100px;
}

.service-card:hover .cyber-icon {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.services-subheader {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 64px 0 8px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-accent);
}

.services-subheader .subheader-icon {
    font-size: 30px;
    display: inline-block;
    padding: 10px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.05);
}

.services-subheader h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.services-subheader p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-subheader {
        margin-top: 48px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .services-subheader h3 {
        font-size: 18px;
    }

    .services-subheader p {
        font-size: 13px;
    }
}

/* ===== SERVICES CTA ===== */
.cta {
    position: relative;
    z-index: 1;
    padding: 100px 0 120px;
}

.cta-inner {
    max-width: 720px;
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(0, 240, 255, 0.02));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
}

.cta-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.cta-inner h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.cta-inner p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-inner {
        padding: 40px 24px;
    }
}

/* ===== LEGAL DOCS ===== */
.legal-hero {
    padding-bottom: 100px;
}

.legal-doc {
    position: relative;
    z-index: 1;
    padding: 0 0 100px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 14px 22px;
    margin: 0 0 40px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.legal-section {
    margin-bottom: 48px;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-accent);
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.legal-section ul li {
    position: relative;
    padding: 8px 0 8px 26px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.legal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 6px;
    top: 8px;
    color: var(--accent);
    font-size: 14px;
}

.legal-section code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    padding: 2px 7px;
    color: var(--accent);
    word-break: break-all;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 22px 20px;
    }

    .legal-meta {
        margin-bottom: 32px;
    }
}

/* ===== CONTACT FORM ===== */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 96px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.contact-info-icon {
    font-size: 22px;
    line-height: 1.2;
}

.contact-info-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-info-item a {
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
}

.contact-note {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.05);
}

.contact-note p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.contact-form-field label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.contact-checkbox input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
}

.contact-checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
}

.contact-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.contact-btn-spinner[hidden] {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-error {
    border-color: #ff5252 !important;
    color: #ff5252 !important;
    box-shadow: 0 8px 30px rgba(255, 82, 82, 0.15) !important;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 64px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

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

/* ===== CONTACT FAB ===== */
.contact-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--accent), #00839b);
    color: #04121a;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.35);
    opacity: 0;
    transform: translateY(20px);
    animation: fab-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 240, 255, 0.5);
    background: linear-gradient(135deg, var(--accent), #00b8d4);
}

.contact-fab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.contact-fab-icon {
    font-size: 18px;
    line-height: 1;
}

.contact-fab-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    opacity: 0;
    animation: fab-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.contact-fab-ring.ring-delay {
    animation-delay: 1.2s;
}

@keyframes fab-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fab-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .contact-fab {
        right: 16px;
        bottom: 16px;
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-fab-ring {
        animation: none;
        display: none;
    }
    .contact-fab {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.contact-fab.fab-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    animation: none;
}
