/* ============================================
   INFRASEC v6 - Dynamic State-Based Theme
   Logo-Aligned Colors: Cyan, Navy, Red, Green
   ============================================ */

/* CSS Variables - Dynamic State-Based Theme */
:root {
    /* Background Colors (with subtle blue tint from logo) */
    --bg-primary: #080c12;
    --bg-secondary: #0c1219;
    --bg-card: #101820;
    --bg-card-hover: #141e28;

    /* Text Colors */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Logo Brand Colors */
    --brand-cyan: #4cc9f0;
    /* Logo cyan - primary brand */
    --brand-cyan-dim: #3ba8cc;
    /* Dimmed cyan for hover */
    --brand-navy: #1e3a5f;
    /* Logo navy - deep accents */
    --brand-navy-light: #2a4a70;
    /* Lighter navy */
    --brand-red: #c41e3a;
    /* Logo red - alerts/danger */
    --brand-red-bright: #e02040;
    /* Brighter red for emphasis */

    /* State Colors */
    --state-secure: #00ff88;
    /* Green - secure/protected */
    --state-secure-dim: #00cc6a;
    --state-vulnerable: #c41e3a;
    /* Red - vulnerable/danger */
    --state-neutral: #4cc9f0;
    /* Cyan - neutral/brand */
    --state-warning: #ffaa00;
    /* Amber - warning/attention */

    /* Current accent (changes based on state) */
    --accent-primary: var(--brand-cyan);
    --accent-primary-dim: var(--brand-cyan-dim);
    --accent-green: #00ff88;
    --accent-green-dim: #00cc6a;
    --accent-amber: #ffaa00;
    --accent-red: var(--brand-red);
    --accent-cyan: var(--brand-cyan);

    /* Grid with cyan tint */
    --grid-line: rgba(76, 201, 240, 0.03);
    --grid-line-bright: rgba(76, 201, 240, 0.08);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);

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

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    --nav-height: 72px;
}

/* State Classes - Apply to body or sections */
body.state-secure {
    --accent-primary: var(--state-secure);
    --accent-primary-dim: var(--state-secure-dim);
    --grid-line: rgba(0, 255, 136, 0.03);
}

body.state-alert,
body.state-vulnerable {
    --accent-primary: var(--state-vulnerable);
    --accent-primary-dim: var(--brand-red-bright);
    --grid-line: rgba(196, 30, 58, 0.03);
}

body.state-neutral {
    --accent-primary: var(--brand-cyan);
    --accent-primary-dim: var(--brand-cyan-dim);
    --grid-line: rgba(76, 201, 240, 0.03);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* Link Colors - Cyan primary brand */
a {
    color: var(--brand-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-cyan-dim);
}

a:visited {
    color: var(--brand-cyan);
}

/* Grid Background - Enhanced with Kinetic Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Animated Data Flow Lines */
.data-flow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.data-flow-line {
    position: absolute;
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
    opacity: 0.4;
    animation: dataFlow 4s infinite linear;
}

.data-flow-line:nth-child(1) {
    top: 15%;
    animation-delay: 0s;
}

.data-flow-line:nth-child(2) {
    top: 35%;
    animation-delay: 1.2s;
}

.data-flow-line:nth-child(3) {
    top: 55%;
    animation-delay: 2.4s;
}

.data-flow-line:nth-child(4) {
    top: 75%;
    animation-delay: 0.8s;
}

.data-flow-line:nth-child(5) {
    top: 90%;
    animation-delay: 2s;
}

@keyframes dataFlow {
    0% {
        left: -100px;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Vertical Data Lines */
.data-flow-line.vertical {
    width: 2px;
    height: 80px;
    animation: dataFlowVertical 5s infinite linear;
}

.data-flow-line.vertical:nth-child(6) {
    left: 20%;
    animation-delay: 0.5s;
}

.data-flow-line.vertical:nth-child(7) {
    left: 50%;
    animation-delay: 1.8s;
}

.data-flow-line.vertical:nth-child(8) {
    left: 80%;
    animation-delay: 3s;
}

@keyframes dataFlowVertical {
    0% {
        top: -80px;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
    opacity: 0.15;
    animation: scanLine 8s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanLine {
    0% {
        top: -2px;
    }

    100% {
        top: 100%;
    }
}

/* Scroll-Triggered Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-cyan) !important;
    letter-spacing: -0.5px;
}

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

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdowns */
.nav-item {
    position: relative;
}

.nav-item.has-dropdown>.nav-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.6;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary) !important;
    font-size: 13px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(76, 201, 240, 0.1);
    color: var(--brand-cyan) !important;
}

.dropdown-header {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* CTA Button in Nav */
.nav-cta {
    padding: 10px 20px !important;
    background: var(--accent-green);
    color: var(--bg-primary) !important;
    font-weight: 600;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--accent-green-dim);
    color: var(--bg-primary) !important;
}

/* Mobile Toggle */
.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: all var(--transition-fast);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: #0a0f1a !important;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        display: flex;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 16px;
        display: none;
    }

    .nav-item.has-dropdown.open .dropdown {
        display: block;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--brand-cyan);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--brand-cyan);
}

/* Typewriter Effect */
.hero-title .typewriter-text {
    color: var(--brand-red);
    position: relative;
    display: inline-block;
}

.hero-title .typewriter-text::after {
    content: '|';
    position: absolute;
    right: -4px;
    color: var(--brand-cyan);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Impact Counter */
.hero-impact {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin: 32px auto;
    padding: 20px 28px;
    background: rgba(76, 201, 240, 0.05);
    border: 1px solid rgba(76, 201, 240, 0.15);
    border-radius: 12px;
}

.impact-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.impact-number {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-cyan);
    line-height: 1;
}

.impact-suffix {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-cyan);
}

.impact-label {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 140px;
    line-height: 1.4;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary) !important;
}

.btn-primary:hover {
    background: var(--accent-green-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan) !important;
}

/* ============================================
   CONSEQUENCE SIMULATOR - FIX #2: Clean Design
   ============================================ */
.simulator {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 32px;
    margin: 48px auto;
    max-width: 900px;
}

.simulator-header {
    text-align: center;
    margin-bottom: 32px;
}

.simulator-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 8px;
}

.simulator-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Vertical Step Layout */
.simulator-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.simulator-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.simulator-step.active {
    opacity: 1;
    border-color: var(--brand-cyan);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--brand-cyan);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.simulator-step:not(.active) .step-number {
    background: var(--text-muted);
}

.step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Industry Grid - 4x2 for desktop */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.industry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}

.industry-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--text-primary);
}

.industry-btn.selected {
    background: rgba(76, 201, 240, 0.1);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.industry-btn .icon {
    font-size: 24px;
}

/* Attack Options - Vertical list */
.attack-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attack-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    color: var(--text-primary);
}

.attack-btn:hover {
    border-color: var(--brand-cyan);
}

.attack-btn.selected {
    background: rgba(76, 201, 240, 0.1);
    border-color: var(--brand-cyan);
}

.attack-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attack-info .icon {
    font-size: 20px;
}

.attack-name {
    font-weight: 500;
    font-size: 14px;
}

.attack-technique {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-cyan);
    background: rgba(76, 201, 240, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Consequence Display */
.consequence-result {
    text-align: center;
}

.consequence-status {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    border-radius: 100px;
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.consequence-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.consequence-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 12px;
}

.consequence-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mitre-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(76, 201, 240, 0.05);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

.mitre-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mitre-chain {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.impacts-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.impacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

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

.impacts-list li::before {
    content: '⚠️';
    font-size: 12px;
}

/* Reset Button */
.simulator-reset {
    display: block;
    margin: 24px auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.simulator-reset:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ============================================
   CARDS - FIX #3: Link colors in cards
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 28px;
    transition: all var(--transition-normal);
    display: block;
    color: var(--text-primary) !important;
}

.card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(76, 201, 240, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Card titles use cyan brand color */
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-cyan) !important;
    margin-bottom: 10px;
}

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

.card-timeline {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-cyan);
}

/* ============================================
   SERVICES PAGE - Executive/Engineer Toggle
   ============================================ */
.persona-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.persona-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.toggle-label {
    color: var(--text-muted);
    font-size: 14px;
}

.toggle-buttons {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.toggle-icon {
    font-size: 16px;
}

/* Legacy button support */
.persona-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.persona-btn:hover {
    color: var(--text-primary);
}

.persona-btn.active {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Persona Content Visibility */
.persona-content {
    display: none;
}

/* Executive content visibility */
body.persona-executive .persona-content.executive-content,
body.persona-executive .persona-content.executive {
    display: block;
}

/* Technical/Engineer content visibility */
body.persona-technical .persona-content.technical-content,
body.persona-technical .persona-content.technical {
    display: block;
}

/* Default to executive when no class set */
body:not(.persona-technical) .persona-content.executive-content,
body:not(.persona-technical) .persona-content.executive {
    display: block;
}

/* Hero Stats for Executive View */
.hero-stats {
    display: flex;
    gap: 32px;
    margin: 24px 0;
    flex-wrap: wrap;
}

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

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-cyan);
    font-family: var(--font-mono);
}

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

/* Hero Tech Stack for Engineer View */
.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.tech-badge {
    padding: 6px 12px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--brand-cyan);
}

/* Jargon Tooltips */
.jargon-term {
    position: relative;
    border-bottom: 1px dotted var(--brand-cyan);
    cursor: help;
}

.jargon-term::after {
    content: attr(data-definition);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--brand-cyan);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
    pointer-events: none;
}

.jargon-term:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* ============================================
   SERVICE CATEGORY SECTIONS
   ============================================ */
.service-category {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.service-category:last-child {
    border-bottom: none;
}

.category-header {
    margin-bottom: 40px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Service Item */
.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.service-item:hover {
    border-color: var(--brand-cyan);
}

.service-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.service-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-item-timeline {
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.service-item-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-deliverables {
    margin-bottom: 16px;
}

.service-deliverables-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.service-deliverables ul {
    list-style: none;
}

.service-deliverables li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-deliverables li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--state-secure);
}

.service-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--brand-cyan);
    border-radius: 6px;
    color: var(--brand-cyan) !important;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.service-item-cta:hover {
    background: var(--brand-cyan);
    color: var(--bg-primary) !important;
}

/* ============================================
   INDUSTRIES GRID - FIX #4: All 8 industries
   ============================================ */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
    display: block;
    color: var(--text-primary) !important;
}

.industry-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
}

.industry-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.industry-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green) !important;
    margin-bottom: 8px;
}

.industry-card-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

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

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-cyan) !important;
    display: block;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

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

.footer-contact a {
    color: var(--text-secondary) !important;
}

.footer-contact a:hover {
    color: var(--accent-green) !important;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary) !important;
    font-size: 14px;
}

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

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

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted) !important;
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--accent-green) !important;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.03) 0%, transparent 100%);
}

.page-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.page-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    margin-bottom: 24px;
}

.back-link:hover {
    color: var(--accent-green) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-48 {
    margin-top: 48px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Smooth Reveal Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   SERVICE CATEGORY HEADER (services.html)
   ============================================ */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.category-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.category-header>div {
    flex: 1;
}

.category-link {
    color: var(--accent-green) !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   DETAILED SERVICE CARDS
   ============================================ */
.detailed-services {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detailed-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.detailed-service-card:hover {
    border-color: var(--accent-green);
}

.service-card-header {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.service-card-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.service-card-body {
    padding: 28px;
}

.service-card-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.deliverables-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.deliverables-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.deliverables-list li::before {
    content: '✓';
    color: var(--state-secure);
    font-weight: 700;
}

.service-card-meta {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* ============================================
   INDUSTRY PAGE STYLES
   ============================================ */
.industry-header {
    padding-bottom: 80px;
}

.industry-header-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Challenges Grid */
.challenges-section {
    background: var(--bg-secondary);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 28px;
    transition: all var(--transition-fast);
}

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

.challenge-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.challenge-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-amber);
    margin-bottom: 12px;
}

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

/* Why Section */
.why-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, transparent 100%);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.why-list {
    list-style: none;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

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

.why-list li::before {
    content: '✓';
    color: var(--state-secure);
    font-weight: 700;
    font-size: 18px;
}

/* Card Link */
.card-link {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-cyan) !important;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-secondary);
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   HERO BADGE
   ============================================ */
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   VALUE PROPS
   ============================================ */
.value-props {
    background: var(--bg-secondary);
}

/* ============================================
   HIGHLIGHT TEXT
   ============================================ */
.highlight {
    color: var(--brand-cyan);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
/* ============================================
   LARGE INDUSTRY CARDS (industries.html)
   ============================================ */
.industries-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.industry-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 40px;
    display: block;
    color: var(--text-primary) !important;
    transition: all var(--transition-normal);
}

.industry-card-large:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.industry-card-large .industry-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.industry-card-large .industry-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.industry-card-large .industry-card-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.industry-card-link {
    color: var(--accent-green) !important;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   FRAMEWORKS GRID (About Page)
   ============================================ */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.framework-category {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 28px;
}

.framework-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.framework-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.framework-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.framework-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.framework-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Why Choose Section */
.why-choose {
    background: var(--bg-secondary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-card-header {
        flex-direction: column;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .page-header {
        padding: 120px 0 50px;
    }

    .industry-card-large {
        padding: 28px;
    }
}

/* ============================================
   SERVICES FINDER - Interactive Discovery
   ============================================ */
.services-finder {
    text-align: center;
    margin-bottom: 48px;
}

.services-finder h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.finder-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.finder-btn {
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.finder-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.finder-btn.active {
    background: rgba(76, 201, 240, 0.1);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.15);
}

.finder-btn .icon {
    margin-right: 8px;
}

/* Services Results Grid */
.services-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

.service-result-card:nth-child(1) {
    animation-delay: 0s;
}

.service-result-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-result-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-result-card:nth-child(4) {
    animation-delay: 0.3s;
}

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

.service-result-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
}

.service-result-card .card-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 16px;
}

.service-result-card .card-title {
    font-size: 17px;
    margin-bottom: 8px;
}

.service-result-card .card-text {
    font-size: 14px;
    line-height: 1.6;
}

.service-result-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-cyan) !important;
}

.service-result-card .learn-more:hover {
    gap: 10px;
}

/* Empty State */
.services-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.services-empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .finder-options {
        flex-direction: column;
    }

    .finder-btn {
        width: 100%;
    }
}

/* ============================================
   SCHEMATIC NAVIGATION - Blueprint Style
   ============================================ */
.schematic-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.schematic-header {
    text-align: center;
    margin-bottom: 48px;
}

.schematic-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.schematic-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.schematic-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(8, 12, 18, 0.8);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 16px;
}

/* Blueprint Grid Overlay */
.schematic-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(76, 201, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 201, 240, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    border-radius: 16px;
}

.schematic-map {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Individual Infrastructure Node */
.infra-node {
    position: relative;
    width: 280px;
    padding: 24px;
    background: rgba(16, 24, 32, 0.9);
    border: 2px solid rgba(76, 201, 240, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.infra-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, transparent, rgba(76, 201, 240, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.infra-node:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(76, 201, 240, 0.2);
}

.infra-node:hover::before {
    opacity: 1;
}

/* Node Header */
.infra-node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.infra-node-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.5));
}

.infra-node-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Vulnerability Points */
.vulnerability-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 100px;
}

.vuln-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.5;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.vuln-point .vuln-icon {
    color: var(--brand-red);
    font-size: 14px;
}

/* Hover State - Vulnerabilities Light Up */
.infra-node:hover .vuln-point {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(196, 30, 58, 0.3);
    background: rgba(196, 30, 58, 0.15);
}

.infra-node:hover .vuln-point:nth-child(1) {
    transition-delay: 0.1s;
}

.infra-node:hover .vuln-point:nth-child(2) {
    transition-delay: 0.2s;
}

.infra-node:hover .vuln-point:nth-child(3) {
    transition-delay: 0.3s;
}

/* Glowing Red Effect on Hover */
.infra-node:hover .vuln-point .vuln-icon {
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {

    0%,
    100% {
        text-shadow: 0 0 4px var(--brand-red);
    }

    50% {
        text-shadow: 0 0 12px var(--brand-red), 0 0 20px var(--brand-red);
    }
}

/* Shield State - When Node is Protected */
.infra-node.protected {
    border-color: var(--state-secure);
}

.infra-node.protected .vuln-point {
    opacity: 1;
    transform: translateX(0);
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.infra-node.protected .vuln-point .vuln-icon {
    color: var(--state-secure);
    animation: none;
}

/* Vulnerability Text - Hidden when protected */
.vuln-text {
    flex: 1;
}

.fix-text {
    display: none;
    color: var(--state-secure);
    font-size: 12px;
    font-weight: 500;
    flex: 1;
}

.infra-node.protected .vuln-text {
    display: none;
}

.infra-node.protected .vuln-icon {
    display: none;
}

.infra-node.protected .fix-text {
    display: block;
}

/* Shield Button */
.shield-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--brand-cyan);
    border-radius: 6px;
    color: var(--brand-cyan);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shield-action:hover {
    background: var(--brand-cyan);
    color: var(--bg-primary);
}

.infra-node.protected .shield-action {
    background: var(--state-secure);
    border-color: var(--state-secure);
    color: var(--bg-primary);
}

/* Connection Lines Between Nodes */
.schematic-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Shield Overlay Animation */
.shield-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.infra-node.protected .shield-overlay {
    opacity: 1;
}

/* Protected Badge */
.protected-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--state-secure);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.infra-node.protected .protected-badge {
    opacity: 1;
    transform: scale(1);
}

/* Industry Link */
.infra-node-link {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.infra-node-link:hover {
    color: var(--brand-cyan);
}

/* Responsive */
@media (max-width: 900px) {
    .schematic-map {
        flex-direction: column;
        align-items: center;
    }

    .infra-node {
        width: 100%;
        max-width: 320px;
    }
}

/* ============================================
   COMPLIANCE PULSE CHECK - Regulation Radar
   ============================================ */
.compliance-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(30, 58, 95, 0.2) 100%);
}

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

/* Widget Header */
.compliance-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, rgba(30, 58, 95, 0.8) 100%);
    border-bottom: 1px solid var(--border-card);
    text-align: center;
}

.compliance-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(76, 201, 240, 0.15);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}

.compliance-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.compliance-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Progress Bar */
.compliance-progress {
    padding: 0 32px;
    margin-top: -8px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-cyan);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Question Container */
.compliance-body {
    padding: 32px;
}

.quiz-question {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
}

.question-context {
    padding: 12px 16px;
    background: rgba(76, 201, 240, 0.05);
    border-left: 3px solid var(--brand-cyan);
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.answer-btn:hover {
    border-color: var(--brand-cyan);
    background: rgba(76, 201, 240, 0.05);
}

.answer-btn.selected {
    border-color: var(--brand-cyan);
    background: rgba(76, 201, 240, 0.1);
}

.answer-btn .answer-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.answer-btn.selected .answer-icon {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: var(--bg-primary);
}

.answer-btn.risk-high:hover,
.answer-btn.risk-high.selected {
    border-color: var(--brand-red);
    background: rgba(196, 30, 58, 0.1);
}

.answer-btn.risk-high.selected .answer-icon {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

/* Results */
.quiz-results {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.quiz-results.active {
    display: block;
}

.score-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
}

.score-circle.low-risk {
    border-color: var(--state-secure);
    background: rgba(0, 255, 136, 0.1);
}

.score-circle.medium-risk {
    border-color: var(--accent-amber);
    background: rgba(255, 170, 0, 0.1);
}

.score-circle.high-risk {
    border-color: var(--brand-red);
    background: rgba(196, 30, 58, 0.1);
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.score-circle.low-risk .score-value {
    color: var(--state-secure);
}

.score-circle.medium-risk .score-value {
    color: var(--accent-amber);
}

.score-circle.high-risk .score-value {
    color: var(--brand-red);
}

.score-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.results-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.results-text {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.results-breakdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breakdown-item .icon {
    font-size: 16px;
}

.breakdown-item.compliant {
    color: var(--state-secure);
}

.breakdown-item.gap {
    color: var(--brand-red);
}

/* Download Button */
.download-scorecard {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--state-secure);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-scorecard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.download-scorecard .icon {
    font-size: 18px;
}

/* Restart */
.restart-quiz {
    display: block;
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.restart-quiz:hover {
    color: var(--brand-cyan);
}

@media (max-width: 600px) {

    .compliance-header,
    .compliance-body {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 18px;
    }
}

/* ============================================
   PROTECTION JOURNEY SLIDER - Stage Based
   ============================================ */
.protection-journey-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.journey-slider-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Track */
.journey-track {
    position: relative;
    height: 16px;
    background: rgba(196, 30, 58, 0.3);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
}

.journey-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--accent-amber) 50%, var(--state-secure) 100%);
    border-radius: 8px;
    transition: width 0.2s ease;
}

.journey-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: left 0.2s ease;
    z-index: 10;
}

.journey-handle:active {
    cursor: grabbing;
}

.handle-icon {
    font-size: 20px;
    color: var(--bg-primary);
}

/* Stage Dots */
.journey-stages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 4px;
}

.stage-dot {
    width: 12px;
    height: 12px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stage-dot.active {
    background: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
}

.stage-dot.passed {
    background: var(--state-secure);
}

/* Display Panel */
.journey-display {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 40px;
    min-height: 280px;
    text-align: center;
}

.journey-stage {
    display: none;
    animation: stageIn 0.4s ease;
}

.journey-stage.active {
    display: block;
}

@keyframes stageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stage Indicator Badge */
.stage-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.stage-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.stage-indicator.critical {
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.4);
    color: var(--brand-red);
}

.stage-indicator.critical .indicator-dot {
    background: var(--brand-red);
}

.stage-indicator.progress {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--accent-amber);
}

.stage-indicator.progress .indicator-dot {
    background: var(--accent-amber);
}

.stage-indicator.secure {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--state-secure);
}

.stage-indicator.secure .indicator-dot {
    background: var(--state-secure);
}

/* Stage Titles */
.stage-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stage-title.critical {
    color: var(--brand-red);
}

.stage-title.progress {
    color: var(--accent-amber);
}

.stage-title.secure {
    color: var(--state-secure);
}

.stage-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Alert Lines */
.stage-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-line {
    padding: 10px 16px;
    background: rgba(196, 30, 58, 0.1);
    border-left: 3px solid var(--brand-red);
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--brand-red);
    text-align: left;
}

/* Fix Items */
.stage-fixes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fix-item {
    padding: 10px 16px;
    font-size: 14px;
    text-align: left;
    border-radius: 6px;
}

.fix-item.applied {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--state-secure);
    color: var(--state-secure);
}

.fix-item.pending {
    background: rgba(255, 170, 0, 0.1);
    border-left: 3px solid var(--accent-amber);
    color: var(--accent-amber);
}

/* Metrics */
.stage-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
}

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

.metric-val {
    display: block;
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--state-secure);
}

.metric-lbl {
    font-size: 12px;
    color: rgba(0, 255, 136, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Labels */
.journey-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.label-start {
    color: var(--brand-red);
}

.label-end {
    color: var(--state-secure);
}

/* Keep old classes for backward compatibility but hide them */
.consequence-slider-section {
    display: none;
}

.slider-wrapper {
    display: none;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    border: 2px solid var(--border-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Base State (Secured - Right Side) */
.slider-secured {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 30, 0.95) 0%, rgba(8, 25, 20, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slider-secured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.secured-display {
    text-align: center;
    position: relative;
    z-index: 1;
}

.secured-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    margin-bottom: 24px;
    animation: pulseGreen 2s infinite;
}

.secured-status .dot {
    width: 10px;
    height: 10px;
    background: var(--state-secure);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.secured-status span {
    font-size: 14px;
    font-weight: 600;
    color: var(--state-secure);
    letter-spacing: 2px;
}

@keyframes pulseGreen {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    }
}

.secured-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--state-secure);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.secured-subtitle {
    color: rgba(0, 255, 136, 0.7);
    font-size: 14px;
}

.secured-metrics {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--state-secure);
}

.metric-label {
    font-size: 11px;
    color: rgba(0, 255, 136, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Unsecured State (Left Side - Overlays) */
.slider-unsecured {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 10, 10, 0.98) 0%, rgba(30, 5, 5, 0.95) 100%);
    overflow: hidden;
    transition: width 0.05s linear;
}

.slider-unsecured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(196, 30, 58, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 58, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    animation: gridGlitch 0.5s infinite;
}

@keyframes gridGlitch {

    0%,
    90% {
        opacity: 1;
        transform: translateX(0);
    }

    92%,
    94% {
        opacity: 0.5;
        transform: translateX(2px);
    }

    95%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.unsecured-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    max-width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.unsecured-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.5);
    border-radius: 100px;
    margin-bottom: 24px;
    animation: alarmPulse 0.8s infinite;
}

@keyframes alarmPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(196, 30, 58, 0.3);
        border-color: rgba(196, 30, 58, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(196, 30, 58, 0.6);
        border-color: var(--brand-red);
    }
}

.unsecured-status .dot {
    width: 10px;
    height: 10px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: blink 0.3s infinite;
}

.unsecured-status span {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-red);
    letter-spacing: 2px;
}

.unsecured-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
    animation: textGlitch 3s infinite;
}

@keyframes textGlitch {

    0%,
    95% {
        transform: translateX(0);
        opacity: 1;
    }

    96% {
        transform: translateX(-3px);
        opacity: 0.8;
    }

    97% {
        transform: translateX(3px);
        opacity: 0.9;
    }

    98% {
        transform: translateX(-1px);
        opacity: 0.8;
    }

    99%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.unsecured-subtitle {
    color: rgba(196, 30, 58, 0.7);
    font-size: 14px;
}

.unsecured-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.alert-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(196, 30, 58, 0.1);
    border-left: 2px solid var(--brand-red);
    color: rgba(196, 30, 58, 0.9);
    font-size: 12px;
    font-family: var(--font-mono);
    animation: alertFlash 2s infinite;
}

.alert-item:nth-child(2) {
    animation-delay: 0.3s;
}

.alert-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes alertFlash {

    0%,
    80%,
    100% {
        opacity: 1;
    }

    40% {
        opacity: 0.6;
    }
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: left 0.05s linear;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.slider-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: var(--bg-primary);
    z-index: 1;
}

/* Labels */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.slider-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.slider-label.unsecured {
    color: var(--brand-red);
}

.slider-label.secured {
    color: var(--state-secure);
}

/* ============================================
   PROTOCOL INSPECTOR - Technical Trust
   ============================================ */
.protocol-inspector-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.inspector-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Protocol Tabs */
.protocol-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    justify-content: center;
}

.protocol-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.protocol-tab:hover {
    color: var(--brand-cyan);
    background: rgba(76, 201, 240, 0.1);
}

.protocol-tab.active {
    background: #0d1117;
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
}

.tab-icon {
    font-size: 16px;
}

/* Code Inspector */
.code-inspector {
    background: #0d1117;
    border: 1px solid var(--border-card);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots .dot.red {
    background: #ff5f56;
}

.code-dots .dot.yellow {
    background: #ffbd2e;
}

.code-dots .dot.green {
    background: #27ca40;
}

.code-title {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    color: var(--state-secure);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--state-secure);
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Code Panel */
.code-panel {
    display: none;
    padding: 20px;
    overflow-x: auto;
}

.code-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.code-panel pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}

.code-panel code {
    color: #c9d1d9;
}

/* Syntax Highlighting */
.code-panel .comment {
    color: #8b949e;
    font-style: italic;
}

.code-panel .keyword {
    color: #79c0ff;
}

.code-panel .number {
    color: #c99cff;
}

.code-panel .string {
    color: #a5d6ff;
}

.code-panel .function {
    color: #d2a8ff;
}

.code-panel .alert {
    color: var(--brand-red);
    font-weight: 600;
}

.code-panel .alert-detail {
    color: rgba(196, 30, 58, 0.8);
    padding-left: 20px;
}

.code-panel .secure {
    color: var(--state-secure);
    font-weight: 600;
}

.code-panel .secure-detail {
    color: rgba(0, 255, 136, 0.8);
    padding-left: 20px;
}

.code-panel .action {
    color: var(--brand-cyan);
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

/* Protocol Stats */
.protocol-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

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

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-cyan);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CONSEQUENCE VISUALIZATION
   ============================================ */
.consequence-viz-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.consequence-demo {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Industrial System Container */
.industrial-system {
    position: relative;
    height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Normal State */
.system-normal {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease;
}

.industrial-system:hover .system-normal {
    opacity: 0;
}

/* Attacked State */
.system-attacked {
    position: absolute;
    inset: 0;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    gap: 24px;
}

.industrial-system:hover .system-attacked {
    opacity: 1;
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(196, 30, 58, 0.03) 0px,
            rgba(196, 30, 58, 0.03) 2px,
            transparent 2px,
            transparent 4px);
    animation: glitchOverlay 0.1s infinite;
    pointer-events: none;
}

@keyframes glitchOverlay {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

/* System Graphics */
.system-graphic {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pump-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pump-body {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 100%);
    border: 2px solid var(--state-secure);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pump-body.attacked {
    border-color: var(--brand-red);
    animation: glitchPump 0.2s infinite;
}

@keyframes glitchPump {

    0%,
    100% {
        transform: translate(0);
    }

    25% {
        transform: translate(-2px, 1px);
    }

    75% {
        transform: translate(2px, -1px);
    }
}

.pump-motor {
    font-size: 32px;
}

.pump-label {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-top: 4px;
}

.pump-label.glitch {
    color: var(--brand-red);
    animation: textGlitch 0.3s infinite;
}

@keyframes textGlitch {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Valve */
.valve {
    position: relative;
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.valve-handle {
    width: 30px;
    height: 8px;
    background: #4a5a6a;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.valve-handle.open {
    transform: rotate(0deg);
    background: var(--state-secure);
}

.valve-handle.closed {
    transform: rotate(90deg);
    background: var(--brand-red);
}

.valve-body {
    width: 20px;
    height: 40px;
    background: #3a4a5a;
    border-radius: 4px;
    margin-top: 4px;
}

.valve.locked .lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    animation: pulse 1s infinite;
}

/* Pipes */
.pipe {
    width: 60px;
    height: 16px;
    background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
    border-radius: 8px;
}

.pipe.left {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.pipe.right {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.pipe.empty {
    opacity: 0.4;
}

/* Flow Indicator */
.flow-indicator {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.flow-arrow {
    color: var(--state-secure);
    font-weight: bold;
    animation: flowPulse 1s infinite;
}

.flow-arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.flow-arrow:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes flowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.flow-indicator.stopped .flow-arrow {
    color: var(--brand-red);
    animation: none;
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-top: 24px;
}

.system-status.online {
    background: rgba(0, 255, 136, 0.1);
    color: var(--state-secure);
}

.system-status.offline {
    background: rgba(196, 30, 58, 0.1);
    color: var(--brand-red);
    animation: statusBlink 0.5s infinite;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* System Metrics */
.system-metrics {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: auto;
}

.system-metrics .metric {
    text-align: center;
}

.system-metrics .metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.system-metrics .metric-value {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--state-secure);
}

/* Attack Alert */
.attack-alert {
    flex: 1;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--brand-red);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: alertPulse 1s infinite;
}

@keyframes alertPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(196, 30, 58, 0.2);
    }
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-icon {
    font-size: 24px;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-red);
    animation: textGlitch 0.3s infinite;
}

.alert-body {
    flex: 1;
}

.attack-alert .alert-line {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
}

.attack-alert .alert-line strong {
    color: var(--brand-red);
}

.ransom-message {
    margin-top: auto;
    padding: 12px;
    background: rgba(196, 30, 58, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-style: italic;
    color: var(--brand-red);
    text-align: center;
}

/* Consequence Message */
.consequence-message {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
}

.message-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.message-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.message-text .highlight-text {
    color: var(--brand-cyan);
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .industrial-system {
        height: auto;
        min-height: 400px;
    }

    .system-attacked {
        flex-direction: column;
    }

    .pump-container {
        transform: scale(0.85);
    }

    .system-metrics {
        flex-wrap: wrap;
        gap: 16px;
    }

    .message-text {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .protocol-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .protocol-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .code-panel pre {
        font-size: 11px;
    }

    .protocol-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* ============================================
   RESOURCES SECTION - Downloadable PDFs
   ============================================ */
.resources-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.resource-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.resource-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.resource-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-cyan);
    margin-bottom: 8px;
}

.resource-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.resource-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.resource-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 6px;
    color: var(--brand-cyan);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.resource-download:hover {
    background: var(--brand-cyan);
    color: var(--bg-primary);
}

@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .resource-card {
        padding: 20px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .schematic-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Large */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-impact {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 20px;
    }

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

    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Persona Toggle */
    .persona-toggle {
        justify-content: center;
        margin-bottom: 24px;
    }

    /* Simulator */
    .simulator {
        padding: 20px;
        margin: 32px auto;
    }

    .simulator-title {
        font-size: 20px;
    }

    .industry-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .industry-option {
        padding: 12px 8px;
    }

    .industry-option .option-icon {
        font-size: 20px;
    }

    .industry-option .option-name {
        font-size: 11px;
    }

    /* Schematic */
    .schematic-section {
        padding: 60px 0;
    }

    .infra-node {
        padding: 24px 20px;
    }

    .node-title {
        font-size: 16px;
    }

    .vulnerability-points {
        flex-direction: column;
        gap: 8px;
    }

    .vuln-point {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 10px;
    }

    .vuln-point span:not(.vuln-icon) {
        font-size: 12px;
        white-space: normal;
        word-wrap: break-word;
    }

    .infra-node.protected .vulnerability-points {
        gap: 6px;
    }

    .shield-action {
        padding: 14px 12px;
        font-size: 14px;
    }

    /* Value Props */
    .value-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px 20px;
    }

    /* Journey Slider */
    .journey-slider-container {
        padding: 0 16px;
    }

    .journey-display {
        padding: 28px 20px;
        min-height: 240px;
    }

    .stage-title {
        font-size: 22px;
    }

    .stage-metrics {
        flex-direction: column;
        gap: 16px;
    }

    .metric-val {
        font-size: 28px;
    }

    .journey-handle {
        width: 40px;
        height: 40px;
    }

    /* Compliance Quiz */
    .compliance-widget {
        margin: 0 auto;
    }

    .compliance-header,
    .compliance-body {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .answer-options {
        grid-template-columns: 1fr;
    }

    /* Section Headers */
    .section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Services Finder */
    .finder-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

/* Mobile - Small */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .impact-number {
        font-size: 32px;
    }

    .impact-label {
        font-size: 12px;
    }

    /* Simulator */
    .industry-options {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Journey */
    .journey-track {
        height: 12px;
    }

    .journey-handle {
        width: 36px;
        height: 36px;
    }

    .handle-icon {
        font-size: 16px;
    }

    .stage-dot {
        width: 10px;
        height: 10px;
    }

    .stage-indicator {
        padding: 8px 14px;
        font-size: 10px;
    }

    .stage-title {
        font-size: 20px;
    }

    .alert-line,
    .fix-item {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Quiz */
    .answer-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Services Finder */
    .finder-options {
        grid-template-columns: 1fr;
    }

    /* Schematic */
    .vulnerability-points {
        gap: 6px;
    }

    .vuln-point {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}