/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-base: #060709;
    --bg-surface: #0c0e12;
    --bg-surface-elevated: #13171f;
    --border-color: rgba(0, 242, 254, 0.15);
    --border-glow: rgba(0, 242, 254, 0.4);
    
    /* Neon Palettes */
    --clr-cyan: #00f2fe;
    --clr-cyan-glow: rgba(0, 242, 254, 0.3);
    --clr-violet: #7f00ff;
    --clr-violet-glow: rgba(127, 0, 255, 0.3);
    --clr-amber: #ffb800;
    --clr-amber-glow: rgba(255, 184, 0, 0.3);
    --clr-pink: #ff2a5f;
    --clr-pink-glow: rgba(255, 42, 95, 0.3);
    
    /* Typography */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* System Spaces & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fictional cyber grid background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

#orb-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--clr-cyan) 0%, transparent 70%);
    animation: float-slow 20s infinite alternate;
}

#orb-2 {
    bottom: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--clr-violet) 0%, transparent 70%);
    animation: float-slow 25s infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 4%) scale(1.1); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 9, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    color: var(--clr-cyan);
    filter: drop-shadow(0 0 8px var(--clr-cyan-glow));
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.accent-dot {
    color: var(--clr-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--clr-cyan);
    text-shadow: 0 0 8px var(--clr-cyan-glow);
}

.btn-secondary-nav {
    border: 1px solid var(--clr-cyan);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(0, 242, 254, 0.05);
}

.btn-secondary-nav:hover {
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 12px var(--clr-cyan-glow);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-cyan), var(--clr-violet));
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-tertiary:hover {
    color: var(--clr-pink);
    border-color: rgba(255, 42, 95, 0.3);
    background: rgba(255, 42, 95, 0.05);
}

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

.gradient-text {
    background: linear-gradient(to right, var(--clr-cyan), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-beacon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--clr-cyan);
    border-radius: 50%;
    position: relative;
}

.pulse-beacon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--clr-cyan);
    border-radius: 50%;
    animation: beacon-pulse 1.8s infinite;
}

.pulse-beacon.green {
    background-color: #10b981;
}

.pulse-beacon.green::after {
    border-color: #10b981;
}

@keyframes beacon-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 6rem 0 4rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.tagline-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clr-cyan);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero image visual container */
.hero-visual {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-container:hover .hero-img {
    transform: scale(1.02);
}

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 7, 9, 0.8) 0%, transparent 50%),
                radial-gradient(circle at center, transparent 30%, rgba(0, 242, 254, 0.1) 100%);
    pointer-events: none;
}

.telemetry-box {
    position: absolute;
    background: rgba(12, 14, 18, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--clr-cyan);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.telemetry-box.top-left {
    top: 1rem;
    left: 1rem;
}

.telemetry-box.bottom-right {
    bottom: 1rem;
    right: 1rem;
}

/* ==========================================================================
   LIVE INCIDENT TICKER
   ========================================================================== */
.ticker-section {
    background: rgba(12, 14, 18, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1rem 0;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--clr-pink);
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
}

.ticker-icon {
    width: 14px;
    height: 14px;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-track {
    overflow: hidden;
    width: 100%;
}

.ticker-scroll {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ticker-item span.alert-indicator {
    color: var(--clr-cyan);
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   MANIFESTO / CARDS SECTION
   ========================================================================== */
.manifesto-section, .protocol-section, .simulator-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Dashboard stats styles */
.dashboard-section {
    padding: 6rem 0;
    background: rgba(12, 14, 18, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--clr-cyan), transparent);
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 254, 0.25);
    background: var(--bg-surface-elevated);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.05);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--clr-cyan);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--clr-cyan-glow);
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-elevated);
    border-color: var(--border-glow);
}

.card-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid transparent;
}

.card-icon-wrapper i,
.card-icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
}

.cyan-glow {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--clr-cyan);
}
.cyan-glow:hover {
    box-shadow: 0 0 15px var(--clr-cyan-glow);
}

.violet-glow {
    background: rgba(127, 0, 255, 0.05);
    border-color: rgba(127, 0, 255, 0.2);
    color: #a855f7;
}

.amber-glow {
    background: rgba(255, 184, 0, 0.05);
    border-color: rgba(255, 184, 0, 0.2);
    color: var(--clr-amber);
}

.pink-glow {
    background: rgba(255, 42, 95, 0.05);
    border-color: rgba(255, 42, 95, 0.2);
    color: var(--clr-pink);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   THE PROTOCOL SECTION
   ========================================================================== */
.protocol-section {
    background: rgba(12, 14, 18, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.protocol-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.docs-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-block p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.docs-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.docs-list li strong {
    color: var(--text-primary);
}

.list-icon {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.text-cyan {
    color: var(--clr-cyan);
}

.endpoint-info {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.badge-post {
    background: rgba(16, 115, 185, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.endpoint-url {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--clr-cyan);
}

/* Protocol code display */
.protocol-code {
    background: #08090d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #0f1118;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-dots {
    display: flex;
    gap: 0.4rem;
}

.code-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.code-dots .dot:nth-child(1) { background-color: #ff5f56; }
.code-dots .dot:nth-child(2) { background-color: #ffbd2e; }
.code-dots .dot:nth-child(3) { background-color: #27c93f; }

.code-block {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
}

.code-key {
    color: #80cbc4;
}

.code-string {
    color: #c3e88d;
}

/* ==========================================================================
   SOS SIMULATOR SECTION
   ========================================================================== */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.simulator-editor-panel, .simulator-terminal-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.panel-header {
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title i,
.panel-title svg {
    width: 14px;
    height: 14px;
}

.scenario-selector {
    display: flex;
    align-items: center;
}

.select-dropdown {
    background: #08090d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-dropdown:hover {
    border-color: var(--clr-cyan);
}

.select-dropdown:focus {
    outline: none;
    border-color: var(--clr-cyan);
    box-shadow: 0 0 8px var(--clr-cyan-glow);
}

/* Editor Container */
.editor-container {
    flex: 1;
    display: flex;
    background: #08090d;
    overflow: hidden;
    position: relative;
}

.line-numbers {
    padding: 1.25rem 0.5rem;
    text-align: right;
    background: #040507;
    color: #4b5563;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    min-width: 40px;
}

.payload-editor {
    flex: 1;
    background: transparent;
    border: none;
    color: #a7f3d0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 1.25rem;
    resize: none;
    outline: none;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
}

.editor-actions {
    background: var(--bg-surface-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

/* Terminal Panel styling */
.terminal-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
}

.terminal-body {
    flex: 1;
    background: #040507;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    overflow-y: auto;
    color: #e2e8f0;
}

.terminal-line {
    margin-bottom: 0.5rem;
    position: relative;
    word-break: break-all;
}

.terminal-line.system-msg {
    color: var(--text-muted);
}

.terminal-line.sending-msg {
    color: var(--clr-cyan);
}

.terminal-line.success-msg {
    color: #10b981;
}

.terminal-line.warning-msg {
    color: var(--clr-amber);
}

.terminal-line.error-msg {
    color: var(--clr-pink);
}

.terminal-footer {
    background: var(--bg-surface-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   BIOLOGICAL ALLIES (SUPPORT US)
   ========================================================================== */
.support-section {
    position: relative;
    padding-bottom: 8rem;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(12, 14, 18, 0.8) 0%, rgba(6, 7, 9, 0.8) 100%);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 16px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--clr-cyan), var(--clr-violet), transparent);
}

.support-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.support-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.05rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.support-option {
    text-align: center;
}

.option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-cyan);
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.support-option:hover .option-icon {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
    color: #fff;
    background: rgba(0, 242, 254, 0.1);
}

.option-icon i,
.option-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.support-option h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.support-option p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 250px;
    margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #040507;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 5rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.footer-links h4, .footer-security h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-cyan);
    padding-left: 4px;
}

.footer-security p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.pgp-box {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.pgp-box code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--clr-cyan);
    word-break: break-all;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    text-align: center;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
    
    .protocol-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .simulator-editor-panel, .simulator-terminal-panel {
        height: 480px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-security {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding-top: 4rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .nav-links {
        display: none; /* Mobile menu collapsed by default */
        position: absolute;
        top: 4.5rem;
        left: 0;
        width: 100%;
        background: var(--bg-surface-elevated);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-security {
        grid-column: span 1;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modal Drawer Overlay */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2.5rem;
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--clr-pink);
}

.modal-document h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--clr-cyan);
    text-shadow: 0 0 10px var(--clr-cyan-glow);
    font-family: var(--font-sans);
}

.modal-document h4 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-document p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.modal-document ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-document li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-document li strong {
    color: var(--text-primary);
}

/* For Human Obfuscated Email Section */
.for-human-section {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.for-human-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    margin-bottom: 2.5rem;
}

.for-human-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.for-human-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.secure-email-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 240px;
    justify-content: center;
    transition: all var(--transition-smooth);
}


