:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-dim: #444444;
    --accent: #00ff88;
    --accent-dim: #00ff8833;
    --accent-secondary: #00aaff;
    --warning: #ff6b00;
    --danger: #ff0055;
    --border: #2a2a2a;
    --glow: 0 0 1.25rem rgba(0, 255, 136, 0.3);
}

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

html {
    font-size: clamp(14px, 1.5vw, 18px);
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Tactical background */
.tactical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: mapPan 120s ease-in-out infinite;
}

.map-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0.5) saturate(0.6) hue-rotate(70deg);
    image-rendering: crisp-edges;
    transition: opacity 0.5s ease;
}

.map-layer img {
    display: block;
}

.map-layer.loading {
    opacity: 0.3;
}

@keyframes mapPan {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-5%, -3%) scale(1.02); }
    50% { transform: translate(-2%, -5%) scale(1); }
    75% { transform: translate(3%, -2%) scale(1.01); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 3vw 3vw;
    pointer-events: none;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(10,10,10,0.8) 100%);
    pointer-events: none;
}

.reticle {
    position: absolute;
    width: clamp(80px, 10vw, 150px);
    height: clamp(80px, 10vw, 150px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: top 0.8s cubic-bezier(0.23, 1, 0.32, 1), left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.4;
    animation: reticleDrift 120s ease-in-out infinite;
}

@keyframes reticleDrift {
    0%, 100% { margin: 0; }
    25% { margin: -3vh 0 0 -5vw; }
    50% { margin: -5vh 0 0 -2vw; }
    75% { margin: -2vh 0 0 3vw; }
}

.reticle-ring {
    animation: rotateRing 20s linear infinite;
    transform-origin: 100px 100px;
}

.reticle-ring-inner {
    animation: rotateRing 15s linear infinite reverse;
    transform-origin: 100px 100px;
}

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

.reticle-brackets {
    animation: pulseBrackets 2s ease-in-out infinite;
}

@keyframes pulseBrackets {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.reticle.acquiring .reticle-brackets {
    animation: acquireTarget 0.3s ease-out;
}

@keyframes acquireTarget {
    0% { transform: scale(1.3); opacity: 0.3; }
    100% { transform: scale(1); opacity: 1; }
}

.reticle-hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 8vw), -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
    color: var(--accent);
    pointer-events: none;
    text-shadow: none;
    transition: top 0.8s cubic-bezier(0.23, 1, 0.32, 1), left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.35;
    animation: reticleDrift 120s ease-in-out infinite;
}

.hud-top {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.hud-label {
    color: var(--text-dim);
}

.hud-status {
    color: var(--accent);
    animation: blinkStatus 1s step-end infinite;
}

.hud-status.locked {
    color: var(--danger);
    animation: none;
}

.hud-target-name {
    color: var(--danger);
    font-weight: 700;
    font-size: clamp(0.7rem, 1.4vw, 0.9rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 0.6rem rgba(255, 0, 85, 0.6);
}

@keyframes blinkStatus {
    50% { opacity: 0.3; }
}

.hud-coords {
    margin-bottom: 0.3rem;
}

.hud-coord {
    display: flex;
    gap: 0.5rem;
}

.coord-label {
    color: var(--text-dim);
    width: 1.5rem;
}

.coord-value {
    font-variant-numeric: tabular-nums;
}

.hud-bottom {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.55rem, 1vw, 0.7rem);
}

/* Tactical HUD - location and detections */
.tactical-hud {
    position: fixed;
    bottom: 2vw;
    left: 2vw;
    font-family: 'JetBrains Mono', monospace;
    z-index: 5;
    pointer-events: none;
}

.hud-location {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 1.25rem rgba(0, 255, 136, 0.5);
}

.hud-loc-label {
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.hud-loc-name {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    animation: locationPulse 3s ease-in-out infinite;
}

@keyframes locationPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

.hud-detections {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    max-height: 8rem;
    overflow: hidden;
}

.detection-item {
    display: flex;
    gap: 0.6rem;
    opacity: 0.7;
    animation: detectionFade 0.3s ease-out;
}

@keyframes detectionFade {
    from { opacity: 0; transform: translateX(-0.6rem); }
    to { opacity: 0.7; transform: translateX(0); }
}

.det-type {
    color: var(--danger);
    min-width: 3rem;
}

.det-proto {
    color: var(--accent-secondary);
    min-width: 2.8rem;
}

.det-id {
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* Noise texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Corner brackets */
.corner-bracket {
    position: fixed;
    width: 2vw;
    height: 2vw;
    min-width: 1.5rem;
    min-height: 1.5rem;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    z-index: 100;
    opacity: 0.5;
}

.corner-bracket.top-left {
    top: 1.5vw;
    left: 1.5vw;
    border-top-width: 2px;
    border-left-width: 2px;
}

.corner-bracket.top-right {
    top: 1.5vw;
    right: 1.5vw;
    border-top-width: 2px;
    border-right-width: 2px;
}

.corner-bracket.bottom-left {
    bottom: 1.5vw;
    left: 1.5vw;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.corner-bracket.bottom-right {
    bottom: 1.5vw;
    right: 1.5vw;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4vw;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary) 60%, transparent);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 1.5em;
    width: auto;
    filter: invert(73%) sepia(67%) saturate(652%) hue-rotate(85deg) brightness(104%) contrast(104%);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
}

/* Header (home page) */
.header {
    position: fixed;
    top: 3.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4vw;
    z-index: 99;
    background: transparent;
}

.sys-status {
    display: flex;
    gap: 1.25rem;
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item .label {
    color: var(--text-secondary);
}

.status-item .bar {
    width: clamp(2.5rem, 5vw, 4rem);
    height: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: 0.125rem;
    overflow: hidden;
}

.status-item .fill {
    height: 100%;
    background: var(--accent);
    box-shadow: var(--glow);
    transition: width 0.3s ease;
}

.status-item .fill.sec {
    background: var(--accent);
}

.coordinates {
    display: flex;
    gap: 1.25rem;
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--text-secondary);
}

.coord {
    font-variant-numeric: tabular-nums;
}

/* Main content */
.main {
    max-width: 75rem;
    margin: 0 auto;
    padding: 7.5rem 2.5rem 3.75rem;
    position: relative;
    z-index: 10;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 5rem 0 3.75rem;
}

.glitch-container {
    position: relative;
    display: inline-block;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-shadow: var(--glow);
    position: relative;
    animation: flicker 4s infinite;
}

.logo.glitch {
    animation: glitch 2.5s infinite;
}

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

.logo.glitch::before {
    color: var(--danger);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.logo.glitch::after {
    color: var(--accent-secondary);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 1px); }
    92% { transform: translate(2px, -1px); }
    93% { transform: translate(-1px, 2px); }
    94% { transform: translate(1px, -2px); }
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    91%, 94% { transform: translate(-3px, -1px); opacity: 0.8; }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    91%, 94% { transform: translate(3px, 1px); opacity: 0.8; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
    51% { opacity: 1; }
    52% { opacity: 0.95; }
    53% { opacity: 1; }
}

.hero-logo {
    height: clamp(4rem, 12vw, 8rem);
    width: auto;
    margin: 1.5rem auto;
    display: block;
    filter: invert(73%) sepia(67%) saturate(652%) hue-rotate(85deg) brightness(104%) contrast(104%);
    opacity: 0.9;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 1.1rem);
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    margin-top: 0.6rem;
}

.tagline {
    margin-top: 2.5rem;
    font-size: clamp(0.7rem, 1.3vw, 0.9rem);
    color: var(--accent);
}

.bracket {
    color: var(--text-dim);
}

.typing {
    display: inline-block;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: blink 0.7s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 3.75rem 0;
    color: var(--text-dim);
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    letter-spacing: 0.2em;
}

.divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider .text {
    color: var(--text-secondary);
}

/* Sections */
.section {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: 1.875rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title .marker {
    color: var(--accent);
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
}

/* Capability cards */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.25rem;
}

.capability-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capability-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 1.875rem rgba(0, 255, 136, 0.1);
}

.capability-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.card-header .icon {
    color: var(--accent);
    font-size: 1rem;
}

.card-header .title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.card-content {
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--accent);
    letter-spacing: 0.1em;
}

.status-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 0.375rem rgba(0, 255, 136, 0); }
}

/* Applications list */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-item {
    background: var(--bg-secondary);
    border-left: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    border-left-color: var(--accent);
    background: var(--bg-tertiary);
}

.app-item.expanded {
    border-left-color: var(--accent);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.app-marker {
    color: var(--accent);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.app-item.expanded .app-marker {
    transform: rotate(90deg);
}

.app-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.3vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    min-width: 12rem;
}

.app-desc {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-secondary);
}

.app-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem 0 3rem;
    border-top: 1px solid transparent;
}

.app-item.expanded .app-content {
    max-height: 18.75rem;
    padding: 1rem 1.25rem 1.25rem 3rem;
    border-top: 1px solid var(--border);
}

.app-content p {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.app-specs {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.app-specs .spec {
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--accent);
    letter-spacing: 0.05em;
}

/* About section */
.about-content {
    max-width: 44rem;
}

.about-content p {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.classified {
    background: var(--text-primary);
    color: var(--text-primary);
    padding: 0 0.3rem;
    user-select: none;
}

.classified-full {
    background: var(--text-dim);
    color: var(--text-dim);
    padding: 0.125rem 0.6rem;
    user-select: none;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.875rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--text-dim);
    letter-spacing: 0.2em;
}

.contact-value {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: var(--accent);
}

/* Footer */
.footer {
    margin-top: 6.25rem;
    padding: 1.875rem 2.5rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.classification {
    color: var(--accent);
    opacity: 0.5;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* Responsive */
@media (max-width: 48rem) {
    .header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.6rem;
    }

    .main {
        padding: 6.25rem 1.25rem 2.5rem;
    }

    .logo {
        letter-spacing: 0.1em;
    }

    .subtitle {
        letter-spacing: 0.2em;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .typing {
        white-space: normal;
        border-right: none;
        animation: none;
        width: auto;
    }

    .app-header {
        flex-wrap: wrap;
    }

    .app-name {
        min-width: auto;
    }

    .corner-bracket {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }

    .tactical-hud {
        bottom: 1rem;
        left: 1rem;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Page content */
.page-content {
    padding-top: 6.25rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3.75rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-shadow: var(--glow);
    margin-bottom: 0.6rem;
}

.page-subtitle {
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

/* Systems CTA page */
.systems-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 3rem;
}

.cta-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 31rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.terminal-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--text-dim);
}

.terminal-dot:first-child { background: var(--danger); }
.terminal-dot:nth-child(2) { background: var(--warning); }
.terminal-dot:nth-child(3) { background: var(--accent); }

.terminal-title {
    margin-left: auto;
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.terminal-body {
    padding: 1.25rem;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.prompt {
    color: var(--accent);
    margin-right: 0.6rem;
}

.status-tag {
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    padding: 0.125rem 0.5rem;
    margin-left: 0.6rem;
    letter-spacing: 0.05em;
}

.status-tag.dev {
    background: var(--warning);
    color: var(--bg-primary);
}

.status-tag.classified {
    background: var(--danger);
    color: var(--text-primary);
}

.cursor {
    animation: blink 1s step-end infinite;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent);
}

.cta-button {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 1.875rem;
    border: 1px solid var(--accent);
    background: transparent;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--glow);
}

.button-bracket {
    color: var(--text-dim);
}

.cta-button:hover .button-bracket {
    color: var(--bg-primary);
}

/* About page */
.about-section {
    margin-bottom: 3.75rem;
}

.about-block {
    max-width: 50rem;
}

.block-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.block-content p {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.security-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent);
}

.security-label {
    font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.security-value {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--accent);
}

.security-note {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-dim);
    font-style: italic;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.team-member {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.member-role {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-clearance {
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    color: var(--accent);
    margin-bottom: 1rem;
}

.member-background {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: clamp(0.55rem, 1vw, 0.7rem);
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.team-note {
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    color: var(--text-dim);
    font-style: italic;
}

.capability-list {
    margin-top: 1.25rem;
}

.capability-check {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.check {
    color: var(--accent);
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
}

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

/* Careers page */
.careers-intro {
    text-align: center;
    max-width: 37rem;
    margin: 0 auto 2.5rem;
}

.careers-intro p {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    margin-bottom: 3.75rem;
}

.job-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.875rem;
    transition: border-color 0.3s ease;
}

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

.job-header {
    margin-bottom: 1.25rem;
}

.job-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.job-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.95rem, 1.7vw, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.job-type {
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    padding: 0.25rem 0.6rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
    letter-spacing: 0.05em;
}

.job-meta {
    display: flex;
    gap: 1.25rem;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-secondary);
}

.job-clearance {
    color: var(--warning);
}

.job-body {
    margin-bottom: 1.5rem;
}

.job-desc {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.job-requirements h3 {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.job-requirements ul {
    list-style: none;
    padding-left: 0;
}

.job-requirements li {
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.job-requirements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.job-apply {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.1em;
    color: var(--accent);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-apply:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

button.cta-button {
    cursor: pointer;
}

.careers-footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.careers-footer p {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Contact page */
.contact-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.75rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.channel {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.channel:hover {
    border-left-color: var(--accent);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.channel-icon {
    color: var(--accent);
}

.channel-type {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.channel-value {
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

a.channel-value:hover {
    color: var(--accent);
}

.channel-desc {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-dim);
}

.email-canvas {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-location {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    height: fit-content;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.location-city {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.location-country {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.location-note {
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.location-coords {
    display: flex;
    gap: 1rem;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.brief-request {
    text-align: center;
    max-width: 37rem;
    margin: 0 auto;
}

.brief-request p {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.brief-requirements {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.brief-requirements li {
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.brief-requirements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Mobile responsive additions */
@media (max-width: 48rem) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.65rem;
    }

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

    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .job-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}
