:root {
    --color-bg: #03040c;
    --color-neon-primary: #00ff88;
    --color-neon-secondary: #00cc44;
    --color-matrix-glow: #00ff88;
    --color-text-light: #ccffe5;
    --color-readable-bg: #0f172a;
    --color-readable-panel: rgba(15, 23, 42, 0.92);
    --color-readable-surface: rgba(30, 41, 59, 0.85);
    --color-readable-border: rgba(148, 163, 184, 0.45);
    --color-readable-text: #e2e8f0;
    --color-readable-accent: #38bdf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-light);
    overflow-x: hidden;
    position: relative;
}

body.readable-mode {
    background-color: var(--color-readable-bg);
    color: var(--color-readable-text);
    --color-neon-primary: var(--color-readable-accent);
    --color-neon-secondary: rgba(59, 130, 246, 0.65);
    --color-text-light: var(--color-readable-text);
}

body.readable-mode a {
    color: var(--color-readable-accent);
}

body.readable-mode a:hover {
    color: #60a5fa;
    text-shadow: none;
}

body.readable-mode .site-title {
    color: var(--color-readable-accent);
    text-shadow: none;
}

body.readable-mode .site-subtitle {
    color: rgba(203, 213, 225, 0.7);
}

a {
    color: inherit;
}

a:hover {
    color: var(--color-neon-primary);
}

main {
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

header {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

.site-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.4em;
    margin: 0;
    color: var(--color-neon-primary);
    text-shadow: 0 0 10px var(--color-neon-primary), 0 0 20px rgba(0, 255, 136, 0.6);
}

.site-subtitle {
    margin-top: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

nav {
    margin: 2rem auto 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.5);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover {
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--color-neon-primary);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.9);
}

.nav-link.active {
    color: var(--color-neon-primary);
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-neon-primary);
    outline-offset: 2px;
}

button.nav-link {
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font: inherit;
    box-shadow: none;
}

.nav-link.nav-toggle {
    white-space: nowrap;
}

body.readable-mode .nav-link {
    color: var(--color-readable-text);
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.3);
    text-shadow: none;
}

body.readable-mode .nav-link:hover {
    color: var(--color-readable-accent);
    border-color: rgba(59, 130, 246, 0.55);
}

body.readable-mode .nav-link.active {
    color: var(--color-readable-accent);
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.18);
    box-shadow: none;
}

body.readable-mode .nav-link:focus-visible {
    outline-color: var(--color-readable-accent);
}

body.readable-mode button.nav-link {
    background: rgba(15, 23, 42, 0.65);
    box-shadow: none;
}

body.readable-mode button.nav-link:hover {
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.cyber-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 3rem);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.15), 0 0 50px rgba(0, 204, 68, 0.08);
    backdrop-filter: blur(6px);
}

body.readable-mode .cyber-panel {
    background: var(--color-readable-panel);
    border-color: var(--color-readable-border);
    box-shadow: none;
}

.cyber-panel h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--color-neon-primary);
}

.data-card {
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 0.9rem;
    padding: 1.5rem;
    background-color: rgba(0, 20, 10, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.data-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--color-neon-secondary);
    box-shadow: 0 0 20px var(--color-neon-secondary), 0 0 40px rgba(0, 204, 68, 0.25);
}

body.readable-mode .data-card {
    background: var(--color-readable-surface);
    border-color: var(--color-readable-border);
    box-shadow: none;
}

body.readable-mode .data-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.resource-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 255, 136, 0.35);
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.resource-link:hover {
    border-color: var(--color-neon-primary);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.resource-link i {
    width: 1rem;
    height: 1rem;
}

.resource-section {
    margin-top: 2rem;
}

.resource-section:first-of-type {
    margin-top: 0;
}

.resource-section h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(204, 255, 204, 0.9);
}

.resource-subsection {
    margin-top: 1.5rem;
}

.resource-subsection h4 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.1rem, 1.9vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(187, 255, 187, 0.85);
}

.resource-subsection h5 {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(170, 255, 170, 0.8);
}

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.resource-list.compact {
    gap: 0.75rem;
}

.resource-item {
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.resource-item:hover,
.resource-item:focus-within {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.25);
    transform: translateY(-2px);
}

body.readable-mode .resource-item {
    background: var(--color-readable-surface);
    border-color: var(--color-readable-border);
    box-shadow: none;
}

body.readable-mode .resource-item:hover,
body.readable-mode .resource-item:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.resource-item-title {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: rgba(204, 255, 204, 0.95);
}

.resource-item-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-neon-primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 136, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35rem;
    border-bottom: none;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.resource-item-title a::after {
    content: '↗';
    font-size: 0.75em;
    opacity: 0.75;
    transform: translate(0, 0);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.resource-item-title a:hover,
.resource-item-title a:focus-visible {
    color: var(--color-neon-primary);
    text-decoration-color: rgba(0, 255, 136, 0.75);
}

.resource-item-title a:hover::after,
.resource-item-title a:focus-visible::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

.resource-item-title a:focus-visible {
    outline: 2px solid rgba(0, 255, 136, 0.6);
    outline-offset: 4px;
    border-radius: 0.4rem;
}

.resource-item-description {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.resource-item-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-item-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 255, 136, 0.35);
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.resource-item-links a:hover {
    border-color: var(--color-neon-primary);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
    transform: translateY(-2px);
}

body.readable-mode .resource-item-links a,
body.readable-mode .resource-link {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-readable-border);
    color: var(--color-readable-text);
}

body.readable-mode .resource-item-title a {
    color: var(--color-readable-accent);
    text-decoration-color: rgba(59, 130, 246, 0.5);
}

body.readable-mode .resource-item-title a:hover,
body.readable-mode .resource-item-title a:focus-visible {
    text-decoration-color: rgba(59, 130, 246, 0.75);
}

body.readable-mode .resource-item-title a::after {
    opacity: 0.65;
}

body.readable-mode .resource-item-title a:hover::after,
body.readable-mode .resource-item-title a:focus-visible::after {
    opacity: 1;
}

body.readable-mode .resource-item-title a:focus-visible {
    outline-color: rgba(59, 130, 246, 0.6);
}

body.readable-mode .resource-item-links a:hover,
body.readable-mode .resource-link:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.resource-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

body.readable-mode .resource-note {
    color: rgba(203, 213, 225, 0.75);
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

body.readable-mode .font-mono {
    color: var(--color-readable-text) !important;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--color-neon-primary);
    border-radius: 9999px;
    animation: dot-pulse 1.4s infinite ease-in-out both;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

body.readable-mode .loading-dots span {
    background-color: var(--color-readable-accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.protocols-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: 2rem;
}

.protocol-card {
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(2, 8, 23, 0.35);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.protocol-card:hover {
    border-color: rgba(14, 165, 233, 0.8);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

body.readable-mode .protocol-card {
    background: var(--color-readable-surface);
    border-color: var(--color-readable-border);
    box-shadow: none;
}

body.readable-mode .protocol-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.protocol-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.protocol-icon {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(56, 189, 248, 0.8);
    transform: rotate(45deg);
    border-radius: 0.35rem;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    position: relative;
    flex-shrink: 0;
}

.protocol-icon::after {
    content: '';
    position: absolute;
    inset: 0.35rem;
    background: rgba(14, 165, 233, 0.8);
    border-radius: 0.25rem;
}

.protocol-header h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.protocol-purpose {
    margin: 0.35rem 0 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: rgba(224, 242, 254, 0.85);
}

.protocol-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.protocol-points li strong {
    color: rgba(125, 211, 252, 0.95);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-right: 0.3rem;
}

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

    .protocol-header {
        flex-direction: row;
    }
}

.briefing-layout {
    display: grid;
    gap: 1.75rem;
    margin-top: 2rem;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 0.9rem;
    background: rgba(0, 8, 4, 0.35);
    box-shadow: inset 0 0 12px rgba(0, 255, 136, 0.08);
    min-height: 18rem;
    max-height: 32rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body.readable-mode .chat-thread {
    border-color: var(--color-readable-border);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: none;
}

.chat-message {
    display: grid;
    gap: 0.35rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.chat-message header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.chat-message[data-role='assistant'] header {
    color: var(--color-neon-primary);
}

.chat-message[data-role='user'] header {
    color: rgba(255, 255, 255, 0.7);
}

body.readable-mode .chat-message[data-role='assistant'] header {
    color: var(--color-readable-accent);
}

body.readable-mode .chat-message[data-role='user'] header {
    color: rgba(203, 213, 225, 0.8);
}

.chat-bubble {
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.35);
    line-height: 1.55;
    white-space: pre-wrap;
}

.chat-message[data-role='user'] .chat-bubble {
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(15, 118, 110, 0.25);
}

body.readable-mode .chat-bubble {
    border-color: var(--color-readable-border);
    background: rgba(15, 23, 42, 0.8);
}

body.readable-mode .chat-message[data-role='user'] .chat-bubble {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.15);
}

body.readable-mode .chat-status {
    color: rgba(203, 213, 225, 0.7);
}

.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.chat-status .loading-dots {
    margin-left: 0.25rem;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-input {
    resize: vertical;
    min-height: 6rem;
    max-height: 16rem;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.chat-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
}

.chat-send[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.chat-layout {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .chat-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

.chat-intel {
    display: grid;
    gap: 1.25rem;
}

.quick-prompts {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.6rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

.quick-prompts li::marker {
    color: var(--color-neon-primary);
}

.legal-note {
    margin: 0;
    padding: 0.75rem 1rem;
    border-left: 0.2rem solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 179, 189, 0.85);
}

body.readable-mode .legal-note {
    border-left-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.8);
    color: rgba(148, 163, 184, 0.9);
}

.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;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.highlight {
    color: rgba(204, 255, 204, 0.9);
    border-left: 0.25rem solid rgba(0, 255, 136, 0.4);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
}

.fallback-notice {
    margin-top: 1.25rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.85);
}

body.readable-mode .highlight {
    color: rgba(226, 232, 240, 0.92);
    border-left-color: rgba(59, 130, 246, 0.45);
}

body.readable-mode .fallback-notice {
    color: rgba(96, 165, 250, 0.85);
}

.tutorial-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .tutorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tutorial-card {
    display: grid;
    gap: 1rem;
}

.tutorial-card h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: rgba(204, 255, 214, 0.95);
}

.tutorial-meta {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.tutorial-topics {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.55rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.tutorial-topics li::marker {
    color: var(--color-neon-primary);
}

.tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.5);
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

footer .socials {
    display: inline-flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
}

footer svg:hover {
    color: var(--color-neon-primary);
    transform: translateY(-2px);
}

form {
    display: grid;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-neon-primary);
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.25);
    background-color: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-neon-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

body.readable-mode input,
body.readable-mode textarea {
    border-color: var(--color-readable-border);
    background-color: rgba(15, 23, 42, 0.85);
    color: var(--color-readable-text);
    box-shadow: none;
}

body.readable-mode input:focus,
body.readable-mode textarea:focus {
    border-color: var(--color-readable-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

button {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #059669, #047857);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.55);
}

body.readable-mode button {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.35);
}

body.readable-mode button:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.45);
}

.form-status {
    margin-top: 0.25rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    min-height: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-status[data-state='pending'] {
    color: rgba(0, 255, 136, 0.75);
}

.form-status[data-state='success'] {
    color: var(--color-neon-primary);
}

.form-status[data-state='error'] {
    color: #ff6b6b;
}

.matrix-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.2;
}

body.readable-mode .matrix-canvas {
    opacity: 0.05;
    filter: saturate(0.4);
}

.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        transparent 1px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.8) 3px
    );
    opacity: 0.12;
    animation: scanline-move 15s infinite linear;
    z-index: 15;
}

body.readable-mode .scanline-overlay {
    display: none;
}

@keyframes scanline-move {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100vh;
    }
}

@media (max-width: 640px) {
    nav {
        gap: 0.35rem;
    }

    .nav-link {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        padding: 0.55rem 0.9rem;
    }

    .site-subtitle {
        letter-spacing: 0.35em;
    }
}

@media (min-width: 1024px) {
    .briefing-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}



.highlight-heading {
    display: block;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-neon-primary);
    border-bottom: 1px solid rgba(0, 255, 136, 0.4);
    padding-bottom: 0.5rem;
}

.briefing-paragraph {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 0.2rem solid rgba(0, 255, 136, 0.35);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
}

.text-strong {
    color: rgba(204, 255, 204, 1);
}

.briefing-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.meta-pill {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-timestamp {
    padding-left: 0.5rem;
    border-left: 2px solid rgba(0, 255, 136, 0.3);
}
