/* ================================================================
   PWN-ALL · styles.css
   Design system: editorial grid × terminal aesthetic × neon signal
   ================================================================ */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('/fonts/Inter-var.woff2') format('woff2'), url('/fonts/Inter-var.ttf') format('truetype'); }

/* ---------- DESIGN TOKENS ---------- */
/* Default = dark (works automatically without JS) */
:root {
    --bg:              #16171a;
    --bg-elev:         #1d1f23;
    --bg-panel:        #1b1d21;
    --border:          rgba(255,255,255,0.08);
    --border-strong:   rgba(255,255,255,0.18);
    --text:            #e7e8ec;
    --text-dim:        #9aa0aa;
    --text-muted:      #9197a0;
    --accent:          #9aa9d2;
    --accent-soft:     rgba(154,169,210,0.14);
    --accent-glow:     rgba(154,169,210,0.40);
    --signal:          #e08a78;
    --signal-warn:     #d8a657;
    --signal-info:     #7e9cc9;
    --grid-line:       rgba(255,255,255,0.035);
    --code-bg:         #111316;
    --shadow-card:     0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -40px rgba(0,0,0,0.9);
    --shadow-cta:      0 20px 60px -20px var(--accent-glow);
    color-scheme: dark;
}

/* Auto: light theme when the system prefers light AND the user has NOT forced dark */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg:              #fbfbfc;
        --bg-elev:         #ffffff;
        --bg-panel:        #f6f7f8;
        --border:          rgba(10,10,10,0.10);
        --border-strong:   rgba(10,10,10,0.22);
        --text:            #15171c;
        --text-dim:        #565b62;
        --text-muted:      #6a7077;
        --accent:          oklch(0.40 0.10 273);
        --accent-soft:     oklch(0.40 0.10 273 / 0.10);
        --accent-glow:     oklch(0.40 0.10 273 / 0.28);
        --signal:          #b3303f;
        --signal-warn:     #9c6f10;
        --signal-info:     #3b5b9c;
        --grid-line:       rgba(10,10,10,0.04);
        --code-bg:         #1d1f23;
        --shadow-card:     0 1px 2px rgba(0,0,0,0.04), 0 20px 40px -30px rgba(0,0,0,0.25);
        --shadow-cta:      0 16px 40px -16px var(--accent-glow);
        color-scheme: light;
    }
}

/* Manual light override — wins regardless of system preference */
:root[data-theme="light"] {
    --bg:              #fbfbfc;
    --bg-elev:         #ffffff;
    --bg-panel:        #f6f7f8;
    --border:          rgba(10,10,10,0.10);
    --border-strong:   rgba(10,10,10,0.22);
    --text:            #15171c;
    --text-dim:        #565b62;
    --text-muted:      #6a7077;
    --accent:          oklch(0.40 0.10 273);
    --accent-soft:     oklch(0.40 0.10 273 / 0.10);
    --accent-glow:     oklch(0.40 0.10 273 / 0.28);
    --signal:          #b3303f;
    --signal-warn:     #9c6f10;
    --signal-info:     #3b5b9c;
    --grid-line:       rgba(10,10,10,0.04);
    --code-bg:         #1d1f23;
    --shadow-card:     0 1px 2px rgba(0,0,0,0.04), 0 20px 40px -30px rgba(0,0,0,0.25);
    --shadow-cta:      0 16px 40px -16px var(--accent-glow);
    color-scheme: light;
}

/* Manual dark override — wins regardless of system preference */
:root[data-theme="dark"] {
    --bg:              #16171a;
    --bg-elev:         #1d1f23;
    --bg-panel:        #1b1d21;
    --border:          rgba(255,255,255,0.08);
    --border-strong:   rgba(255,255,255,0.18);
    --text:            #e7e8ec;
    --text-dim:        #9aa0aa;
    --text-muted:      #9197a0;
    --accent:          #9aa9d2;
    --accent-soft:     rgba(154,169,210,0.14);
    --accent-glow:     rgba(154,169,210,0.40);
    --signal:          #e08a78;
    --signal-warn:     #d8a657;
    --signal-info:     #7e9cc9;
    --grid-line:       rgba(255,255,255,0.035);
    --code-bg:         #111316;
    --shadow-card:     0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -40px rgba(0,0,0,0.9);
    --shadow-cta:      0 20px 60px -20px var(--accent-glow);
    color-scheme: dark;
}

/* fonts */
:root {
    --f-display: ui-serif, Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
    --f-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-mono:    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

em {
    font-style: normal;
    font-weight: 600;
}

button, input, select, textarea { font: inherit; }

button { cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* skip link */
.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--accent); color: var(--bg);
    padding: 8px 12px; border-radius: 4px; z-index: 1000;
    font-family: var(--f-mono); font-size: 13px;
}
.skip-link:focus { left: 8px; }

/* ---------- BACKGROUND ATMOSPHERE ---------- */
.bg-glow {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px circle at 80% -10%, var(--accent-soft), transparent 60%),
        radial-gradient(500px circle at -10% 40%, var(--accent-soft), transparent 65%);
    opacity: 0.6;
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section + .section {
    border-top: 1px dashed var(--border);
}

.section-head {
    max-width: 880px;
    margin-bottom: 64px;
}

.section-num {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 400;
}

.section-lead {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-dim);
    max-width: 640px;
    margin-top: 24px;
    line-height: 1.6;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 4px;
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 70px -20px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-sm { padding: 10px 16px; font-size: 12.5px; }

.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: 14px; }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

/* LOGO */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--f-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.2s;
}
.logo:hover { color: var(--accent); }

.logo-mark {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
}
.logo-bracket {
    opacity: 0.6;
    font-weight: 400;
}
.logo-text {
    margin: 0 2px;
    letter-spacing: 0.05em;
}
.logo-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1.1s steps(2) infinite;
}
.logo-suffix {
    margin-left: 4px;
    color: var(--text);
}

@keyframes blink { 50% { opacity: 0; } }

/* NAV */
.main-nav ul {
    display: flex;
    gap: 24px;
}
.main-nav a {
    font-family: var(--f-mono);
    font-size: 13.5px;
    color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
}
.main-nav a:hover { color: var(--accent); }

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

/* THEME TOGGLE — auto-switch icons based on current theme */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--text);
    transition: all 0.2s;
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* default (dark): show sun (to switch TO light) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* system-light mode without user override: show moon */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

/* manual light override: show moon */
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* manual dark override: show sun */
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: 80px;
    }
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 36px;
}
.status-line em {
    color: var(--signal-warn);
    font-style: normal;
    font-family: var(--f-mono);
}
.status-sep { opacity: 0.4; }

.status-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.4rem, 6.6vw, 5.4rem);
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.word-strike {
    position: relative;
    font-family: var(--f-display);
    font-style: italic;
    color: var(--text-dim);
}
.word-strike::after {
    content: "";
    position: absolute;
    left: -2%; right: -2%;
    top: 52%;
    height: 4px;
    background: var(--signal);
    transform: rotate(-2deg);
    border-radius: 2px;
    animation: strike 1.2s ease-out 0.4s both;
    transform-origin: left;
}

@keyframes strike {
    from { transform: rotate(-2deg) scaleX(0); }
    to { transform: rotate(-2deg) scaleX(1); }
}

.word-accent {
    color: var(--accent);
    font-family: var(--f-display);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px dashed var(--border);
    margin: 0;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats dt {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    order: 2;
}
.hero-stats dd {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 500;
    color: var(--text);
    order: 1;
    line-height: 1;
}
.hero-stats dd span {
    color: var(--accent);
    font-size: 0.7em;
    margin-left: 2px;
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; gap: 18px; }
}

/* Terminal visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.terminal {
    width: 100%;
    max-width: 520px;
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
    font-size: 12.5px;
    position: relative;
    z-index: 2;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.terminal:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.tb-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.6;
}
.tb-dot:nth-child(1) { background: #ff5f56; opacity: 0.8; }
.tb-dot:nth-child(2) { background: #ffbd2e; opacity: 0.8; }
.tb-dot:nth-child(3) { background: #27c93f; opacity: 0.8; }
.tb-title {
    margin-left: 10px;
    color: #c5c5c5;
    font-size: 11.5px;
}

.terminal-body {
    padding: 18px 20px;
    color: #d8d8d8;
    line-height: 1.75;
    min-height: 300px;
}
.terminal-body p {
    margin: 0;
    opacity: 0;
    animation: typeLine 0.25s ease-out forwards;
}
.terminal-body p:nth-child(1) { animation-delay: 0.2s; }
.terminal-body p:nth-child(2) { animation-delay: 0.6s; }
.terminal-body p:nth-child(3) { animation-delay: 1.0s; }
.terminal-body p:nth-child(4) { animation-delay: 1.4s; }
.terminal-body p:nth-child(5) { animation-delay: 1.8s; }
.terminal-body p:nth-child(6) { animation-delay: 2.2s; }
.terminal-body p:nth-child(7) { animation-delay: 2.8s; }
.terminal-body p:nth-child(8) { animation-delay: 3.2s; }
.terminal-body p:nth-child(9) { animation-delay: 3.8s; }
.terminal-body p:nth-child(10) { animation-delay: 4.4s; }

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

.t-prompt { color: var(--accent); margin-right: 8px; font-weight: 700; }
.t-dim { color: #6f6f78; }
.t-ok { color: var(--accent); margin-right: 8px; }
.t-warn { color: #ffb84d; margin-right: 8px; }
.t-crit { color: #ff4d5e; margin-right: 8px; font-weight: 700; }
.cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}

.scan-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scan-rings span {
    position: absolute;
    width: 120px; height: 120px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: ring 4s ease-out infinite;
}
.scan-rings span:nth-child(2) { animation-delay: 1.3s; }
.scan-rings span:nth-child(3) { animation-delay: 2.6s; }

@keyframes ring {
    0%   { transform: scale(0.4); opacity: 0.6; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    background: var(--bg-panel);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: scroll 40s linear infinite;
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
.marquee-track span:nth-child(even) { color: var(--accent); }

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* ---------- WHAT SECTION ---------- */
.what-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 80px;
}
@media (min-width: 720px) { .what-grid { grid-template-columns: repeat(3, 1fr); } }

.what-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.what-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, var(--accent-soft));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.what-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.what-card:hover::before { opacity: 1; }

.what-icon {
    width: 52px; height: 52px;
    color: var(--accent);
    margin-bottom: 24px;
}
.what-card h3 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.what-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ---------- INTERACTIVE TOGGLE: without/with pentest ---------- */
.comparison-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.comp-switch {
    display: inline-flex;
    padding: 4px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    position: relative;
}
.comp-switch-btn {
    padding: 10px 20px;
    font-family: var(--f-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s, background 0.3s;
    position: relative;
    z-index: 1;
}
.comp-switch-btn.is-active { color: var(--bg); background: var(--signal); }
.comp-switch-btn[data-state="good"].is-active { background: var(--accent); }
.comp-switch-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}
.comp-switch-btn.is-active .comp-switch-dot { opacity: 1; }

.comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    position: relative;
    width: 100%;
    transition: filter 0.4s ease;
}
@media (min-width: 880px) {
    .comparison {
        grid-template-columns: 1fr auto 1fr;
        gap: 24px;
    }
}

/* When toggled: dim the inactive side, highlight the active side */
.comparison.comp-state-bad .comp-good { opacity: 0.35; transform: scale(0.98); }
.comparison.comp-state-good .comp-bad { opacity: 0.35; transform: scale(0.98); }
.comparison .comp-col {
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s;
}
.comparison.comp-state-bad .comp-bad {
    box-shadow: 0 0 0 1px var(--signal), 0 20px 50px -20px rgba(255,77,94,0.35);
}
.comparison.comp-state-good .comp-good {
    box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px var(--accent-glow);
}

.comp-col {
    padding: 36px 32px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
}
.comp-bad {
    background: linear-gradient(180deg, rgba(255,77,94,0.06), transparent 70%);
    border-color: rgba(255,77,94,0.3);
}
.comp-good {
    background: linear-gradient(180deg, var(--accent-soft), transparent 70%);
    border-color: var(--accent);
}
.comp-col header { margin-bottom: 24px; }
.comp-badge {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border: 1px solid var(--signal);
    border-radius: 999px;
    margin-bottom: 16px;
}
.comp-badge-good { color: var(--accent); border-color: var(--accent); }
.comp-col h3 { font-size: 1.4rem; line-height: 1.25; }
.comp-bad h3 em { color: var(--signal); font-style: normal; font-weight: 700; }
.comp-good h3 em { color: var(--accent); font-style: normal; font-weight: 700; }
.comp-col ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.comp-col li { font-family: var(--f-mono); font-size: 13.5px; color: var(--text-dim); }

.comp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--text-muted);
    padding: 12px 0;
}

.comp-meter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.comp-meter-label {
    font-family: var(--f-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.bar {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 999px;
    animation: fillBar 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: left;
}
.bar-red { background: linear-gradient(90deg, var(--signal-warn), var(--signal)); }
.bar-green { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.comp-meter-val { font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.comp-bad .comp-meter-val { color: var(--signal); }
.comp-good .comp-meter-val { color: var(--accent); }

/* ---------- HOW / TIMELINE ---------- */
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: step;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    position: relative;
    transition: background 0.3s ease;
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-item:hover { background: var(--accent-soft); }
.timeline-item:hover .ti-marker {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg);
}

.ti-marker {
    width: 64px; height: 64px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s ease;
    align-self: start;
    margin-top: 4px;
}

.ti-body { display: flex; flex-direction: column; gap: 8px; }
.ti-body h3 {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 500;
}
.ti-body p { color: var(--text-dim); max-width: 640px; }
.ti-duration {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .timeline-item { grid-template-columns: 56px 1fr; gap: 20px; }
    .ti-marker { width: 48px; height: 48px; font-size: 12px; }
}

/* ================================================================
   PLAYGROUND — SHARED
   ================================================================ */
.pg-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 32px;
    margin-top: 20px;
    transition: border-color 0.3s;
}
.pg-card:hover { border-color: var(--border-strong); }
.pg-card:first-of-type { margin-top: 0; }

.pg-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px dashed var(--border);
}
.pg-tag {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pg-head h3 {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.pg-head p {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 720px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .pg-card { padding: 28px 22px; }
}

/* ---------- PLAYGROUND #1: CODE / FIND-THE-VULN ---------- */
.playground-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 960px) {
    .playground-grid { grid-template-columns: 1.5fr 1fr; }
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}

.code-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: #c5c5c5;
}
.code-filename { margin-left: 10px; }
.code-lang {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(154, 169, 210,0.15);
    color: var(--accent);
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.code-body {
    margin: 0;
    padding: 16px 0;
    overflow-x: auto;
    color: #d8d8d8;
    font-size: 13px;
    line-height: 1.75;
}
.code-body code { display: block; }
.code-line {
    display: block;
    padding: 1px 18px 1px 6px;
    position: relative;
    transition: background 0.2s;
}
.code-line:hover { background: rgba(255,255,255,0.04); }
.ln {
    display: inline-block;
    width: 28px;
    color: #9197a0;
    text-align: right;
    margin-right: 14px;
    user-select: none;
}
.k { color: #c792ea; }
.s { color: #c3e88d; }
.c { color: #676e95; font-style: italic; }

.code-line.vuln {
    background: rgba(255,77,94,0.08);
    border-left: 2px solid var(--signal);
    cursor: help;
    outline: none;
}
.code-line.vuln:hover,
.code-line.vuln:focus {
    background: rgba(255,77,94,0.2);
    box-shadow: inset 0 0 0 1px rgba(255,77,94,0.4);
}
.code-line.vuln::after {
    content: "⚠ vulnerability";
    position: absolute;
    right: 16px; top: 2px;
    font-size: 10px;
    color: var(--signal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s;
}
.code-line.vuln:hover::after,
.code-line.vuln:focus::after { opacity: 1; }

.code-line.vuln[data-tip]:hover::before,
.code-line.vuln[data-tip]:focus::before {
    content: attr(data-tip);
    position: absolute;
    left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--signal);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--f-body);
    font-size: 12.5px;
    line-height: 1.45;
    width: 280px;
    z-index: 10;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    pointer-events: none;
    white-space: normal;
}

.playground-side { display: flex; flex-direction: column; gap: 16px; }

.hint-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s;
}
.hint-card:hover { border-color: var(--accent); }

.hint-label {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.hint-card p { color: var(--text-dim); font-size: 14px; }
.hint-card p + p { margin-top: 8px; }

.hint-card-alt { border-color: rgba(255,77,94,0.3); }
.hint-card-alt .hint-label { color: var(--signal); }

.hint-code {
    font-family: var(--f-mono) !important;
    background: var(--code-bg);
    color: #d8d8d8 !important;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 13px !important;
    margin-bottom: 10px !important;
}
.hint-code span { color: var(--signal); font-weight: 700; }

.hint-stats {
    padding: 28px 24px;
    background: linear-gradient(140deg, var(--accent-soft), transparent 80%);
    border: 1px solid var(--accent);
    border-radius: 6px;
}
.hint-stats strong {
    font-family: var(--f-display);
    font-size: 3.4rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.hint-stats sup { font-size: 0.5em; margin-left: 2px; }
.hint-stats span {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.5;
    display: block;
}

/* ---------- PLAYGROUND #2: PASSWORD CRACKER ---------- */
.cracker { display: flex; flex-direction: column; gap: 24px; }

.cracker-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cracker-input {
    width: 100%;
    padding: 20px 24px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--f-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.06em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cracker-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.cracker-input::placeholder { color: var(--text-muted); }

.cracker-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cracker-sample {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s;
}
.cracker-sample:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cracker-output {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.cracker-meter {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.cracker-meter-fill {
    height: 100%;
    width: 0%;
    background: var(--signal);
    border-radius: 999px;
    transition: width 0.4s ease, background 0.4s ease, box-shadow 0.4s;
}
.cracker-meter-fill[data-level="weak"]   { background: var(--signal); }
.cracker-meter-fill[data-level="fair"]   { background: var(--signal-warn); }
.cracker-meter-fill[data-level="good"]   { background: var(--signal-info); }
.cracker-meter-fill[data-level="strong"] {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.cracker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin: 0;
}
.cracker-grid-wide { grid-column: 1 / -1; padding-top: 16px; border-top: 1px dashed var(--border); }

.cracker-grid dt {
    font-family: var(--f-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.cracker-grid dd {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}
.cracker-grid dd .unit {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 6px;
    font-weight: 400;
}
#pw-label[data-level="weak"]   { color: var(--signal); }
#pw-label[data-level="fair"]   { color: var(--signal-warn); }
#pw-label[data-level="good"]   { color: var(--signal-info); }
#pw-label[data-level="strong"] { color: var(--accent); }

#pw-time { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

/* ---------- PLAYGROUND #3: ATTACK SURFACE MAP ---------- */
.surface {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 880px) {
    .surface { grid-template-columns: 1.6fr 1fr; }
}

.surface-board {
    position: relative;
    aspect-ratio: 700 / 380;
    background:
        radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 50%),
        var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    overflow: hidden;
}

.surface-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.surface-svg line {
    stroke: var(--border-strong);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    transition: stroke 0.3s;
}

.sf-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1.5px solid var(--border-strong);
    font-family: var(--f-mono);
    font-size: clamp(9px, 1.4vw, 11px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}
.sf-node span { pointer-events: none; }
.sf-node:hover { transform: translate(-50%, -50%) scale(1.1); }

/* risk color coding */
.sf-node[data-risk="entry"]    { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.sf-node[data-risk="low"]      { border-color: var(--signal-info); color: var(--signal-info); }
.sf-node[data-risk="medium"]   { border-color: var(--signal-warn); color: var(--signal-warn); }
.sf-node[data-risk="high"]     { border-color: var(--signal); color: var(--signal); }
.sf-node[data-risk="critical"] {
    border-color: var(--signal);
    color: var(--signal);
    box-shadow: 0 0 18px rgba(255,77,94,0.5);
    animation: critPulse 2s ease-in-out infinite;
}

@keyframes critPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255,77,94,0.5); }
    50% { box-shadow: 0 0 32px rgba(255,77,94,0.85); }
}

.sf-node.is-active {
    background: var(--accent);
    color: var(--bg) !important;
    border-color: var(--accent) !important;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 3;
}

.surface-panel {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.surface-panel header { display: flex; flex-direction: column; gap: 8px; }

.sf-panel-tag {
    display: inline-block;
    width: fit-content;
    font-family: var(--f-mono);
    font-size: 10.5px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.3s;
}
.sf-panel-tag[data-risk="entry"]    { color: var(--accent); }
.sf-panel-tag[data-risk="low"]      { color: var(--signal-info); }
.sf-panel-tag[data-risk="medium"]   { color: var(--signal-warn); }
.sf-panel-tag[data-risk="high"]     { color: var(--signal); }
.sf-panel-tag[data-risk="critical"] { color: var(--signal); background: rgba(255,77,94,0.1); }

.surface-panel h4 {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 500;
    line-height: 1.15;
}
.surface-panel p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.sf-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-family: var(--f-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.sf-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.sf-dot-low      { background: var(--signal-info); }
.sf-dot-medium   { background: var(--signal-warn); }
.sf-dot-high     { background: var(--signal); }
.sf-dot-critical { background: var(--signal); box-shadow: 0 0 6px var(--signal); }

/* ---------- PLAYGROUND #4: INCIDENT RESPONSE SIM ---------- */
.ir {
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

.ir-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,77,94,0.08);
    border-bottom: 1px solid rgba(255,77,94,0.2);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-wrap: wrap;
}
.ir-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--signal);
    font-weight: 700;
}
.ir.is-success .ir-header { background: var(--accent-soft); border-color: var(--accent); }
.ir.is-success .ir-status { color: var(--accent); }
.ir.is-fail .ir-header { background: rgba(255,77,94,0.15); border-color: var(--signal); }

.ir-status-dot {
    width: 10px; height: 10px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
.ir-clock {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-dim);
}
.ir-clock-label { font-size: 10.5px; }
.ir-clock-val {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.ir-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
}
@media (min-width: 760px) {
    .ir-body { grid-template-columns: 1.8fr 1fr; }
}

.ir-scenario, .ir-score {
    background: var(--bg);
    padding: 28px 24px;
}

.ir-step-num {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ir-text {
    font-family: var(--f-display);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 24px;
}

.ir-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ir-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--f-body);
    font-size: 14.5px;
    color: var(--text);
    text-align: left;
    transition: all 0.2s;
    line-height: 1.5;
}
.ir-choice:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}
.ir-choice.is-chosen-good {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.ir-choice.is-chosen-meh {
    border-color: var(--signal-warn);
    background: rgba(255,184,77,0.08);
}
.ir-choice.is-chosen-bad {
    border-color: var(--signal);
    background: rgba(255,77,94,0.08);
}
.ir-choice:disabled { cursor: default; }
.ir-choice.is-dimmed { opacity: 0.35; pointer-events: none; }

.ir-choice-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-top: 2px;
}
.ir-choice.is-chosen-good .ir-choice-tag { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ir-choice.is-chosen-meh .ir-choice-tag  { background: var(--signal-warn); color: var(--bg); border-color: var(--signal-warn); }
.ir-choice.is-chosen-bad .ir-choice-tag  { background: var(--signal); color: var(--bg); border-color: var(--signal); }

.ir-score {
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ir-score h4 {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}
.ir-score-bar {
    height: 10px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.ir-score-fill {
    height: 100%;
    width: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.5s ease, background 0.5s ease;
}
.ir-score-text {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.6;
    flex-grow: 1;
}

.ir-reset {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.35s ease;
    overflow: hidden;
    cursor: pointer;
    min-height: 420px;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.service-card:hover,
.service-card:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.service-card-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--bg-panel) 60%);
}
.featured-pill {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card header { display: flex; align-items: baseline; gap: 12px; }
.service-tag {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.service-card h3 {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 500;
}
.service-card > p { color: var(--text-dim); font-size: 15px; }

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.service-list li {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--text-dim);
}

.service-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.service-price {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.arrow {
    transition: transform 0.25s ease;
    color: var(--text-dim);
}
.service-card:hover .arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
}

/* ---------- WHY ---------- */
.why-grid { display: flex; flex-direction: column; gap: 60px; }

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin: 0;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
@media (min-width: 860px) {
    .metrics { grid-template-columns: repeat(4, 1fr); }
}

.metric {
    background: var(--bg-panel);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.3s;
}
.metric:hover { background: var(--bg-elev); }

.metric dd {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.metric-val {
    font-family: var(--f-display);
    font-size: clamp(3rem, 5vw, 4.4rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.metric-unit {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: var(--accent);
    font-style: italic;
}
.metric dt {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.chart-block {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 36px;
}
.chart-title {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.chart {
    position: relative;
    height: 240px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-grid {
    position: absolute;
    top: 0; left: 56px; right: 0; bottom: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.chart-grid span {
    display: block;
    height: 1px;
    border-top: 1px dashed var(--border);
}

.chart-y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 28px;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 10px;
    height: 100%;
    padding-bottom: 28px;
    position: relative;
}
.cbar {
    height: var(--h);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent) 50%, var(--bg-elev)),
        color-mix(in srgb, var(--accent) 20%, var(--bg-elev)));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
    animation: growBar 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: bottom;
}
.cbar:nth-child(1) { animation-delay: 0.05s; }
.cbar:nth-child(2) { animation-delay: 0.15s; }
.cbar:nth-child(3) { animation-delay: 0.25s; }
.cbar:nth-child(4) { animation-delay: 0.35s; }
.cbar:nth-child(5) { animation-delay: 0.45s; }
.cbar:nth-child(6) { animation-delay: 0.55s; }
.cbar:nth-child(7) { animation-delay: 0.65s; }

@keyframes growBar {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

.cbar-accent {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
    box-shadow: 0 0 16px var(--accent-glow);
}
.cbar-good {
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, transparent));
    box-shadow: 0 0 16px var(--accent-glow);
}
.cbar span {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.cbar:hover { transform: translateY(-4px); filter: brightness(1.15); }

.chart-caption {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.7;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.cap-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 10.5px;
}
.cap-pill-bad { background: rgba(255,77,94,0.15); color: var(--signal); }
.cap-pill-good { background: var(--accent-soft); color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
    background: var(--bg-panel);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(800px circle at 10% 90%, var(--accent-soft), transparent 60%),
        radial-gradient(600px circle at 90% 10%, rgba(255,77,94,0.06), transparent 60%);
    pointer-events: none;
}

.cta-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}
@media (min-width: 960px) {
    .cta-wrap { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
}

.cta-bullets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cta-bullets li {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--text-dim);
}

.cta-form {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-title {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.field-opt { text-transform: none; color: var(--text-muted); letter-spacing: normal; }

.field input,
.field select {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    padding: 10px 2px;
    color: var(--text);
    font-family: var(--f-mono);
    font-size: 14px;
    transition: border-color 0.2s;
    border-radius: 0;
    outline: none;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus { border-color: var(--accent); }

.field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2339ff7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}
:root[data-theme="light"] .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a6e2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a6e2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }
}

.form-hint {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.04em;
}

/* ---------- CTA CHANNELS (replaces form) ---------- */
.cta-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-ch-title {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    opacity: .8;
}

/* Email + PGP side-by-side */
.cta-ch-row {
    display: flex;
    gap: 10px;
}
.cta-ch-row .cta-ch--email {
    flex: 4;   /* ~80% */
}
.cta-ch-row .cta-ch--pgp {
    flex: 1;   /* ~20% */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    text-align: center;
}
.cta-ch-row .cta-ch--pgp .cta-ch__arrow {
    display: none;
}
.cta-ch-row .cta-ch--pgp .cta-ch__body {
    align-items: center;
}

/* Base channel card */
.cta-ch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--f-mono);
    position: relative;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

/* terminal scan-line on hover */
.cta-ch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent,
        color-mix(in oklab, var(--accent) 10%, transparent),
        transparent
    );
    transform: translateX(-110%);
    transition: transform .5s ease;
}
.cta-ch:hover::before {
    transform: translateX(110%);
}
.cta-ch:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px var(--accent-glow);
}

.cta-ch__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
    color: var(--accent);
}
/* signal SVG is self-colored (blue brand bg + white icon) — preserve on all themes */
.cta-ch--signal .cta-ch__icon img {
    filter: none;
    border-radius: 4px;
}

.cta-ch__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.cta-ch__label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    color: var(--accent);
    opacity: .8;
}
.cta-ch__val {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-ch__arrow {
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .2s;
    opacity: .7;
}
.cta-ch:hover .cta-ch__arrow {
    transform: translate(4px, -4px);
    opacity: 1;
}

/* Promise line */
.cta-ch-promise {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.cta-ch-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: ch-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes ch-dot-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-ch-dot { animation: none; }
    .cta-ch      { transition: none; }
}

@media (max-width: 480px) {
    .cta-ch-row { flex-direction: column; }
    .cta-ch-row .cta-ch--email,
    .cta-ch-row .cta-ch--pgp {
        flex: none;
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        text-align: left;
    }
    .cta-ch-row .cta-ch--pgp .cta-ch__arrow { display: block; }
}

/* ---------- FOOTER ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px dashed var(--border);
}
.footer-brand {
    grid-column: 1 / -1;
}
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
    .footer-brand { grid-column: auto; }
}

.footer-brand p {
    color: var(--text-dim);
    max-width: 280px;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.socials a {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 860px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .main-nav { display: none; }
    .header-actions .btn { display: none; }
    .hero { padding-top: 48px; }
    .hero-visual { min-height: 320px; }
    .terminal { font-size: 11px; transform: none; }
    .terminal-body { min-height: 240px; padding: 14px 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .section { padding: 56px 0; }
    .cta-form { padding: 28px 22px; }
    .metric { padding: 28px 22px; }
    .chart-block { padding: 24px 20px; }
}

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

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

/* ================================================================
   PLAYGROUND — TABS & 4 INTERACTIVE DEMOS
   ================================================================ */

/* Tabs bar */
.play-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 36px;
    padding: 6px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: auto;
}
@media (max-width: 720px) {
    .play-tabs {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

.play-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 18px;
    border-radius: 5px;
    background: transparent;
    font-family: var(--f-mono);
    color: var(--text-dim);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
}
.play-tab:hover {
    background: var(--accent-soft);
    color: var(--text);
}
.play-tab.is-active {
    background: var(--bg);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 20px -6px var(--accent-glow);
}
.play-tab.is-active .tab-num { color: var(--accent); }

.tab-num {
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    transition: color 0.25s;
}
.tab-label {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Panels */
.play-panel { display: none; animation: panelFade 0.4s ease; }
.play-panel.is-active { display: block; }
.play-panel[hidden] { display: none; }
.play-panel.is-active[hidden] { display: none; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ============================================================
   DEMO 2 — password cracker
   ============================================================ */

.crack-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}

.crack-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    color: #c5c5c5;
    font-size: 12px;
}
.crack-title { margin-left: 10px; }
.crack-status {
    margin-left: auto;
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s;
}
.crack-status[data-state="cracking"] {
    background: rgba(255,184,77,0.15);
    color: var(--signal-warn);
}
.crack-status[data-state="weak"] {
    background: rgba(255,77,94,0.15);
    color: var(--signal);
}
.crack-status[data-state="strong"] {
    background: var(--accent-soft);
    color: var(--accent);
}

.crack-body { padding: 28px 24px; color: #d8d8d8; }

.crack-label {
    display: block;
    font-size: 11.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.crack-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 24px;
}
.crack-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-prefix {
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
}
.crack-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #eee;
    font-family: var(--f-mono);
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 2px 0;
    caret-color: var(--accent);
}
.crack-input::placeholder { color: #666; }

.crack-meter {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
}
.meter-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 14px;
    align-items: center;
    font-size: 12px;
}
.meter-row-big { grid-template-columns: 110px 1fr; }
.meter-key {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10.5px;
}
.meter-track {
    height: 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--signal), var(--signal-warn), var(--accent));
    background-size: 300% 100%;
    background-position: left center;
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-position 0.4s;
}
.meter-val {
    color: #ccc;
    font-size: 12px;
}
.meter-big {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--accent);
    font-style: italic;
    line-height: 1;
    text-align: left;
}
.meter-big.meter-big-bad { color: var(--signal); }
.meter-big.meter-big-warn { color: var(--signal-warn); }

.meter-pill {
    padding: 3px 10px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.meter-pill.rating-weak { background: rgba(255,77,94,0.18); color: var(--signal); }
.meter-pill.rating-medium { background: rgba(255,184,77,0.18); color: var(--signal-warn); }
.meter-pill.rating-strong { background: var(--accent-soft); color: var(--accent); }

.crack-log {
    min-height: 60px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #c5c5c5;
}
.crack-log p { margin: 0; }

.hint-tip-list {
    padding: 24px;
    border: 1px dashed var(--border-strong);
    border-radius: 6px;
}
.hint-tip-list strong {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.hint-tip-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.try-btn {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--text);
    padding: 6px 10px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    display: block;
}
.try-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(2px);
}

/* ============================================================
   DEMO 3 — phishing spotter
   ============================================================ */

.playground-grid-phish { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .playground-grid-phish { grid-template-columns: 1.6fr 1fr; }
}

.phish-block {
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.phish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
}
.phish-from { display: flex; align-items: center; gap: 12px; }
.phish-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #4285f4, #ea4335 60%, #fbbc05);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 18px;
}
.phish-sender {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    font-family: var(--f-body);
}
.phish-email {
    display: block;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}
.phish-time {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.phish-subject {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.phish-sublabel {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phish-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-elev);
}
.phish-body strong { color: var(--text); }
.phish-signoff {
    margin-top: 4px;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* phishing red-flag highlighting — ONLY shown after player clicks */
.phish-mark {
    background: transparent;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    transition: all 0.35s ease;
}
.phish-block.revealed .phish-mark {
    background: rgba(255,77,94,0.22);
    color: var(--signal);
    text-decoration: underline wavy var(--signal);
    text-underline-offset: 3px;
}

.phish-link {
    color: var(--signal-info);
    text-decoration: underline;
    font-weight: 500;
}
.phish-link:hover { color: var(--accent); }
.link-reveal {
    display: inline-block;
    margin-left: 10px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--signal);
    background: rgba(255,77,94,0.12);
    padding: 2px 8px;
    border-radius: 3px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.35s;
}
.phish-block.revealed .link-reveal {
    opacity: 1;
    transform: translateX(0);
}
.link-reveal code {
    background: none;
    color: inherit;
    font-family: inherit;
}

.phish-controls {
    display: flex;
    gap: 10px;
    padding: 20px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    flex-wrap: wrap;
}
.phish-btn {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
}

/* NOTE: the modern .phish-feedback rules live further down the file
   (see `DEMO 3 — PHISHING QUIZ` block). Older v1 rules were removed to stop
   `.phish-feedback strong { display: block }` from breaking <strong> flow
   inside explanation paragraphs. */

/* flag list in side */
.flag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.flag-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.5;
}
.flag-list code {
    background: var(--code-bg);
    color: #d8d8d8;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--f-mono);
    font-size: 12px;
}
.flag-list b {
    color: var(--signal);
    font-weight: 700;
}
.flag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--signal);
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(255,77,94,0.6);
}

/* ============================================================
   DEMO 4 — port scanner
   ============================================================ */

.scan-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}

.scan-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
@media (max-width: 540px) {
    .scan-controls { grid-template-columns: 1fr; }
}

.scan-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #e8e8e8;
    font-family: var(--f-mono);
    font-size: 13px;
    padding: 10px 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2339ff7a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    transition: border-color 0.2s;
}
.scan-select:focus {
    outline: none;
    border-color: var(--accent);
}

.scan-btn {
    padding: 10px 20px;
    font-size: 13px;
}
.scan-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.scan-output {
    padding: 20px;
    min-height: 280px;
    color: #d8d8d8;
    font-size: 13px;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}
.scan-output p { margin: 0; }
.scan-output .scan-dim { color: #6f6f78; }
.scan-output .scan-ok { color: var(--accent); }
.scan-output .scan-warn { color: #ffb84d; }
.scan-output .scan-crit { color: #ff4d5e; font-weight: 700; }
.scan-output .scan-info { color: #5ac8fa; }

/* fade-in lines */
.scan-line {
    display: block;
    opacity: 0;
    animation: scanIn 0.3s ease-out forwards;
}
@keyframes scanIn {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

.scan-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 0;
    border-top: 1px solid var(--border);
    background: var(--border);
    animation: panelFade 0.4s ease;
}
@media (max-width: 640px) {
    .scan-summary { grid-template-columns: repeat(2, 1fr); }
}

.summary-item {
    padding: 20px 18px;
    background: var(--code-bg);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.summary-item .sum-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.summary-item strong {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}
.summary-info strong { color: var(--signal-info); }
.summary-warn strong { color: var(--signal-warn); }
.summary-crit strong { color: var(--signal); }

/* theme adjustments for light mode inside demo dark panels */
@media (prefers-color-scheme: light) {
    .crack-block,
    .scan-block {
        background: #1a1a1c;
        color: #eee;
    }
    .crack-body,
    .crack-label,
    .crack-log,
    .meter-val,
    .meter-key {
        color: #d8d8d8;
    }
    .crack-label { color: #aaa; }
    .meter-key { color: #999; }
    .crack-input { color: #fff; }
    .scan-select { color: #fff; }
    .summary-item strong { color: #fff; }
    .summary-item .sum-label { color: #aaa; }
    .summary-info strong { color: #5ac8fa; }
    .summary-warn strong { color: #ffb84d; }
    .summary-crit strong { color: #ff4d5e; }
    .crack-status { color: #aaa; background: rgba(255,255,255,0.05); }
    .try-btn {
        background: rgba(255,255,255,0.05);
        color: #eee;
        border-color: rgba(255,255,255,0.15);
    }
    .hint-tip-list { border-color: var(--border-strong); }
    .meter-pill { background: rgba(255,255,255,0.08); color: #ccc; }
}

/* ================================================================
   HERO — TERMINAL STATS PANEL (real DBIR 2025 data)
   ================================================================ */

.terminal-stats .terminal-body {
    padding: 20px 22px 22px;
    font-size: 13px;
    line-height: 1.75;
}

.stat-head {
    font-size: 13px;
    margin-bottom: 2px;
}

.stat-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    animation: statFadeIn 0.5s ease backwards;
}
.stat-row:nth-of-type(1) { animation-delay: 0.3s; }
.stat-row:nth-of-type(2) { animation-delay: 0.5s; }
.stat-row:nth-of-type(3) { animation-delay: 0.7s; }
.stat-row:nth-of-type(4) { animation-delay: 0.9s; }
.stat-row:nth-of-type(5) { animation-delay: 1.1s; }
.stat-row:last-of-type { border-bottom: none; }

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

.stat-num {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.01em;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.stat-num small {
    font-size: 0.55em;
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 2px;
    font-family: var(--f-mono);
}
.stat-num.stat-warn { color: var(--signal-warn); }
.stat-num.stat-crit { color: var(--signal); }

.stat-label {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: #c8c8cc;
    line-height: 1.5;
}
.stat-label em {
    font-style: normal;
    color: #fff;
    font-weight: 500;
    background: rgba(154, 169, 210,0.1);
    padding: 1px 6px;
    border-radius: 3px;
}
.terminal-stats .stat-row:nth-of-type(2) .stat-label em,
.terminal-stats .stat-row:nth-of-type(4) .stat-label em {
    background: rgba(255,184,77,0.12);
}
.terminal-stats .stat-row:nth-of-type(3) .stat-label em {
    background: rgba(255,77,94,0.14);
}

/* ================================================================
   HERO — STATBOARD (replaces terminal-stats, system fonts only)
   ================================================================ */

.statboard {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.statboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 120% -20%, var(--accent-soft), transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.statboard > * { position: relative; z-index: 1; }

.statboard-head {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 22px;
    margin-bottom: 22px;
}
.statboard-kicker {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 10px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    margin-bottom: 14px;
}
.statboard-title {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}
.statboard-title em {
    font-style: normal;
    color: var(--accent);
    font-weight: 600;
}

.statboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 1080px) and (min-width: 961px) {
    .statboard-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
    .statboard-grid { grid-template-columns: 1fr; gap: 10px; }
}

.stat-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 18px 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: statCellIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.stat-cell:nth-of-type(1) { animation-delay: 0.1s; }
.stat-cell:nth-of-type(2) { animation-delay: 0.2s; }
.stat-cell:nth-of-type(3) { animation-delay: 0.3s; }
.stat-cell:nth-of-type(4) { animation-delay: 0.4s; }
.stat-cell:nth-of-type(5) { animation-delay: 0.5s; }
.stat-cell:nth-of-type(6) { animation-delay: 0.6s; }
.stat-cell:hover { transform: translateY(-2px); border-left-width: 5px; }

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

.stat-cell-warn { border-left-color: var(--signal-warn); }
.stat-cell-crit { border-left-color: var(--signal); }
.stat-cell-wide { grid-column: span 2; }
@media (max-width: 480px) {
    .stat-cell-wide { grid-column: auto; }
}

.stat-cell-dim { background: transparent; border-style: dashed; }
.stat-cell-dim .stat-big { color: var(--text); }

.stat-big {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.stat-big-sm { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.stat-big small {
    font-size: 0.45em;
    font-weight: 400;
    margin-left: 2px;
    color: inherit;
    opacity: 0.7;
    font-family: var(--f-mono);
}
.stat-cell-warn .stat-big { color: var(--signal-warn); }
.stat-cell-crit .stat-big { color: var(--signal); }

.stat-cell figcaption {
    font-family: var(--f-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-dim);
}
.stat-cell figcaption strong { color: var(--text); font-weight: 600; }

.stat-delta {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    color: var(--signal-warn);
    letter-spacing: 0.04em;
    background: rgba(255,184,77,0.1);
    padding: 2px 7px;
    border-radius: 999px;
}

/* On small screens the absolute badge collides with the big number.
   Drop it inline under the caption instead. */
@media (max-width: 720px) {
    .stat-delta {
        position: static;
        display: inline-block;
        margin-top: 6px;
    }
}

/* ================================================================
   MOBILE TABS FIX — horizontal scroll with dividers
   ================================================================ */

.play-tabs {
    position: relative;
}
@media (max-width: 820px) {
    .play-tabs {
        display: flex;
        gap: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: var(--bg-panel);
        border-radius: 8px;
        scroll-snap-type: x mandatory;
    }
    .play-tabs::-webkit-scrollbar { display: none; }

    .play-tab {
        flex: 0 0 auto;
        min-width: 140px;
        border-radius: 0;
        padding: 14px 18px;
        scroll-snap-align: start;
        border: none;
        border-right: 1px solid var(--border);
    }
    .play-tab:last-child { border-right: none; }
    .play-tab.is-active {
        background: var(--bg);
        box-shadow: inset 0 -3px 0 var(--accent);
        border-color: var(--border);
    }
    .play-tabs::after {
        content: '';
        position: absolute;
        right: 0; top: 0; bottom: 0;
        width: 32px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, var(--bg) 80%);
    }
}

/* ================================================================
   DEMO 5 — EXPOSED DEV FILES
   ================================================================ */

.probe-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
    color: #d8d8d8;
}

.probe-intro {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: #c8c8cc;
    line-height: 1.6;
    background: rgba(255,255,255,0.02);
}

.probe-targets {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}
.probe-host {
    display: inline-block;
    font-size: 12.5px;
    color: #888;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.probe-paths {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.probe-path {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: #e0e0e0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.probe-path:hover {
    background: rgba(154, 169, 210,0.08);
    border-color: var(--accent);
    transform: translateX(2px);
}
.probe-path.is-probed {
    background: rgba(255,77,94,0.1);
    border-color: var(--signal);
    color: var(--signal);
}
.probe-path.is-probed-ok {
    background: rgba(154, 169, 210,0.08);
    border-color: var(--accent);
    color: var(--accent);
}
.path-method {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.probe-path code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 12.5px;
}

.probe-output {
    padding: 20px 22px;
    min-height: 180px;
    font-size: 13px;
    line-height: 1.7;
    background: var(--code-bg);
    max-height: 380px;
    overflow-y: auto;
}
.probe-output .probe-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-right: 8px;
}
.probe-output .ps-200 { background: rgba(255,77,94,0.15); color: var(--signal); }
.probe-output .ps-404 { background: rgba(255,255,255,0.06); color: #888; }
.probe-output .ps-403 { background: rgba(255,184,77,0.15); color: var(--signal-warn); }
.probe-output pre {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--signal);
    border-radius: 3px;
    font-size: 12px;
    color: #e5e5e5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
.probe-output pre.pre-ok { border-left-color: var(--accent); }
.probe-output .probe-verdict {
    display: block;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255,77,94,0.08);
    border-radius: 4px;
    font-size: 12.5px;
    color: #eaeaea;
}
.probe-output .probe-verdict.ok {
    background: rgba(154, 169, 210,0.08);
}
.probe-output .probe-verdict strong {
    color: var(--signal);
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 10.5px;
}
.probe-output .probe-verdict.ok strong { color: var(--accent); }

/* ================================================================
   DEMO 6 — SUBDOMAIN RECON
   ================================================================ */

.recon-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}
.recon-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
@media (max-width: 540px) { .recon-controls { grid-template-columns: 1fr; } }

.recon-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 8px 12px;
}
.recon-input-wrap:focus-within { border-color: var(--accent); }
.recon-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #eee;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.recon-btn { padding: 10px 20px; font-size: 13px; }
.recon-btn:disabled { opacity: 0.5; cursor: wait; }

.recon-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
    animation: panelFade 0.4s ease;
}
.r-stat {
    padding: 14px 16px;
    background: var(--code-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.r-stat-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.r-stat strong {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}
.r-stat:nth-child(3) strong { color: var(--signal); }

.recon-output {
    padding: 20px;
    min-height: 260px;
    max-height: 380px;
    overflow-y: auto;
    color: #d8d8d8;
    font-size: 12.5px;
    line-height: 1.75;
}
.recon-output p { margin: 0; }
.recon-line {
    display: block;
    opacity: 0;
    animation: scanIn 0.25s ease-out forwards;
}
.recon-line .r-status {
    display: inline-block;
    min-width: 54px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    margin-right: 10px;
    text-align: center;
    letter-spacing: 0.04em;
}
.recon-line .r-200 { background: rgba(154, 169, 210,0.1); color: var(--accent); }
.recon-line .r-302 { background: rgba(90,200,250,0.1); color: #5ac8fa; }
.recon-line .r-401 { background: rgba(255,184,77,0.1); color: var(--signal-warn); }
.recon-line .r-403 { background: rgba(255,184,77,0.1); color: var(--signal-warn); }
.recon-line .r-500 { background: rgba(255,77,94,0.12); color: var(--signal); }
.recon-line .r-dead { background: rgba(255,255,255,0.05); color: #666; }

.recon-line.is-juicy {
    background: rgba(255,77,94,0.06);
    margin: 0 -8px;
    padding: 2px 8px;
    border-left: 2px solid var(--signal);
}
.recon-line .r-tech {
    color: #888;
    margin-left: 8px;
    font-size: 11.5px;
}
.recon-line .r-host { color: #e8e8e8; }
.recon-line.is-juicy .r-host { color: var(--signal); font-weight: 700; }

/* ================================================================
   DEMO 7 — HTTP HEADER AUDIT
   ================================================================ */

.headers-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}

.headers-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    flex-wrap: wrap;
}
.headers-hint {
    font-size: 11.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.headers-switch {
    display: inline-flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px;
    gap: 2px;
}
.headers-switch-btn {
    padding: 6px 14px;
    font-family: var(--f-mono);
    font-size: 12px;
    background: transparent;
    color: #bbb;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.headers-switch-btn:hover { color: #fff; }
.headers-switch-btn.is-active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}

.headers-output {
    padding: 16px 0;
    max-height: 400px;
    overflow-y: auto;
}
.header-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 22px;
    font-size: 12.5px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.2s;
    color: #d8d8d8;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-family: var(--f-mono);
}
.header-row:last-child { border-bottom: none; }
.header-row:hover { background: rgba(255,255,255,0.03); }

.header-row .h-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}
.header-row.h-present .h-icon { background: rgba(154, 169, 210,0.12); color: var(--accent); }
.header-row.h-missing .h-icon { background: rgba(255,77,94,0.12); color: var(--signal); }
.header-row.h-weak    .h-icon { background: rgba(255,184,77,0.12); color: var(--signal-warn); }

.header-row .h-name {
    color: #e8e8e8;
    font-weight: 500;
}
.header-row.h-missing .h-name { color: #c8c8cc; text-decoration: line-through; text-decoration-color: rgba(255,77,94,0.5); }
.header-row .h-val {
    color: #888;
    font-size: 11.5px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-row.h-missing .h-val { color: var(--signal); font-style: italic; }

.header-row .h-info {
    display: none;
    grid-column: 2 / -1;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-left: 2px solid var(--accent);
    border-radius: 3px;
    font-size: 11.5px;
    color: #c8c8cc;
    line-height: 1.6;
    white-space: normal;
}
.header-row.is-expanded {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto;
}
.header-row.is-expanded .h-info { display: block; }
.header-row.h-missing .h-info { border-left-color: var(--signal); }
.header-row.h-weak    .h-info { border-left-color: var(--signal-warn); }

.headers-score {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    flex-wrap: wrap;
}
.hs-bar-wrap {
    flex: 1;
    min-width: 160px;
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    overflow: hidden;
}
.hs-bar {
    height: 100%;
    width: 0;
    background: var(--signal);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.22,1,0.36,1), background 0.4s;
}
.hs-bar.g-b { background: var(--signal-warn); }
.hs-bar.g-a { background: var(--accent); }

.hs-grade {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hs-grade strong {
    font-family: var(--f-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--signal);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hs-grade strong.g-b { color: var(--signal-warn); }
.hs-grade strong.g-a { color: var(--accent); }
.hs-score {
    font-size: 11.5px;
    color: #aaa;
    text-transform: none;
    letter-spacing: 0;
}

/* theme safety: these dark panels stay dark in light mode too */
@media (prefers-color-scheme: light) {
    .probe-block,
    .recon-block,
    .headers-block { background: #1a1a1c; color: #eee; }
    .probe-intro,
    .probe-output,
    .recon-output,
    .header-row { color: #d8d8d8; }
    .headers-hint,
    .path-method,
    .r-stat-label { color: #999; }
    .r-stat strong { color: #fff; }
    .recon-input { color: #fff; }
    .headers-switch-btn { color: #bbb; }
    .headers-switch-btn.is-active { color: var(--bg); }
}

/* ================================================================
   DEMO 2 — PASSWORD BRUTEFORCE (replaces crack simulator)
   ================================================================ */

.brute-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
}

.brute-controls {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.02);
}
.brute-target {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 12.5px;
    line-height: 1.4;
    flex-wrap: wrap;
}
.brute-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    min-width: 74px;
    flex-shrink: 0;
}
.brute-target code {
    background: rgba(154, 169, 210,0.08);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}
.brute-meta {
    font-size: 11.5px;
    color: #666;
}

.brute-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    flex-wrap: wrap;
}
.brute-btn {
    padding: 10px 20px;
    font-size: 13px;
}
.brute-btn:disabled { opacity: 0.5; cursor: wait; }

.brute-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,77,94,0.1);
    border: 1px solid rgba(255,77,94,0.3);
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--signal);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    animation: bruteLiveFade 0.4s ease;
}
@keyframes bruteLiveFade { from { opacity:0; transform:translateX(-6px) } to { opacity:1; transform:translateX(0) } }
.brute-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(255,77,94,0.55);
    animation: brutePulse 1.2s ease-out infinite;
}
@keyframes brutePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,77,94,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(255,77,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}

.brute-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
    animation: panelFade 0.4s ease;
}
@media (max-width: 540px) { .brute-stats { grid-template-columns: repeat(2, 1fr); } }
.b-stat {
    padding: 14px 16px;
    background: var(--code-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.b-stat-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.b-stat strong {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.b-stat-crit strong { color: var(--signal); }

.brute-output {
    padding: 18px 22px;
    min-height: 280px;
    max-height: 440px;
    overflow-y: auto;
    color: #d8d8d8;
    font-size: 12.5px;
    line-height: 1.85;
    background: var(--code-bg);
    font-family: var(--f-mono);
}
.brute-output p { margin: 0; }
.brute-line {
    display: block;
    opacity: 0;
    animation: scanIn 0.22s ease-out forwards;
}
.brute-line .bl-status {
    display: inline-block;
    min-width: 54px;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    margin-right: 10px;
}
.brute-line .bl-403 { background: rgba(255,184,77,0.12); color: var(--signal-warn); }
.brute-line .bl-401 { background: rgba(255,255,255,0.04); color: #999; }
.brute-line .bl-429 { background: rgba(255,184,77,0.18); color: var(--signal-warn); }
.brute-line .bl-200 { background: rgba(255,77,94,0.18); color: var(--signal); }
.brute-line .bl-200.bl-200-ok { background: rgba(154, 169, 210,0.15); color: var(--accent); }
.brute-line .bl-info { background: rgba(90,200,250,0.1); color: #5ac8fa; min-width: auto; padding: 1px 8px; }

.brute-line .bl-cred {
    color: #c8c8cc;
    font-family: var(--f-mono);
    letter-spacing: 0.01em;
}
.brute-line.is-valid {
    background: rgba(255,77,94,0.1);
    margin: 6px -12px;
    padding: 6px 12px;
    border-left: 3px solid var(--signal);
    border-radius: 3px;
    animation: validFlash 0.6s ease-out forwards;
}
.brute-line.is-valid .bl-cred { color: var(--signal); font-weight: 700; }
.brute-line.is-valid .bl-valid-tag {
    margin-left: 10px;
    padding: 2px 8px;
    background: var(--signal);
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@keyframes validFlash {
    0%   { background: rgba(255,77,94,0.4); transform: translateX(-4px); }
    100% { background: rgba(255,77,94,0.1); transform: translateX(0); }
}

.brute-line.is-event {
    color: #888;
    font-style: italic;
    padding: 4px 0;
    border-top: 1px dashed rgba(255,255,255,0.05);
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    margin: 4px 0;
}

.brute-verdict {
    padding: 20px 22px;
    border-top: 1px solid var(--border);
    background: rgba(255,77,94,0.06);
    animation: panelFade 0.4s ease;
}
.brute-verdict strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--signal);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-style: italic;
}
.brute-verdict p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #d0d0d0;
    font-family: var(--f-body);
}
.brute-verdict p + p { margin-top: 8px; }
.brute-verdict .v-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 12px;
    color: #c8c8cc;
    margin-top: 10px;
    flex-wrap: wrap;
}
.brute-verdict .v-tag {
    padding: 2px 8px;
    background: rgba(255,77,94,0.15);
    color: var(--signal);
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* theme-safety for light mode */
@media (prefers-color-scheme: light) {
    .brute-block { background: #1a1a1c; color: #eee; }
    .b-stat strong { color: #fff; }
    .b-stat-crit strong { color: var(--signal); }
    .b-stat-label { color: #aaa; }
    .brute-label { color: #999; }
    .brute-meta { color: #888; }
    .brute-target code { background: rgba(154, 169, 210,0.15); color: var(--accent); }
}

/* Hidden attribute must override display rules */
[hidden] { display: none !important; }

/* ================================================================
   DEMO 3 — PHISHING QUIZ (game UI)
   ================================================================ */

.phish-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    gap: 20px;
    flex-wrap: wrap;
}
.phish-progress-info {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.phish-progress-info strong {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
}
.phish-score-label strong { color: var(--accent); }

.phish-progress-dots {
    display: flex;
    gap: 6px;
}
.pd {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: all 0.3s;
}
.pd.is-current {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-glow);
}
.pd.is-correct { background: var(--accent); }
.pd.is-wrong { background: var(--signal); }

/* Scenario wrapper */
.phish-scenario {
    min-height: 360px;
    animation: phishSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes phishSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Email card (reused across scenarios) */
.phish-scenario .phish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
}
.phish-scenario .phish-from { display: flex; align-items: center; gap: 12px; }
.phish-scenario .phish-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}
.avatar-google { background: linear-gradient(135deg, #4285f4, #ea4335 60%, #fbbc05); }
.avatar-microsoft { background: linear-gradient(135deg, #00a4ef, #7fba00 50%, #f25022); }
.avatar-docusign { background: linear-gradient(135deg, #fcbb00, #cf2a27); }
.avatar-hr { background: linear-gradient(135deg, #6e5ce6, #ff4d5e); }
.avatar-slack { background: linear-gradient(135deg, #4a154b, #611f69); }
.avatar-ceo { background: linear-gradient(135deg, #2d2d34, #5a5a68); }
.avatar-it { background: linear-gradient(135deg, var(--accent), #5a6aa8); color: var(--bg); }

.phish-scenario .phish-sender {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--f-body);
}
.phish-scenario .phish-email {
    display: block;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 2px;
    word-break: break-all;
}
.phish-scenario .phish-time {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.phish-scenario .phish-subject {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.phish-scenario .phish-sublabel {
    font-family: var(--f-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.phish-scenario .phish-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-elev);
}
.phish-scenario .phish-body strong { color: var(--text); }
.phish-scenario .phish-signoff {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 13px;
}

.phish-scenario .phish-link {
    color: var(--signal-info);
    text-decoration: underline;
    font-weight: 500;
    word-break: break-all;
}
.phish-scenario .phish-button-cta {
    display: inline-block;
    padding: 10px 22px;
    background: #1a73e8;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13.5px;
    margin: 6px 0;
}
.phish-scenario .phish-button-cta.ms { background: #0078d4; }
.phish-scenario .phish-button-cta.docusign { background: #cf2a27; }

/* QR-code block (quishing scenario) */
.phish-qr-block {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 10px 0;
    padding: 20px;
    background: var(--bg-panel);
    border: 1px dashed var(--border-strong);
    border-radius: 6px;
    flex-wrap: wrap;
}
.phish-qr {
    width: 100px; height: 100px;
    background:
        linear-gradient(#000 0 0) 0 0 / 28% 28% no-repeat,
        linear-gradient(#000 0 0) 72% 0 / 28% 28% no-repeat,
        linear-gradient(#000 0 0) 0 72% / 28% 28% no-repeat,
        /* fake noisy pattern */
        repeating-conic-gradient(#0c0c0d 0 25%, #fff 0 50%) 50% 50% / 8% 8%,
        #fff;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.phish-qr::before,
.phish-qr::after {
    content: '';
    position: absolute;
    width: 28%; height: 28%;
    background: #fff;
    border: 3px solid #000;
    box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 10px #000;
    top: 0; left: 0;
}
.phish-qr::after { top: 0; left: auto; right: 0; }
.phish-qr-caption { font-size: 13px; color: var(--text-dim); flex: 1; min-width: 180px; }
.phish-qr-caption strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Google Forms scenario */
.phish-form-preview {
    margin: 6px 0;
    padding: 18px;
    background: #ffffff;
    color: #202124;
    border-radius: 8px 8px 0 0;
    border-top: 10px solid #673ab7;
    font-family: var(--f-body);
}
.phish-form-preview h4 {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin: 0 0 4px;
}
.phish-form-preview .fp-sub {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 16px;
}
.phish-form-preview .fp-q {
    font-size: 13.5px;
    color: #202124;
    margin: 12px 0 6px;
    font-weight: 500;
}
.phish-form-preview .fp-q::after { content: ' *'; color: #d93025; }
.phish-form-preview .fp-input {
    height: 20px;
    border-bottom: 1px solid #dadce0;
    margin-bottom: 14px;
}
.phish-form-preview .fp-footer {
    color: #5f6368;
    font-size: 11px;
    border-top: 1px solid #dadce0;
    padding-top: 10px;
    margin-top: 16px;
}
.phish-form-preview .fp-footer strong { color: #202124; }

/* Device code scenario */
.phish-devcode {
    margin: 8px 0;
    padding: 18px;
    background: #fff;
    color: #201f1e;
    border-radius: 4px;
    font-family: var(--f-body);
    border: 1px solid #edebe9;
}
.phish-devcode .dc-ms-logo {
    font-size: 14px;
    color: #605e5c;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}
.phish-devcode .dc-ms-logo::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-right: 8px;
    background:
        linear-gradient(#f25022 0 0) 0 0 / 48% 48% no-repeat,
        linear-gradient(#7fba00 0 0) 100% 0 / 48% 48% no-repeat,
        linear-gradient(#00a4ef 0 0) 0 100% / 48% 48% no-repeat,
        linear-gradient(#ffb900 0 0) 100% 100% / 48% 48% no-repeat;
    vertical-align: -2px;
}
.phish-devcode h4 {
    font-size: 24px;
    font-weight: 300;
    color: #201f1e;
    margin: 0 0 8px;
}
.phish-devcode p {
    font-size: 13.5px;
    color: #323130;
    margin: 4px 0;
}
.phish-devcode .dc-code {
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0078d4;
    background: #eff6fc;
    padding: 10px 16px;
    border-radius: 4px;
    margin: 14px 0;
    display: inline-block;
}

/* Phishing feedback after answer */
.phish-feedback {
    padding: 20px 22px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    line-height: 1.6;
    animation: phishSlideIn 0.35s ease;
    color: var(--text);
    background: var(--bg-elev);
}
.phish-feedback.correct {
    background: var(--accent-soft);
    border-top-color: var(--accent);
}
.phish-feedback.wrong {
    background: rgba(255,77,94,0.08);
    border-top-color: var(--signal);
}
.phish-feedback-head {
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
}
.phish-feedback .fb-tag {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 10px;
    vertical-align: 2px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--f-mono);
}
.phish-feedback.correct .fb-tag { background: var(--accent); color: var(--bg); }
.phish-feedback.wrong .fb-tag { background: var(--signal); color: #fff; }
.phish-feedback-head strong {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    display: inline;
}
.phish-feedback.correct .phish-feedback-head strong { color: var(--accent); }
.phish-feedback.wrong .phish-feedback-head strong { color: var(--signal); }
.phish-feedback-tech {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--code-bg);
    color: #c8c8cc;
    border-radius: 4px;
    font-family: var(--f-mono);
    font-size: 12px;
}
.phish-feedback-tech span {
    display: inline-block;
    padding: 1px 8px;
    margin-right: 6px;
    background: rgba(255,184,77,0.14);
    color: var(--signal-warn);
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.phish-next-wrap {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

/* Final score card */
.phish-final {
    padding: 40px 28px;
    text-align: center;
    animation: phishSlideIn 0.5s ease;
}
.phish-final-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 28px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--bg-panel);
}
.pf-kicker {
    font-family: var(--f-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.phish-final-score strong {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.phish-final-score.score-5 strong { color: var(--accent); }
.phish-final-score.score-high strong { color: var(--accent); }
.phish-final-score.score-mid strong { color: var(--signal-warn); }
.phish-final-score.score-low strong { color: var(--signal); }

.phish-final-title {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 12px;
    font-style: italic;
    letter-spacing: -0.01em;
}
.phish-final-desc {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}
.phish-final-actions {
    margin-top: 24px;
    display: inline-flex;
    gap: 10px;
}

/* ================================================================
   DEMO 7 — CVE RADAR (replaces HTTP header audit)
   ================================================================ */

.playground-grid-cve { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .playground-grid-cve { grid-template-columns: 1.85fr 1fr; }
}

.cve-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto 1fr;
    font-family: var(--f-mono);
    min-height: 540px;
}
@media (max-width: 780px) {
    .cve-block { grid-template-columns: 1fr; }
}

.cve-block .code-head {
    grid-column: 1 / -1;
}

.cve-list {
    border-right: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
    background: rgba(255,255,255,0.015);
}
@media (max-width: 780px) {
    .cve-list { border-right: none; border-bottom: 1px solid var(--border); max-height: none; }
}

.cve-item {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--f-mono);
    color: #d8d8d8;
}
.cve-item:hover { background: rgba(154, 169, 210,0.04); }
.cve-item.is-active {
    background: rgba(154, 169, 210,0.08);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}
.cve-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.cve-id {
    font-size: 11px;
    color: #888;
    font-family: var(--f-mono);
    letter-spacing: 0.02em;
}
.cve-item.is-active .cve-id { color: var(--accent); }
.cve-score {
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--f-mono);
    letter-spacing: 0.04em;
    background: rgba(255,77,94,0.18);
    color: var(--signal);
}
.cve-score.score-high { background: rgba(255,184,77,0.15); color: var(--signal-warn); }

.cve-name {
    font-size: 14px;
    color: #e8e8e8;
    font-weight: 500;
    font-family: var(--f-body);
    line-height: 1.25;
    margin-bottom: 3px;
}
.cve-vendor {
    font-size: 11.5px;
    color: #888;
    font-family: var(--f-mono);
}

.cve-detail {
    padding: 22px 24px;
    color: #d8d8d8;
    font-size: 13.5px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 600px;
    animation: phishSlideIn 0.35s ease;
}
.cve-detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
    text-align: center;
}

.cve-detail h4 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: #f0f0f0;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.cve-detail .cd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--f-mono);
    font-size: 11.5px;
}
.cd-meta span {
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    color: #c8c8cc;
    border-radius: 3px;
}
.cd-meta .cd-cvss { background: rgba(255,77,94,0.15); color: var(--signal); font-weight: 700; }
.cd-meta .cd-kev { background: rgba(255,184,77,0.14); color: var(--signal-warn); }

.cve-detail h5 {
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 18px 0 8px;
}
.cve-detail p { margin: 0 0 8px; color: #c8c8cc; }
.cve-detail ol.cve-chain {
    margin: 8px 0 12px;
    padding-left: 0;
    list-style: none;
    counter-reset: ccve;
}
.cve-detail ol.cve-chain li {
    counter-increment: ccve;
    padding: 8px 12px 8px 38px;
    position: relative;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--border-strong);
    border-radius: 0 3px 3px 0;
    font-size: 13px;
    color: #d8d8d8;
}
.cve-detail ol.cve-chain li::before {
    content: counter(ccve);
    position: absolute;
    left: 10px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
}
.cve-detail code {
    background: rgba(154, 169, 210,0.08);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.cve-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cve-expose-btn {
    padding: 9px 16px;
    font-size: 12.5px;
    font-family: var(--f-mono);
}

.cve-expose-panel {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(255,77,94,0.06);
    border: 1px solid rgba(255,77,94,0.2);
    border-radius: 6px;
    animation: phishSlideIn 0.3s ease;
}
.cve-expose-panel h6 {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--signal);
    text-transform: uppercase;
    margin: 0 0 10px;
    font-weight: 700;
}
.cve-expose-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cve-expose-panel li {
    padding-left: 22px;
    position: relative;
    font-size: 13px;
    color: #d8d8d8;
    line-height: 1.5;
}
.cve-expose-panel li::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px; height: 16px;
    background: var(--signal);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
}

/* light-mode panels stay dark */
@media (prefers-color-scheme: light) {
    .cve-block { background: #1a1a1c; }
    .cve-detail h4 { color: #f0f0f0; }
    .cve-item { color: #d8d8d8; }
    .cve-name { color: #f0f0f0; }
}

/* ================================================================
   DEMO 3 — new phishing scenario styles (vishing, calendar, meet, etc.)
   ================================================================ */

/* Extra avatar gradients */
.avatar-calendar { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.avatar-meet     { background: linear-gradient(135deg, #00897b, #34a853); }
.avatar-docusign2 { background: linear-gradient(135deg, #fcbb00, #d93025); }
.avatar-hr2      { background: linear-gradient(135deg, #6e5ce6, #ff4d5e); }
.avatar-aws      { background: linear-gradient(135deg, #ff9900, #232f3e); }
.avatar-github   { background: linear-gradient(135deg, #24292e, #586069); }
.avatar-phone    { background: linear-gradient(135deg, #ff4d5e, #d93025); }

/* Phone-call scenario (vishing mock) */
.phish-call {
    margin: 6px 0;
    padding: 22px 20px;
    background: linear-gradient(180deg, #2a2a2f 0%, #1a1a1d 100%);
    color: #eee;
    border-radius: 12px;
    border: 1px solid #3a3a3f;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.phish-call::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 169, 210,0.15), transparent 70%);
    pointer-events: none;
}
.phish-call-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    display: block;
    font-family: var(--f-mono);
}
.phish-call-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4285f4, #34a853);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.phish-call-name {
    font-family: var(--f-body);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.phish-call-number {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--accent);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}
.phish-call-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(154, 169, 210,0.15);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-family: var(--f-mono);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
}
.phish-call-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.phish-call-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #c8c8cc;
    font-size: 11px;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.phish-call-btn-circle {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.phish-call-btn-circle.decline { background: #ff4d5e; }
.phish-call-btn-circle.answer  { background: var(--accent); color: var(--bg); }
.phish-call-duration {
    font-family: var(--f-mono);
    font-size: 13px;
    color: #888;
    margin: 8px 0 0;
    position: relative;
    z-index: 1;
}

/* Voice-clone transcript bubble */
.phish-voice-transcript {
    margin: 10px 0 0;
    padding: 14px 16px;
    background: rgba(154, 169, 210,0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    text-align: left;
    font-style: italic;
    font-size: 13.5px;
    color: #d8d8d8;
    line-height: 1.55;
}
.phish-voice-transcript::before {
    content: '“';
    font-size: 34px;
    font-family: var(--f-display);
    color: var(--accent);
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    margin-top: 4px;
}
.phish-voice-speaker {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 11.5px;
    color: #888;
    font-family: var(--f-mono);
    letter-spacing: 0.06em;
}

/* Google Calendar invite mock */
.phish-calendar {
    margin: 6px 0;
    padding: 18px 20px;
    background: #fff;
    color: #202124;
    border-radius: 8px;
    border-left: 6px solid #4285f4;
    font-family: var(--f-body);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.phish-calendar .cal-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 6px;
}
.phish-calendar .cal-meta {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 4px;
}
.phish-calendar .cal-meta b { color: #202124; }
.phish-calendar .cal-attendees {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.phish-calendar .cal-attendee {
    padding: 2px 10px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 999px;
    font-size: 11.5px;
}
.phish-calendar .cal-description {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dadce0;
    font-size: 12.5px;
    color: #3c4043;
    line-height: 1.45;
}
.phish-calendar .cal-description a {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}

/* Google Meet invite mock */
.phish-meet-card {
    margin: 6px 0;
    padding: 20px;
    background: #fff;
    color: #202124;
    border-radius: 8px;
    font-family: var(--f-body);
    border: 1px solid #dadce0;
}
.phish-meet-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.phish-meet-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #34a853;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.phish-meet-title {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}
.phish-meet-sub { font-size: 12.5px; color: #5f6368; margin: 0; }
.phish-meet-link {
    display: block;
    padding: 8px 12px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    font-family: var(--f-mono);
    font-size: 12.5px;
    margin: 10px 0;
    word-break: break-all;
    text-decoration: none;
}
.phish-meet-btn {
    display: inline-block;
    background: #1a73e8;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}

/* AiTM "login page" mock */
.phish-aitm {
    margin: 6px 0;
    padding: 22px;
    background: #fff;
    color: #202124;
    border-radius: 6px;
    text-align: center;
    font-family: var(--f-body);
    border: 1px solid #dadce0;
}
.phish-aitm-logo {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.phish-aitm-logo::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px;
    margin-right: 10px;
    background:
        linear-gradient(#f25022 0 0) 0 0 / 48% 48% no-repeat,
        linear-gradient(#7fba00 0 0) 100% 0 / 48% 48% no-repeat,
        linear-gradient(#00a4ef 0 0) 0 100% / 48% 48% no-repeat,
        linear-gradient(#ffb900 0 0) 100% 100% / 48% 48% no-repeat;
    vertical-align: -3px;
}
.phish-aitm-heading {
    font-size: 22px;
    font-weight: 400;
    color: #201f1e;
    margin-bottom: 6px;
}
.phish-aitm-sub {
    font-size: 13px;
    color: #605e5c;
    margin-bottom: 16px;
}
.phish-aitm-field {
    height: 34px;
    background: #fff;
    border: 1px solid #8a8886;
    border-radius: 2px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
    color: #201f1e;
    text-align: left;
}
.phish-aitm-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 22px;
    background: #0078d4;
    color: #fff;
    font-size: 14px;
    border-radius: 2px;
}
.phish-aitm-url {
    margin-top: 14px;
    padding: 8px 12px;
    background: #fef7e0;
    border-left: 3px solid #fbbc04;
    color: #3c4043;
    font-family: var(--f-mono);
    font-size: 11.5px;
    border-radius: 0 4px 4px 0;
    text-align: left;
    word-break: break-all;
}

/* ================================================================
   DEMO 8 — MOBILE APP SCANNER
   ================================================================ */

.playground-grid-scan-app { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .playground-grid-scan-app { grid-template-columns: 1.75fr 1fr; }
}

.mobscan-block {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: var(--f-mono);
    color: #d8d8d8;
}

.mobscan-controls {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.mobscan-label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 12px;
}

.mobscan-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.mobscan-app {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: var(--f-body);
    color: #e8e8e8;
}
.mobscan-app:hover {
    background: rgba(154, 169, 210,0.06);
    border-color: var(--accent);
}
.mobscan-app.is-active {
    background: rgba(154, 169, 210,0.1);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.mobscan-app-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}
.icon-mobile-finpay   { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.icon-mobile-shopdash { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-mobile-medcare  { background: linear-gradient(135deg, #10b981, #0891b2); }
.icon-mobile-gameon   { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.icon-mobile-secure   { background: linear-gradient(135deg, var(--accent), #5a6aa8); color: var(--bg); }

.mobscan-app-meta {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobscan-app-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobscan-app-pkg {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mobscan-launch {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.mobscan-btn { padding: 10px 22px; font-size: 13px; }
.mobscan-btn:disabled { opacity: 0.5; cursor: wait; }

.mobscan-selected {
    font-family: var(--f-mono);
    font-size: 12px;
    color: #c8c8cc;
    background: rgba(255,255,255,0.04);
    padding: 6px 12px;
    border-radius: 4px;
}
.mobscan-selected code {
    background: none;
    color: var(--accent);
    padding: 0;
    font-size: 11.5px;
}

.mobscan-output {
    padding: 20px 24px;
    min-height: 300px;
    max-height: 620px;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.75;
    background: var(--code-bg);
}
.mobscan-output .scan-step {
    display: block;
    margin: 0;
    padding: 3px 0;
    opacity: 0;
    animation: scanIn 0.25s ease-out forwards;
}
.mobscan-output .scan-step .sc-tag {
    display: inline-block;
    min-width: 56px;
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.06em;
    margin-right: 10px;
    text-align: center;
}
.scan-step .sc-info  { background: rgba(90,200,250,0.1);  color: #5ac8fa; }
.scan-step .sc-ok    { background: rgba(154, 169, 210,0.1);  color: var(--accent); }
.scan-step .sc-warn  { background: rgba(255,184,77,0.12); color: var(--signal-warn); }
.scan-step .sc-crit  { background: rgba(255,77,94,0.15);  color: var(--signal); font-weight: 700; }

.scan-step.is-finding {
    padding: 8px 10px;
    margin: 4px -6px;
    background: rgba(255,77,94,0.06);
    border-left: 2px solid var(--signal);
    border-radius: 0 3px 3px 0;
}
.scan-step.is-finding.is-warn {
    background: rgba(255,184,77,0.06);
    border-left-color: var(--signal-warn);
}
.scan-step.is-finding.is-ok {
    background: rgba(154, 169, 210,0.06);
    border-left-color: var(--accent);
}

.scan-step .sc-file {
    color: #888;
    margin-left: 4px;
}
.scan-step pre {
    margin: 6px 0 0 66px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,77,94,0.4);
    border-radius: 3px;
    font-size: 11.5px;
    color: #d8d8d8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.mobscan-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    animation: panelFade 0.4s ease;
}
@media (max-width: 640px) {
    .mobscan-summary { grid-template-columns: repeat(2, 1fr); }
}
.ms-stat {
    padding: 14px 16px;
    background: var(--code-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-stat-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ms-stat strong {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ms-stat.ms-crit strong { color: var(--signal); }
.ms-stat.ms-warn strong { color: var(--signal-warn); }
.ms-stat.ms-ok strong   { color: var(--accent); }

.mobscan-verdict {
    padding: 20px 22px;
    background: rgba(255,77,94,0.06);
    border-top: 1px solid var(--border);
    animation: panelFade 0.4s ease;
}
.mobscan-verdict.verdict-ok  { background: rgba(154, 169, 210,0.06); }
.mobscan-verdict strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--signal);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.mobscan-verdict.verdict-ok strong { color: var(--accent); }
.mobscan-verdict p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #c8c8cc;
    font-family: var(--f-body);
}

/* light theme keep dark */
@media (prefers-color-scheme: light) {
    .mobscan-block { background: #1a1a1c; }
    .mobscan-app { background: rgba(255,255,255,0.05); color: #eee; }
    .mobscan-app-name { color: #fff; }
    .ms-stat strong { color: #fff; }
    .ms-stat.ms-crit strong { color: var(--signal); }
    .ms-stat.ms-warn strong { color: var(--signal-warn); }
    .ms-stat.ms-ok strong { color: var(--accent); }
}

/* ================================================================
   DEMO 3 — helper classes to replace inline styles inside scenarios
   ================================================================ */

/* Microsoft device-code "Next" hint line */
.dc-next {
    color: #605e5c;
    font-size: 12px;
}

/* Bank details / geo-block in email bodies.
   Uses panel tokens so it adapts to both themes instead of staying dark. */
.phish-mono-block {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 4px;
    line-height: 1.55;
}

/* "Sent from my iPhone" / footnote line */
.phish-signature-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer notes under bodies ("This invitation was added because...") */
.phish-footer-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* AiTM password field placeholder */
.phish-aitm-field.phish-aitm-placeholder {
    color: #8a8886;
}

/* GitHub "Secure account" button uses GH black */
.phish-button-cta.github { background: #24292e; }

/* Slack channel-activity summary block */
.phish-slack-channels {
    background: var(--bg-panel);
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* Slack footer paragraph + its muted unsubscribe links */
.phish-unsubscribe {
    font-size: 11.5px;
    color: var(--text-muted);
}
.phish-unsubscribe a {
    color: var(--text-muted);
}

/* Final line under phone-call scenario ("The number matches the CEO's real contact...") */
.phish-call-prompt {
    margin: 16px 22px 4px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
}

/* Feedback 'technique' meta line */
.phish-feedback-technique {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* AiTM / session-proxy tools bulleted list */
.phish-tool-list {
    margin: 10px 0;
    padding-left: 22px;
    list-style: disc;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
}
.phish-tool-list li { margin: 2px 0; }
.phish-tool-list code {
    font-weight: 600;
    color: var(--text);
}

/* ================================================================
   DEMO 1 — FIND THE VULN (progressive code quiz)
   ================================================================ */

.playground-grid-vuln { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .playground-grid-vuln { grid-template-columns: 1.85fr 1fr; }
}

.vuln-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.vuln-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    gap: 20px;
    flex-wrap: wrap;
}
.vuln-progress-info {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
}
.vuln-progress-info strong {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
}
.vuln-score-label strong { color: var(--accent); }

.vuln-diff-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(154, 169, 210,0.12);
    color: var(--accent);
    text-transform: uppercase;
}
.vuln-diff-label.diff-easy   { background: rgba(154, 169, 210,0.12); color: var(--accent); }
.vuln-diff-label.diff-medium { background: rgba(255,184,77,0.14); color: var(--signal-warn); }
.vuln-diff-label.diff-hard   { background: rgba(255,77,94,0.14);  color: var(--signal); }

.vuln-progress-dots {
    display: flex;
    gap: 6px;
}
.vd {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: all 0.3s;
}
.vd.is-current {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-glow);
}
.vd.is-correct { background: var(--accent); }
.vd.is-wrong   { background: var(--signal); }

.vuln-scenario {
    min-height: 340px;
    animation: phishSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Code card inside each scenario */
.vuln-code-card {
    margin: 0;
    background: var(--code-bg);
    border-bottom: 1px solid var(--border);
}
.vuln-code-card .code-head {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vuln-code-card .code-filename {
    margin-left: 8px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: #c8c8cc;
    flex: 1;
}
.vuln-code-card .code-lang {
    font-family: var(--f-mono);
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(154, 169, 210,0.1);
    color: #9aa9d2; /* code card is always dark; var(--accent) resolved too dark for AA */
    border-radius: 3px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.vuln-code-card pre {
    margin: 0;
    padding: 18px 22px;
    font-family: var(--f-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: #e5e5e5;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}
.vuln-code-card .vl {
    display: inline-block;
    min-width: 26px;
    color: #9197a0;
    user-select: none;
    padding-right: 10px;
}
/* Syntax tokens (reused throughout) */
.vuln-code-card .vk { color: #c678dd; }      /* keyword */
.vuln-code-card .vs { color: #98c379; }      /* string  */
.vuln-code-card .vn { color: #d19a66; }      /* number  */
.vuln-code-card .vc { color: #9197a0; font-style: italic; }  /* comment */
.vuln-code-card .vf { color: #61afef; }      /* function/ident */
.vuln-code-card .vt { color: #e5c07b; }      /* type */
.vuln-code-card .vp { color: #e06c75; }      /* property/attr */

/* Context / task prompt above the code */
.vuln-task {
    padding: 16px 22px;
    font-size: 13.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    line-height: 1.55;
    background: var(--bg-elev);
}
.vuln-task strong {
    color: var(--text);
    font-weight: 600;
}

/* Controls reuse .phish-btn styling almost but with their own class */
.vuln-controls {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    flex-wrap: wrap;
}
.vuln-btn { min-width: 160px; }

/* Feedback after answer */
.vuln-feedback {
    padding: 20px 22px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    line-height: 1.6;
    animation: phishSlideIn 0.35s ease;
    color: var(--text);
    background: var(--bg-elev);
}
.vuln-feedback.correct {
    background: var(--accent-soft);
    border-top-color: var(--accent);
}
.vuln-feedback.wrong {
    background: rgba(255,77,94,0.08);
    border-top-color: var(--signal);
}
.vuln-feedback-head {
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
}
.vuln-feedback .vb-tag {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 10px;
    vertical-align: 2px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--f-mono);
}
.vuln-feedback.correct .vb-tag { background: var(--accent); color: var(--bg); }
.vuln-feedback.wrong .vb-tag   { background: var(--signal); color: #fff; }
.vuln-feedback-head strong {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    display: inline;
}
.vuln-feedback.correct .vuln-feedback-head strong { color: var(--accent); }
.vuln-feedback.wrong   .vuln-feedback-head strong { color: var(--signal); }

.vuln-feedback p { margin: 0 0 10px; }
.vuln-feedback code {
    font-family: var(--f-mono);
    font-size: 12px;
    background: var(--code-bg);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
}

.vuln-feedback-meta {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}
.vuln-feedback-meta span {
    display: inline-block;
    padding: 1px 8px;
    margin-right: 6px;
    background: rgba(255,184,77,0.14);
    color: var(--signal-warn);
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vuln-exploit-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--code-bg);
    border-left: 3px solid var(--signal);
    border-radius: 0 4px 4px 0;
    font-family: var(--f-mono);
    font-size: 12px;
    color: #e5e5e5;
    line-height: 1.55;
}
.vuln-exploit-box strong {
    display: block;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--signal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
    font-style: normal;
}

.vuln-next-wrap {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

/* Final screen */
.vuln-final {
    padding: 40px 28px;
    text-align: center;
    animation: phishSlideIn 0.5s ease;
}
.vuln-final-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 28px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--bg-panel);
}
.vf-kicker {
    font-family: var(--f-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.vuln-final-score strong {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.vuln-final-score.score-top  strong { color: var(--accent); }
.vuln-final-score.score-high strong { color: var(--accent); }
.vuln-final-score.score-mid  strong { color: var(--signal-warn); }
.vuln-final-score.score-low  strong { color: var(--signal); }

.vuln-final-title {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 12px;
    font-style: italic;
    letter-spacing: -0.01em;
}
.vuln-final-desc {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}
.vuln-final-actions {
    margin-top: 24px;
    display: inline-flex;
    gap: 10px;
}

/* ================================================================
   NEW HEADER / HERO / FEED — styles from new_header/
   ================================================================ */

/* ─── New-header design tokens (appended) ─── */
:root {
    --font-mono:        ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    --font-sans:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container:        1440px;
    --gutter:           32px;

    /* new-header palette (dark) */
    --nh-bg-primary:    #16171a;
    --nh-bg-card:       #1d1f23;
    --nh-bg-card-hover: #25282e;
    --nh-bg-rgb:        22, 23, 26;
    --nh-accent-green:  #9aa9d2;
    --nh-accent-green-bright: #b9c4e0;
    --nh-accent-green-rgb: 154, 169, 210;
    --nh-accent-red:    #e08a78;
    --nh-accent-red-dim:#c06a5a;
    --nh-accent-purple: #a9a6e0;
    --nh-accent-orange: #d8a657;
    --nh-text-primary:  #e7e8ec;
    --nh-text-secondary:#9aa0aa;
    --nh-text-muted:    #9197a0;
    --nh-text-dim:      #4a4d54;
    --nh-border:        #2c2f36;
    --nh-border-light:  #363a42;
    --nh-map-dot:       #4a5675;
    --nh-cta-text:      #16171a;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --nh-bg-primary:    #f0f1f3;
        --nh-bg-card:       #f7f8fa;
        --nh-bg-card-hover: #ffffff;
        --nh-bg-rgb:        240, 241, 243;
        --nh-accent-green:  oklch(0.40 0.10 273);
        --nh-accent-green-bright: oklch(0.34 0.09 273);
        --nh-accent-green-rgb: 64, 78, 140;
        --nh-accent-red:    #b3303f;
        --nh-accent-purple: #5b54b8;
        --nh-accent-orange: #b5740d;
        --nh-text-primary:  #15171c;
        --nh-text-secondary:#3a4048;
        --nh-text-muted:    #565b62;
        --nh-text-dim:      #6a7077;
        --nh-border:        #d8dadf;
        --nh-border-light:  #c4c8cf;
        --nh-map-dot:       #9aa3c0;
        --nh-cta-text:      #ffffff;
    }
}
:root[data-theme="light"] {
    --nh-bg-primary:    #f0f1f3;
    --nh-bg-card:       #f7f8fa;
    --nh-bg-card-hover: #ffffff;
    --nh-bg-rgb:        240, 241, 243;
    --nh-accent-green:  oklch(0.40 0.10 273);
    --nh-accent-green-bright: oklch(0.34 0.09 273);
    --nh-accent-green-rgb: 64, 78, 140;
    --nh-accent-red:    #b3303f;
    --nh-accent-purple: #5b54b8;
    --nh-accent-orange: #b5740d;
    --nh-text-primary:  #15171c;
    --nh-text-secondary:#3a4048;
    --nh-text-muted:    #565b62;
    --nh-text-dim:      #6a7077;
    --nh-border:        #d8dadf;
    --nh-border-light:  #c4c8cf;
    --nh-map-dot:       #9aa3c0;
    --nh-cta-text:      #ffffff;
}


/* ─── Hero section override for new layout ─── */
.hero {
    position: relative;
    z-index: 5;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px var(--gutter) 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 640px;
    overflow: visible;
}

/* ============ BACKGROUND DECORATION ============ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--nh-accent-green-rgb), 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--nh-accent-green-rgb), 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.29  0 0 0 0 0.87  0 0 0 0 0.50  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
    mix-blend-mode: overlay;
}

.bg-glow {
    position: fixed;
    top: 20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--nh-accent-green-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* ============ HEADER ============ */
.header {
    position: relative;
    z-index: 10;
    padding: 24px var(--gutter);
}

.header__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 60px;
}

.header-end {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    color: var(--nh-text-primary);
}

.logo__mark {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo__dot {
    color: var(--nh-accent-green);
    font-size: 14px;
    transform: translateY(-1px);
}

.logo__sub {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--nh-text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-left: 14px;
    border-left: 1px solid var(--nh-border-light);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 38px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--nh-text-secondary);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav__link:hover { color: var(--nh-accent-green); }
.nav__caret { font-size: 10px; color: var(--nh-text-muted); }

/* ============ BUTTONS (new BEM variants) ============ */

.btn__arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--primary {
    background: var(--nh-accent-green);
    color: var(--nh-cta-text);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--nh-accent-green), 0 8px 24px -8px rgba(var(--nh-accent-green-rgb), 0.5);
}

.btn--primary:hover {
    background: var(--nh-accent-green-bright);
    box-shadow: 0 0 0 1px var(--nh-accent-green-bright), 0 12px 28px -6px rgba(var(--nh-accent-green-rgb), 0.7);
    transform: translateY(-1px);
}

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

.btn--ghost:hover {
    border-color: var(--nh-accent-green);
    color: var(--nh-accent-green);
    background: rgba(var(--nh-accent-green-rgb), 0.03);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 5;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px var(--gutter) 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 640px;
}

.hero__content {
    padding-top: 40px;
    /* logical props so the -70px bleed over the map mirrors correctly in RTL
       (physical margin-left didn't flip → title bled ~10px past the left edge in ar/fa) */
    padding-inline-start: 28px;
    margin-inline-start: -70px;  
    z-index: 5;
    position: relative;
    isolation: isolate;
}


.hero__content::before {
    content: '';
    position: absolute;
    inset: -30px -20px -30px -50px;
    background: linear-gradient(
        90deg,
        rgba(var(--nh-bg-rgb), 0) 0%,
        rgba(var(--nh-bg-rgb), 0.4) 12%,
        rgba(var(--nh-bg-rgb), 0.75) 30%,
        rgba(var(--nh-bg-rgb), 0.92) 55%,
        rgba(var(--nh-bg-rgb), 0.98) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
    pointer-events: none;
    border-radius: 6px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--nh-accent-green);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--nh-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--nh-accent-green);
    animation: pulse 1.8s infinite;
}

.hero__title {
    font-family: var(--font-mono);
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 26px;
    color: var(--nh-text-primary);
    text-transform: uppercase;
}

.hero__title-line {
    display: block;
    white-space: nowrap;
}
/* RTL hero (ar/fa): the nowrap mono title bleeds a few px past the edge — allow it to wrap */
[dir="rtl"] .hero__title-line { white-space: normal; }

.hero__title .accent {
    color: var(--nh-accent-green);
    text-shadow: 0 0 30px rgba(var(--nh-accent-green-rgb), 0.4);
}

.hero__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--nh-text-secondary);
    margin-bottom: 32px;
    max-width: 460px;
}

.hero__accent {
    font-style: normal;
    color: var(--nh-accent-green);
}

.hero__cta {
    display: flex;
    gap: 14px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* ============ TRUST ============ */
.trust { max-width: 560px; }

.trust__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.trust__label { color: var(--nh-text-muted); }

.trust__count {
    color: var(--nh-accent-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust__count-dot { font-size: 8px; }

.trust__logos {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--nh-text-muted);
}

.trust__logo {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    opacity: 0.55;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.trust__logo:hover { opacity: 0.9; }

.trust__logo--hh {
    font-weight: 800;
    font-size: 13px;
    background: #9197a0;
    color: var(--nh-cta-text);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    opacity: 0.9;
    letter-spacing: -0.04em;
}

.trust__logo--ozon {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 17px;
}

.trust__logo--tbank .trust__logo-mark {
    background: var(--nh-text-muted);
    color: var(--nh-bg-primary);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
}

.trust__logo--dodo {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.trust__logo-circle {
    color: var(--nh-text-muted);
    font-size: 22px;
    margin-right: 2px;
}

/* ============ MAP ============ */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    margin-left: calc(-1 * var(--gutter));
    margin-top: -10px;
    overflow: hidden;
}

.map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.map-stage {
    position: relative;
    width: 115%;
    margin-left: -5%;
    aspect-ratio: 845.2 / 458;
    max-height: 100%;
}


.map-base {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    filter: drop-shadow(0 0 60px rgba(var(--nh-accent-green-rgb), 0.10));
    pointer-events: none;
    user-select: none;
}
.map-base circle {
    fill: var(--nh-map-dot);
}


.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}


.city-dot {
    fill: #e08a78;
    transition: opacity 0.3s;
}

.city-pulse {
    fill: #e08a78;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

.city-tier-1 .city-pulse {
    animation: cityPulse 2.5s ease-out infinite;
}

@keyframes cityPulse {
    0% { transform: scale(0.4); opacity: 0.6; }
    100% { transform: scale(3.5); opacity: 0; }
}


.attack-line {
    fill: none;
    stroke: #e08a78;
    stroke-width: 0.8;
    filter: drop-shadow(0 0 3px rgba(255, 56, 56, 0.6));
}

.attack-trail {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
}


.attack-missile {
    fill: #ffffff;
    filter: url(#missile-glow);
}


.target-ripple {
    fill: none;
    stroke: #e08a78;
    stroke-width: 0.8;
    opacity: 0.9;
    transform-origin: center;
    transform-box: fill-box;
    animation: targetRipple 1.2s ease-out forwards;
}

@keyframes targetRipple {
    0%   { transform: scale(0.3); opacity: 0.9; stroke-width: 1.5; }
    100% { transform: scale(6); opacity: 0; stroke-width: 0.3; }
}

.target-flash {
    fill: #e08a78;
    transform-origin: center;
    transform-box: fill-box;
    animation: targetFlash 0.9s ease-out forwards;
}

@keyframes targetFlash {
    0%   { transform: scale(0.5); opacity: 1; }
    40%  { transform: scale(2.2); opacity: 0.8; }
    100% { transform: scale(0.5); opacity: 0; }
}


.source-flash {
    fill: #e08a78;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: sourceFlash 0.5s ease-out forwards;
}

@keyframes sourceFlash {
    0%   { opacity: 0; transform: scale(0.5); }
    30%  { opacity: 0.9; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2.5); }
}


.corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--nh-accent-green);
    opacity: 0.5;
    pointer-events: none;
    z-index: 5;
}

.corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ============ LIVE THREAT FEED ============ */
.feed {
    position: relative;
    z-index: 5;
    max-width: var(--container);
    margin: 20px auto 60px;
    padding: 0 var(--gutter);
}

.feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.feed__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nh-accent-green);
    font-weight: 600;
}

.feed__title-dot {
    width: 7px;
    height: 7px;
    background: var(--nh-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--nh-accent-green);
    animation: pulse 1.5s infinite;
}

.feed__title-meta { color: var(--nh-text-muted); margin-left: 8px; }

.feed__update {
    color: var(--nh-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feed__update-dot {
    width: 6px;
    height: 6px;
    background: var(--nh-accent-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.feed__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 0;
    column-gap: 14px;
    overflow: hidden;
    contain: layout style;
    /* reserve one card-row up front so JS-populated threats don't grow the row
       from 0→145px and push the page down (fixes ~0.14 CLS on desktop) */
    min-height: 145px;
}

/* ============ THREAT CARD ============ */
.threat {
    position: relative;
    background: var(--nh-bg-card);
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    padding: 14px;
    /* only GPU-composited props — no layout reflow */
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    will-change: opacity, transform;
    overflow: hidden;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.threat.is-entering {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
}
.threat.is-exiting {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
}

.threat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--accent-c, transparent) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.threat:hover {
    border-color: var(--accent-c-border);
    background: var(--nh-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px var(--accent-c-shadow);
}

.threat:hover::before { opacity: 0.08; }

.threat[data-color="green"] {
    --accent-c: var(--nh-accent-green);
    --accent-c-border: var(--nh-accent-green);
    --accent-c-shadow: rgba(var(--nh-accent-green-rgb), 0.3);
}
.threat[data-color="red"] {
    --accent-c: var(--nh-accent-red);
    --accent-c-border: var(--nh-accent-red);
    --accent-c-shadow: rgba(255, 56, 56, 0.3);
}
.threat[data-color="purple"] {
    --accent-c: var(--nh-accent-purple);
    --accent-c-border: var(--nh-accent-purple);
    --accent-c-shadow: rgba(167, 139, 250, 0.3);
}
.threat[data-color="orange"] {
    --accent-c: var(--nh-accent-orange);
    --accent-c-border: var(--nh-accent-orange);
    --accent-c-shadow: rgba(251, 146, 60, 0.3);
}

.threat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nh-text-muted);
}

.threat__time { color: var(--nh-text-secondary); letter-spacing: 0.04em; }

.threat__country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nh-text-muted);
}

.flag { font-size: 12px; }

.threat__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.threat__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--accent-c);
    background: color-mix(in srgb, var(--accent-c) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-c) 25%, transparent);
    border-radius: 5px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threat__icon svg { width: 100%; height: 100%; }

.threat__info { min-width: 0; flex: 1; padding-top: 1px; }

.threat__name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--nh-text-primary);
    margin-bottom: 3px;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.threat__sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--nh-text-muted);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.threat__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--nh-border);
    font-family: var(--font-mono);
    font-size: 11px;
}

.threat__target { color: var(--nh-text-dim); letter-spacing: 0.1em; font-weight: 500; }
.threat__ip { color: var(--accent-c); font-weight: 600; letter-spacing: 0.01em; }

/* ============ ANIMATIONS ============ */
/* @keyframes pulse — already defined above */
    50% { opacity: 0.5; transform: scale(0.9); }
}

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

.hero__badge,
.hero__title,
.hero__desc,
.hero__cta,
.trust {
    animation: fadeUp 0.7s ease-out backwards;
}

.hero__badge { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.2s; }
.hero__desc { animation-delay: 0.35s; }
.hero__cta { animation-delay: 0.45s; }
.trust { animation-delay: 0.55s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
    .nav { gap: 24px; }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
        padding-top: 8px;
        padding-bottom: 40px;
    }
    
    .map-wrapper {
        min-height: 0;
        margin-left: 0;
        order: 0;
        overflow: visible;
    }
    .map-frame {
        align-items: flex-start;
    }
    .map-stage {
        width: 100%;
        margin-left: 0;
    }
    .map-base {
        opacity: 0.55;
        filter: none;          
    }
    .map-base circle {
        r: 3;                  
    }
    .hero__content {
        order: 1;
        /* logical reset so it cancels the desktop margin-inline-start bleed in RTL too
           (physical margin-left:0 left the RTL margin-right bleed → +34px on mobile ar/fa) */
        margin-inline-start: 0;
        
        margin-top: -8%;
        padding-top: 28px;
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
        z-index: 5;
        position: relative;
        isolation: isolate;
    }
    .hero__content::before {
        inset: 0 -20px -30px -20px;
        background: linear-gradient(
            180deg,
            rgba(var(--nh-bg-rgb), 0) 0%,
            rgba(var(--nh-bg-rgb), 0.7) 18%,
            rgba(var(--nh-bg-rgb), 0.95) 45%,
            rgba(var(--nh-bg-rgb), 1) 100%
        );
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .hero__badge,
    .hero__cta {
        justify-content: center;
    }
    .hero__title-line { white-space: normal; }
    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__desc br { display: none; }
    .trust {
        margin-left: auto;
        margin-right: auto;
    }
    .trust__head { justify-content: center; }
    .trust__logos { justify-content: center; }
    .nav { display: none; }
    .feed__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --gutter: 18px; }
    .header__inner { gap: 20px; }
    .logo__sub { display: none; }
    .hero { padding-top: 8px; }
    .hero__title { font-size: clamp(26px, 7vw, 38px); }
    .feed__grid { grid-template-columns: repeat(2, 1fr); column-gap: 10px; }
    .trust__logos { gap: 22px; }
}

@media (max-width: 480px) {
    .feed__grid { grid-template-columns: 1fr; column-gap: 10px; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

/* ================================================================
   LANG MENU — standalone language switcher button
   ================================================================ */

.lang-menu { position: relative; z-index: 510; }

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid var(--nh-border-light, #1e2d26);
    border-radius: 4px;
    background: transparent;
    color: var(--nh-text-primary, #e7e8ec);
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    anchor-name: --lang-btn;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-menu:has(.lang-options:popover-open) .lang-btn,
.lang-btn:hover { border-color: var(--nh-accent-green, #9aa9d2); color: var(--nh-accent-green, #9aa9d2); background: rgba(154, 169, 210, 0.03); }

.lang-options {
    inset: unset;
    margin: 0;
    width: 220px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--nh-border, #2c2f36);
    border-radius: 4px;
    background: var(--nh-bg-primary, #16171a);
    box-shadow: 0 18px 48px oklch(0 0 0 / 0.32);
    top: 56px;
    right: 16px;
}

@supports (anchor-name: --x) {
    .lang-options {
        position-anchor: --lang-btn;
        top: calc(anchor(bottom) + 8px);
        right: anchor(right);
    }
}

.lang-options a {
    display: block;
    padding: 9px 10px;
    border-radius: 3px;
    color: var(--nh-text-muted, #9197a0);
    font-size: 13px;
    line-height: 1.2;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    transition: background 0.15s, color 0.15s;
}

.lang-options a:hover {
    background: rgba(154, 169, 210, 0.08);
    color: var(--nh-text-primary, #e7e8ec);
}

@media (max-width: 860px) {
    .header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 0;
    }

    .nav { display: none; }
    .header-end .btn { display: none; }
}
