/* =============================================
   KAUFFMANN-BREMIN — Defence Technology Website
   Font: Assistant (brand font from KB store)
   Inspired by: Forterra, Chaos Industries
   ============================================= */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #b0cce0;
    --accent-dim: rgba(176, 204, 224, 0.15);
    --accent-glow: rgba(176, 204, 224, 0.3);
    --thermal-orange: #ff6b00;
    --thermal-yellow: #ffd700;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(176, 204, 224, 0.2);
    --font-primary: 'Assistant', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --nav-height: 72px;
    --container-max: 1280px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Boot Sequence === */
#boot-sequence {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, background 1s ease;
}

#boot-sequence.nvg-on {
    background: transparent;
}

#boot-sequence.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-button {
    background: none;
    border: 1px solid rgba(176, 204, 224, 0.15);
    padding: 1.2rem 2.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: bootFadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

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

.boot-button:hover {
    border-color: rgba(176, 204, 224, 0.4);
    background: rgba(176, 204, 224, 0.03);
}

.boot-button:hover .boot-label {
    color: var(--accent);
}

.boot-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(176, 204, 224, 0.5);
    transition: color 0.3s ease;
}

/* Elements hidden during boot */
#nvg-canvas.boot-hidden,
#ar-hud.boot-hidden,
#hud-viewport.boot-hidden,
#hud-nav.boot-hidden,
.hero-bg.boot-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* === Night Vision Noise Background === */
#nvg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
}

#nvg-canvas.active {
    opacity: 0.35;
}
/* === Persistent Background === */
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* === Slide Viewport === */
#hud-viewport {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 5;
    overflow: hidden;
}

.hud-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    transition: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(176,204,224,0.15) transparent;
}

.hud-slide::-webkit-scrollbar {
    width: 3px;
}

.hud-slide::-webkit-scrollbar-thumb {
    background: rgba(176,204,224,0.15);
}

.hud-slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.slide-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-hero .slide-content {
    text-align: center;
    padding: 2rem;
}

/* === TV Static Canvas === */
#static-canvas {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
}

#static-canvas.active {
    opacity: 1;
}

/* === Bottom Nav === */
#hud-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(176, 204, 224, 0.06);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.hud-nav-btn {
    background: none;
    border: 1px solid rgba(176, 204, 224, 0.15);
    color: var(--accent);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hud-nav-btn:hover {
    background: rgba(176, 204, 224, 0.08);
    border-color: rgba(176, 204, 224, 0.3);
}

.hud-nav-btn svg {
    width: 18px;
    height: 18px;
}

#hud-nav-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 160px;
}

#hud-nav-idx {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(176, 204, 224, 0.4);
}

#hud-nav-name {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

/* === Thermal Scanline === */
#thermal-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--thermal-orange), var(--thermal-yellow), var(--thermal-orange), transparent);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    animation: thermalScan 8s linear infinite;
}

@keyframes thermalScan {
    0% { top: -3px; opacity: 0; }
    5% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% { top: 100vh; opacity: 0; }
}

/* === Navigation === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.nav-logo-img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
    opacity: 1;
}

.logo-full {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-left: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

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

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 8px 20px;
    border-radius: 2px;
    transition: all var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.mobile-cta {
    margin-top: 1rem;
    color: var(--accent) !important;
    border: 1px solid var(--border-accent);
    padding: 12px 32px;
    border-radius: 2px;
}

/* === Hero Slide === */

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 252, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 252, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-line {
    display: block;
}

.hero-accent {
    color: var(--text-primary);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-dim);
}

.btn-primary svg {
    transition: transform var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-outline {
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 10px 24px;
    font-size: 0.8rem;
    display: inline-flex;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* (Scroll indicator removed — slide-based navigation) */

/* AR HUD Overlay (persistent across all slides) */
#ar-hud {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-mono);
    color: var(--accent);
    opacity: 0.5;
    overflow: hidden;
}

.hud-panel {
    position: absolute;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.hud-lbl {
    color: rgba(176, 204, 224, 0.4);
    text-transform: uppercase;
}

.hud-val {
    color: var(--accent);
}

.hud-blink {
    animation: hudBlink 2s step-end infinite;
}

@keyframes hudBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hud-friendly { color: #6cb8ff; }
.hud-hostile { color: #ff6b6b; }

/* Top Left — System */
.hud-tl {
    top: 1.5rem;
    left: 1.5rem;
    min-width: 160px;
}

/* Top Center — Compass */
.hud-tc {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

#hud-compass {
    display: block;
    opacity: 0.6;
}

/* Top Right — Position */
.hud-tr {
    top: 1.5rem;
    right: 1.5rem;
    text-align: right;
    min-width: 150px;
}

/* Bottom Left — Mini Map */
.hud-bl {
    bottom: 2rem;
    left: 1.5rem;
}

.hud-minimap-label {
    font-size: 0.55rem;
    color: rgba(176, 204, 224, 0.35);
    margin-bottom: 4px;
    letter-spacing: 0.12em;
}

#hud-minimap {
    display: block;
    border: 1px solid rgba(176, 204, 224, 0.15);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
}

/* Bottom Center — Mission */
.hud-bc {
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 220px;
}

.hud-mission-header {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4px;
}

.hud-mission-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.hud-milestones {
    text-align: left;
    margin-bottom: 8px;
}

.hud-milestone {
    font-size: 0.55rem;
    color: rgba(176, 204, 224, 0.3);
    padding: 1px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-milestone.done {
    color: rgba(176, 204, 224, 0.5);
}

.hud-milestone.active {
    color: var(--accent);
}

.ms-check {
    color: #6cb8ff;
    font-size: 0.6rem;
}

.ms-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(176, 204, 224, 0.25);
    display: inline-block;
}

.hud-milestone.active .ms-dot {
    background: var(--accent);
    animation: hudBlink 1.5s step-end infinite;
}

.hud-progress-bar {
    height: 2px;
    background: rgba(176, 204, 224, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hud-progress-fill {
    height: 100%;
    width: 62%;
    background: var(--accent);
    border-radius: 1px;
    transition: width 1s ease;
}

.hud-progress-text {
    font-size: 0.55rem;
    color: rgba(176, 204, 224, 0.35);
}

/* Bottom Right — Threat */
.hud-br {
    bottom: 2rem;
    right: 1.5rem;
    text-align: right;
    min-width: 150px;
}

/* Crosshair */
.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    color: var(--accent);
}

/* Corner Brackets */
.hud-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(176, 204, 224, 0.12);
    border-style: solid;
    border-width: 0;
}

.hud-bracket-tl {
    top: 0.5rem;
    left: 0.5rem;
    border-top-width: 1px;
    border-left-width: 1px;
}

.hud-bracket-tr {
    top: 0.5rem;
    right: 0.5rem;
    border-top-width: 1px;
    border-right-width: 1px;
}

.hud-bracket-bl {
    bottom: 0.5rem;
    left: 0.5rem;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.hud-bracket-br {
    bottom: 0.5rem;
    right: 0.5rem;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* === Section Styling (now inside slides) === */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Technology Cards === */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.tech-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-card), rgba(124, 252, 0, 0.02));
}

.tech-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover .tech-card-bg {
    opacity: 1;
}

.tech-card[data-tech="nvg"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(124, 252, 0, 0.05), transparent 60%);
}

.tech-card[data-tech="ar"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(0, 150, 255, 0.05), transparent 60%);
}

.tech-card[data-tech="ai"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(255, 100, 0, 0.05), transparent 60%);
}

.tech-card[data-tech="mesh"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(0, 255, 200, 0.05), transparent 60%);
}

.tech-card[data-tech="tubes"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(255, 215, 0, 0.05), transparent 60%);
}

.tech-card[data-tech="optics"] .tech-card-bg {
    background: radial-gradient(ellipse at top right, rgba(180, 100, 255, 0.05), transparent 60%);
}

.tech-card-noise {
    position: absolute;
    inset: 0;
    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)' opacity='0.5'/%3E%3C/svg%3E");
}

.tech-card-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50%;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card-large:hover .tech-card-glow {
    opacity: 0.3;
}

.tech-card-content {
    position: relative;
    z-index: 1;
}

.tech-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 2px 10px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.tech-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.spec {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.spec span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spec span:last-child {
    color: var(--text-secondary);
}

/* === Platform Flow === */
.platform-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 3rem 0;
}

.platform-node {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    min-width: 180px;
    transition: all var(--transition);
}

.platform-node:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.node-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.node-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.icon-pin {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    display: inline-block;
    color: var(--accent);
}

.icon-flag {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    display: inline-block;
    color: var(--accent);
}

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

.platform-node p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.platform-connector {
    color: var(--accent);
    opacity: 0.3;
    width: 60px;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-story p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-founders {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.founder-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.founder-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.founder-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.founder-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.founder-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition);
}

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

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Investor Section === */
.investor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.investor-card {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition);
}

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

.investor-metric {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.investor-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.investor-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.investor-thesis {
    margin-bottom: 4rem;
}

.investor-thesis h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.thesis-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.thesis-point {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.thesis-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

.thesis-point h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.thesis-point p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.investor-cta {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: linear-gradient(135deg, var(--bg-card), rgba(124, 252, 0, 0.02));
}

.investor-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* === Newsroom === */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition);
}

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

.news-featured {
    grid-column: span 2;
}

.news-img {
    height: 250px;
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.news-link:hover {
    opacity: 0.7;
}

/* === Careers === */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.career-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    transition: all var(--transition);
}

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

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.career-dept {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.career-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.career-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.career-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.career-details {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.career-card.expanded .career-details {
    display: block;
}

.career-details h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.career-details h4:first-child {
    margin-top: 0;
}

.career-details ul {
    list-style: none;
    padding: 0;
}

.career-details li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.career-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
}

.career-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition);
}

.career-toggle:hover {
    opacity: 0.7;
}

.career-card.expanded .career-toggle span {
    display: inline-block;
    transform: rotate(45deg);
}

.careers-cta {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.careers-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* === Global Presence === */
.global-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

#world-map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    padding: 1.5rem;
}

#world-map-container svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-svg {
    width: 100%;
    height: auto;
}

.pin-pulse {
    animation: pinPulse 3s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% { r: 15; opacity: 0.1; }
    50% { r: 25; opacity: 0.2; }
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.location-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.location-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.location-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Contact Section === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition);
}

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

.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    word-break: break-all;
    transition: opacity var(--transition);
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-general {
    text-align: center;
    color: var(--text-muted);
}

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

/* === Footer === */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.85;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--border-accent);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* === Global HUD Treatment === */

/* Every card gets corner bracket overlays */
.tech-card, .value-card, .investor-card, .thesis-point, .news-card,
.career-card, .location-card, .contact-card, .founder-card, .platform-node {
    position: relative;
    border-radius: 0;
    border-color: rgba(176, 204, 224, 0.08);
    background: rgba(16, 18, 20, 0.8);
}

.tech-card::before, .value-card::before, .investor-card::before,
.thesis-point::before, .news-card::before, .career-card::before,
.location-card::before, .contact-card::before, .founder-card::before,
.platform-node::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    opacity: 0.3;
    z-index: 2;
    transition: opacity var(--transition);
}

.tech-card::after, .value-card::after, .investor-card::after,
.thesis-point::after, .news-card::after, .career-card::after,
.location-card::after, .contact-card::after, .founder-card::after,
.platform-node::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 12px; height: 12px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    opacity: 0.3;
    z-index: 2;
    transition: opacity var(--transition);
}

.tech-card:hover::before, .tech-card:hover::after,
.value-card:hover::before, .value-card:hover::after,
.investor-card:hover::before, .investor-card:hover::after,
.contact-card:hover::before, .contact-card:hover::after,
.career-card:hover::before, .career-card:hover::after,
.platform-node:hover::before, .platform-node:hover::after {
    opacity: 0.7;
}

/* Section HUD header treatment */
.section-tag {
    position: relative;
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid rgba(176, 204, 224, 0.12);
    background: rgba(176, 204, 224, 0.03);
}

.section-tag::before {
    content: '◆';
    margin-right: 8px;
    font-size: 0.5rem;
    vertical-align: middle;
    opacity: 0.5;
}

/* Slide scan line */
.hud-slide .slide-content {
    position: relative;
}

/* Grid overlay on slides (replaces section-dark) */
.hud-slide:nth-child(odd) .slide-content {
    background-image:
        linear-gradient(rgba(176, 204, 224, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 204, 224, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* HUD-style stats */
.stat-number {
    font-family: var(--font-mono);
    font-weight: 600;
    position: relative;
}

.stat {
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(176, 204, 224, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

/* Tech specs as HUD readouts */
.tech-specs {
    border-top: 1px solid rgba(176, 204, 224, 0.08);
    background: rgba(0, 0, 0, 0.15);
    margin: 1.5rem -2rem -2.5rem;
    padding: 1rem 2rem;
}

.tech-card-large .tech-specs {
    margin: 1.5rem -3rem -3rem;
    padding: 1rem 3rem;
}

.spec {
    position: relative;
    padding-left: 8px;
}

.spec::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.4;
}

/* Investor metrics — HUD data display */
.investor-metric {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.investor-metric::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.2;
    margin-top: 4px;
}

/* Thesis points — numbered HUD blocks */
.thesis-number {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    opacity: 0.3;
    position: relative;
}

.thesis-number::after {
    content: '//';
    margin-left: 4px;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Career cards — classified document look */
.career-dept {
    padding: 2px 8px;
    border: 1px solid rgba(176, 204, 224, 0.1);
    background: rgba(176, 204, 224, 0.03);
}

.career-details li::before {
    content: '▸';
    color: var(--accent);
    opacity: 0.35;
}

/* News cards — data feed look */
.news-date {
    position: relative;
    padding-left: 12px;
}

.news-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Contact cards — comm channel labels */
.contact-email {
    position: relative;
    padding: 6px 10px;
    border: 1px solid rgba(176, 204, 224, 0.08);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

/* Map container HUD frame */
#world-map-container {
    position: relative;
    border-radius: 0;
}

#world-map-container::before {
    content: 'GEOSPATIAL :: LIVE';
    position: absolute;
    top: 6px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: rgba(176, 204, 224, 0.25);
    z-index: 1;
}

/* Buttons — tactical style */
.btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.btn-primary {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 8px;
    border-top: 1px solid rgba(0,0,0,0.3);
    border-right: 1px solid rgba(0,0,0,0.3);
    transform: rotate(45deg) translate(-3px, 3px);
}

/* Founder cards — personnel file styling */
.founder-img-placeholder {
    border-radius: 0;
    border: 1px solid rgba(176, 204, 224, 0.2);
    background: rgba(176, 204, 224, 0.05);
    font-size: 0.9rem;
}

.founder-title {
    position: relative;
    padding-left: 10px;
}

.founder-title::before {
    content: '//';
    position: absolute;
    left: 0;
    opacity: 0.4;
}

/* Platform flow — data pipeline */
.platform-connector svg {
    overflow: visible;
}

.platform-connector svg line {
    stroke: var(--accent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -16; }
}

/* Footer — system terminal styling */
footer {
    border-top: 1px solid rgba(176, 204, 224, 0.06);
    position: relative;
}

footer::before {
    content: 'SYS :: KAUFFMANN-BREMIN :: SECURE CHANNEL';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(176, 204, 224, 0.1);
    text-align: center;
    padding: 1rem 0 0;
}

.footer-social a {
    border-radius: 0;
}

/* Nav HUD style */
#navbar.scrolled {
    border-bottom: 1px solid rgba(176, 204, 224, 0.06);
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* (Grid overlay now on slides via nth-child) */

/* Progress / loading bars on section headers */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 1.5rem auto 0;
    opacity: 0.3;
}

/* CTA blocks — tactical command panels */
.investor-cta, .careers-cta {
    border-radius: 0;
    border: 1px solid rgba(176, 204, 224, 0.1);
    background: rgba(176, 204, 224, 0.02);
    position: relative;
}

.investor-cta::before, .careers-cta::before {
    content: 'ACTION REQUIRED';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(176, 204, 224, 0.2);
    margin-bottom: 1rem;
}

/* Scroll indicator — HUD style */
.hero-scroll-indicator span {
    border: 1px solid rgba(176, 204, 224, 0.08);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
}

/* Hero grid — blue-tinted */
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(176, 204, 224, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 204, 224, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === Animations (slide-based, no scroll) === */

/* === Responsive === */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-card-large {
        grid-column: span 2;
    }

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

    .thesis-points {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card-large {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .investor-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-column: span 1;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }

    .global-content {
        grid-template-columns: 1fr;
    }

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

    .platform-flow {
        flex-direction: column;
    }

    .platform-connector {
        transform: rotate(90deg);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    #ar-hud {
        display: none;
    }

    .slide-content {
        padding: 2rem 1rem 3rem;
    }

    #hud-nav {
        gap: 1rem;
    }
}
