/* --- Brand Variables (Global) --- */
:root {
    --kh-chassis: #e0e5ec;
    --kh-panel: #f0f2f5;
    --kh-recessed: #d1d9e6;
    --kh-text: #0A1128;
    --kh-cyan: #00B4D8;
    --kh-orange: #FF9F1C;
    --kh-white: #ffffff;
    --shadow-lift: 8px 8px 16px #babecc, -8px -8px 16px #ffffff;
    --shadow-pressed: inset 6px 6px 12px #babecc, inset -6px -6px 12px #ffffff;
    --shadow-recessed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-hover: 12px 12px 24px #babecc, -12px -12px 24px #ffffff;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ======== RESET & BASE ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: var(--kh-chassis);
    color: var(--kh-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Noise overlay — tactile matte plastic texture */
.noise-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ======== HEADER ======== */
.nexus-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(224, 229, 236, 0.95) 0%, rgba(224, 229, 236, 0) 100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, background 0.3s ease;
}
.nexus-header.scrolled {
    background: rgba(224, 229, 236, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-logo { display: flex; align-items: center; z-index: 10001; }
.header-logo img { height: 42px; width: auto; display: block; transition: height 0.3s ease; }
.menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}
.menu-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--kh-text);
    transition: color 0.3s;
}
.hamburger-lines {
    width: 28px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.line {
    width: 100%;
    height: 2px;
    background-color: var(--kh-text);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}
.menu-open .line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background-color: var(--kh-cyan); }
.menu-open .line:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-open .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); background-color: var(--kh-cyan); }
.menu-open .menu-text { color: var(--kh-cyan); }

/* ======== FULLSCREEN MENU ======== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--kh-text);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    clip-path: circle(0% at 95% 5%);
}
.fullscreen-menu .menu-bg-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 180, 216, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(255, 159, 28, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.nav-links { list-style: none; padding: 0; margin: 0; text-align: center; position: relative; z-index: 2; }
.nav-item { margin: 15px 0; overflow: hidden; }
.nav-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--kh-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    transform: translateY(100%);
}
.nav-link:hover { color: var(--kh-cyan); transform: translateX(10px); }
.menu-footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0;
}
.menu-footer a { color: inherit; text-decoration: none; transition: color 0.3s; }
.menu-footer a:hover { color: var(--kh-cyan); }

/* ======== SHARED SECTION ELEMENTS ======== */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--kh-cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    text-align: center;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--kh-text);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}
.section-title span { font-weight: 800; }

/* ======== SECTION 1: HERO — CALIBRATION CONSOLE ======== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kh-chassis);
    overflow: hidden;
    padding: 120px 60px 80px;
}
.neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}
.hero-text { flex: 1; max-width: 580px; }
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 8px 16px;
    background: rgba(10, 17, 40, 0.04);
    border: 1px solid rgba(10, 17, 40, 0.06);
    border-radius: 8px;
    width: fit-content;
}
.led-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kh-cyan);
    box-shadow: 0 0 10px 2px rgba(0, 180, 216, 0.6);
    animation: ledPulse 2s ease-in-out infinite;
}
.status-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: rgba(10, 17, 40, 0.5);
    font-weight: 500;
    min-width: 280px;
}
.status-label::after { content: '|'; animation: cursorBlink 1s step-end infinite; color: var(--kh-cyan); margin-left: 2px; }

/* Title with glitch */
.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--kh-text);
    margin-bottom: 24px;
}
.title-line { display: block; }
.title-line-2 { color: var(--kh-cyan); }
.title-line-2 span { color: var(--kh-cyan); }
.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch-text::before { color: var(--kh-orange); }
.glitch-text::after { color: var(--kh-cyan); }
.glitch-text:hover::before {
    animation: glitch1 0.3s ease infinite;
    opacity: 0.8;
}
.glitch-text:hover::after {
    animation: glitch2 0.3s ease infinite reverse;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(10, 17, 40, 0.6);
    font-weight: 400;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(10, 17, 40, 0.08);
}
.hero-stat { text-align: center; }
.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--kh-text);
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kh-cyan);
}
.stat-label {
    display: block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: rgba(10, 17, 40, 0.4);
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(10, 17, 40, 0.1);
}

/* Floating metadata tags */
.float-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: rgba(10, 17, 40, 0.45);
    background: rgba(224, 229, 236, 0.85);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(10, 17, 40, 0.06);
    box-shadow: 4px 4px 10px #babecc, -4px -4px 10px #ffffff;
    white-space: nowrap;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ft-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kh-cyan);
    box-shadow: 0 0 6px rgba(0, 180, 216, 0.5);
}
.ft-dot-orange { background: var(--kh-orange); box-shadow: 0 0 6px rgba(255, 159, 28, 0.5); }
.float-tag-1 { top: -16px; right: 30px; animation: floatTag 4s ease-in-out infinite; }
.float-tag-2 { bottom: 60px; left: -60px; animation: floatTag 5s ease-in-out infinite 1s; }
.float-tag-3 { top: 50%; right: -50px; animation: floatTag 4.5s ease-in-out infinite 0.5s; }

/* Screen scanline & data */
.screen-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
    z-index: 5;
    animation: scanDown 3s linear infinite;
}
.synapse-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.5;
}
.synapse-svg { width: 100%; height: 100%; }
.synapse {
    stroke: var(--kh-cyan);
    stroke-width: 0.8;
    opacity: 0.4;
    stroke-dasharray: 6 4;
    animation: dashFlow 2s linear infinite;
}
.synapse:nth-child(even) { stroke: var(--kh-orange); animation-direction: reverse; }
.node-dot { opacity: 0.7; }
.node-cyan { fill: var(--kh-cyan); filter: drop-shadow(0 0 3px rgba(0,180,216,0.8)); }
.node-orange { fill: var(--kh-orange); filter: drop-shadow(0 0 3px rgba(255,159,28,0.8)); }
.node-white { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)); }
.screen-data {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
}
.data-line {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: rgba(0, 180, 216, 0.5);
    animation: dataPulse 3s ease-in-out infinite;
}

/* Orbit ring around device */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(0, 180, 216, 0.12);
    animation: orbitSpin 20s linear infinite;
    pointer-events: none;
}
.orbit-dot {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kh-cyan);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.6);
    transform: translateX(-50%);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(10, 17, 40, 0.3);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 180, 216, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Tactile Buttons */
.hero-cta-wrapper { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-tactile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    min-width: 180px;
}
.btn-icon { margin-right: 8px; display: inline-block; animation: spinSlow 4s linear infinite; }
.btn-arrow { margin-left: 8px; transition: transform 0.3s; display: inline-block; }
.btn-chassis:hover .btn-arrow { transform: translateX(4px); }
.btn-orange {
    background: linear-gradient(135deg, #FF9F1C 0%, #ffb84d 50%, #FF9F1C 100%);
    color: var(--kh-white);
    box-shadow: 6px 6px 14px rgba(186, 190, 204, 0.7), -4px -4px 10px rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-size: 200% 200%;
    animation: shimmerBtn 3s ease-in-out infinite;
}
.btn-orange:hover {
    box-shadow: 8px 8px 18px rgba(186, 190, 204, 0.8), -6px -6px 14px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}
.btn-orange:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}
.btn-chassis {
    background: var(--kh-chassis);
    color: var(--kh-text);
    box-shadow: var(--shadow-lift);
}
.btn-chassis:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.btn-chassis:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
}

/* Hero Device (3D bezel) */
.hero-device { flex: 0 0 380px; position: relative; z-index: 1; }
.device-bezel {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 24px;
    background: var(--kh-chassis);
    box-shadow: var(--shadow-lift);
    border: 3px solid var(--kh-recessed);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.device-screw {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ccc 0%, #e8e8e8 50%, #b0b0b0 100%);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.25), 1px 1px 2px rgba(255, 255, 255, 0.8);
}
.device-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 1.5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1px;
}
.screw-tl { top: 12px; left: 12px; }
.screw-tr { top: 12px; right: 12px; }
.screw-bl { bottom: 12px; left: 12px; }
.screw-br { bottom: 12px; right: 12px; }
.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--kh-text);
    box-shadow: var(--shadow-recessed);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.brain-hemisphere {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: brainGlow 3s ease-in-out infinite alternate;
}
.brain-left { left: 30px; background: var(--kh-orange); }
.brain-right { right: 30px; background: var(--kh-cyan); animation-delay: 1.5s; }
.device-logo {
    position: relative;
    z-index: 2;
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ======== SECTION 2: THE MECHANICS ======== */
.mechanics-section {
    position: relative;
    width: 100%;
    padding: 120px 60px;
    background-color: var(--kh-panel);
    overflow: hidden;
}
.mechanics-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
}
.mech-module {
    flex: 1;
    padding: 50px 40px;
    border-radius: 20px;
    position: relative;
}
.mech-legacy {
    background: var(--kh-recessed);
    box-shadow: var(--shadow-recessed);
}
.mech-engine {
    background: var(--kh-panel);
    box-shadow: var(--shadow-lift);
}
.module-header-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 6px;
    width: fit-content;
}
.mech-legacy .module-header-tag {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}
.mech-engine .module-header-tag {
    color: var(--kh-cyan);
    background: rgba(0, 180, 216, 0.08);
}
.mech-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.mech-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(10, 17, 40, 0.65);
}

/* Connector pipe */
.mech-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.connector-pipe {
    width: 12px;
    height: 100%;
    min-height: 120px;
    border-radius: 6px;
    background: var(--kh-recessed);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 2px 0 4px rgba(255, 255, 255, 0.6);
    position: relative;
}
.connector-pipe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 60%;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--kh-cyan), var(--kh-orange));
    opacity: 0.6;
}
.connector-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(10, 17, 40, 0.3);
    margin-top: 10px;
}

/* ======== SECTION 3: CORE MODULES ======== */
.modules-section {
    position: relative;
    width: 100%;
    padding: 120px 60px;
    background-color: var(--kh-chassis);
    overflow: hidden;
}
.modules-header {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}
.modules-grid {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.module-card {
    background: var(--kh-chassis);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--shadow-lift);
    transition: all 0.3s ease;
    position: relative;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-vents {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vent-slot {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--kh-recessed);
    box-shadow: inset 1px 1px 2px #babecc, inset -1px -1px 2px #ffffff;
}
.card-icon-housing {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--kh-recessed);
    box-shadow: var(--shadow-recessed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.card-icon {
    width: 28px;
    height: 28px;
    color: var(--kh-cyan);
}
.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--kh-text);
}
.card-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(10, 17, 40, 0.6);
}

/* ======== SECTION 4: DASHBOARD ======== */
.dashboard-section {
    position: relative;
    width: 100%;
    padding: 120px 60px;
    background-color: var(--kh-panel);
    overflow: hidden;
}
.dashboard-header {
    position: relative;
    z-index: 1;
}
.dashboard-chassis {
    position: relative;
    z-index: 1;
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 24px;
    background: var(--kh-chassis);
    box-shadow: var(--shadow-lift);
    border: 3px solid var(--kh-recessed);
    padding: 20px;
}
.dashboard-display {
    border-radius: 18px;
    background: var(--kh-text);
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
}
.dash-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.dash-row:last-child { margin-bottom: 0; }
.dash-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
}
.dash-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--kh-cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

/* Focus gauge */
.focus-gauge { margin-bottom: 12px; }
.gauge-track {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 8px;
}
.gauge-fill {
    width: 78%;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--kh-cyan), #00e5ff);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.5);
    transition: width 1.5s ease;
}
.gauge-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--kh-cyan);
}
.dash-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    display: block;
    margin-top: 6px;
}

/* Terminal list */
.terminal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.terminal-list li {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    line-height: 1.5;
}
.terminal-list li:last-child { border-bottom: none; }
.terminal-prefix {
    color: var(--kh-cyan);
    margin-right: 8px;
    font-weight: 700;
}

/* Feedback panel */
.feedback-line {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 10px;
}
.feedback-line:last-child { margin-bottom: 0; }
.fb-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 6px;
}
.feedback-line:first-child .fb-tag { color: var(--kh-cyan); }
.feedback-line:last-child .fb-tag { color: var(--kh-orange); }

/* Toggle switches */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}
.toggle-switch {
    width: 44px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}
.toggle-switch.active { background: rgba(0, 180, 216, 0.3); }
.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.toggle-switch.active .toggle-knob {
    left: 25px;
    background: var(--kh-cyan);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

/* ======== SECTION 5: VISION ======== */
.vision-section {
    position: relative;
    width: 100%;
    padding: 140px 60px;
    background-color: var(--kh-chassis);
    overflow: hidden;
}
.vision-panel {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    background: var(--kh-panel);
    border-radius: 24px;
    box-shadow: var(--shadow-lift);
    padding: 80px 60px;
    overflow: hidden;
}
.grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(10, 17, 40, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 17, 40, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}
.vision-content { position: relative; z-index: 1; }
.vision-content .section-tag { text-align: left; margin-bottom: 24px; }
.vision-readout {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--kh-text);
    text-align: left;
}
.blink-cursor {
    color: var(--kh-cyan);
    font-weight: 300;
    animation: cursorBlink 1s step-end infinite;
}

/* ======== SECTION 6: COMMUNICATION TERMINAL (FOOTER) ======== */
.terminal-footer {
    position: relative;
    background-color: var(--kh-text);
    color: var(--kh-white);
    padding: 80px 40px 0 40px;
    border-top: 3px solid rgba(0, 180, 216, 0.15);
    font-size: 0.9rem;
    z-index: 10;
    overflow: hidden;
}
.terminal-footer .footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.terminal-footer .footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.terminal-footer .footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--kh-cyan);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Profile bezel */
.profile-bezel {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 6px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.profile-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(255, 159, 28, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-initials {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--kh-white);
    opacity: 0.8;
}
.profile-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer links */
.terminal-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.terminal-footer .footer-links li { margin-bottom: 12px; }
.terminal-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: color 0.3s ease;
}
.terminal-footer .footer-links a:hover { color: var(--kh-cyan); }

/* Footer contact items */
.terminal-footer .footer-contact-item { margin-bottom: 18px; }
.terminal-footer .footer-contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
}
.terminal-footer .footer-contact-value {
    color: var(--kh-white);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.3s;
    text-decoration: none;
    display: inline-block;
}
.terminal-footer .footer-contact-value:hover { color: var(--kh-cyan); }
.contact-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* WhatsApp terminal button */
.whatsapp-terminal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 28px;
    background: var(--kh-cyan);
    color: var(--kh-text);
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3);
    margin-top: 20px;
}
.whatsapp-terminal-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
    transform: translateY(-2px);
}
.whatsapp-terminal-btn:active {
    transform: translateY(4px);
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer bottom */
.terminal-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--kh-white); }

/* ======== KEYFRAMES ======== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}
@keyframes ledPulse {
    0%, 100% { box-shadow: 0 0 10px 2px rgba(0, 180, 216, 0.6); opacity: 1; }
    50% { box-shadow: 0 0 6px 1px rgba(0, 180, 216, 0.3); opacity: 0.6; }
}
@keyframes brainGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes glitch1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}
@keyframes glitch2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 1px); }
    60% { transform: translate(1px, 2px); }
    80% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}
@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes scanDown {
    0% { top: -3px; }
    100% { top: 100%; }
}
@keyframes dashFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 20; }
}
@keyframes dataPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}
@keyframes orbitSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes shimmerBtn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======== RESPONSIVE — MOBILE (768px) ======== */
@media (max-width: 768px) {
    .nexus-header { padding: 15px 20px; }
    .header-logo img { height: 32px; }
    .menu-text { display: none; }
    .nav-link { font-size: 1.8rem; }
    .menu-footer { flex-direction: column; gap: 15px; text-align: center; bottom: 30px; }

    .hero-section { padding: 90px 20px 60px; min-height: auto; }
    .hero-content { flex-direction: column; gap: 32px; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { max-width: 100%; font-size: 0.95rem; margin-bottom: 28px; }
    .hero-cta-wrapper { justify-content: center; flex-direction: column; align-items: center; gap: 14px; }
    .btn-tactile { width: 100%; max-width: 300px; padding: 14px 28px; font-size: 0.92rem; min-width: unset; }
    .hero-stats { gap: 0; justify-content: space-between; flex-wrap: nowrap; width: 100%; margin-top: 28px; padding-top: 24px; }
    .stat-number { font-size: 1.4rem; }
    .stat-suffix { font-size: 1rem; }
    .stat-label { font-size: 0.62rem; }
    .stat-divider { height: 28px; }
    .hero-stat { flex: 1; }
    .status-indicator { justify-content: center; padding: 6px 12px; }
    .status-label { min-width: unset; font-size: 0.6rem; }

    /* Device — smaller, contained */
    .hero-device { flex: none; width: 100%; max-width: 280px; margin: 0 auto; position: relative; }
    .device-bezel { width: 200px; height: 200px; margin: 0 auto; padding: 20px; }
    .device-logo { width: 75px; }
    .device-screw { width: 10px; height: 10px; }
    .screw-tl { top: 8px; left: 8px; }
    .screw-tr { top: 8px; right: 8px; }
    .screw-bl { bottom: 8px; left: 8px; }
    .screw-br { bottom: 8px; right: 8px; }

    /* Floating tags — repositioned inside bounds */
    .float-tag { font-size: 0.52rem; padding: 3px 8px; }
    .float-tag-1 { top: -12px; right: 10px; }
    .float-tag-2 { bottom: 30px; left: 0px; }
    .float-tag-3 { top: 45%; right: -5px; }
    .orbit-ring { width: 250px; height: 250px; }
    .orbit-dot { width: 7px; height: 7px; }

    .scroll-indicator { bottom: 10px; }
    .scroll-line { height: 28px; }

    .mechanics-section { padding: 80px 24px; }
    .mechanics-container { flex-direction: column; gap: 0; }
    .mech-module { padding: 36px 28px; }
    .mech-connector { width: 100%; height: 60px; flex-direction: row; }
    .connector-pipe { width: 100%; height: 12px; min-height: auto; }
    .connector-label { margin-top: 0; margin-left: 12px; }

    .modules-section { padding: 80px 24px; }
    .modules-grid { grid-template-columns: 1fr; gap: 24px; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }

    .dashboard-section { padding: 80px 16px; }
    .dashboard-chassis { padding: 12px; }
    .dashboard-display { padding: 20px 16px; }
    .dash-row { flex-direction: column; gap: 16px; }
    .gauge-value { font-size: 1.4rem; }
    .terminal-list li { font-size: 0.75rem; }

    .vision-section { padding: 80px 24px; }
    .vision-panel { padding: 50px 28px; }
    .vision-readout { font-size: 1.6rem; }

    .terminal-footer { padding: 60px 20px 0 20px; }
    .terminal-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .terminal-footer .footer-col { align-items: center; text-align: center; }
    .profile-bezel { margin: 0 auto 14px; }
    .contact-field { display: inline-block; }
    .whatsapp-terminal-btn { font-size: 0.78rem; padding: 18px 20px; }
    .terminal-footer .footer-bottom { flex-direction: column; gap: 15px; }
}

/* ======== RESPONSIVE — TABLET (1024px) ======== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section { padding: 110px 36px 80px; }
    .hero-content { gap: 40px; }
    .hero-title { font-size: 3rem; }
    .device-bezel { width: 260px; height: 260px; }
    .hero-device { flex: 0 0 280px; }
    .float-tag { font-size: 0.58rem; }
    .orbit-ring { width: 340px; height: 340px; }

    .mechanics-section { padding: 100px 40px; }
    .modules-section { padding: 100px 40px; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }

    .dashboard-section { padding: 100px 30px; }
    .vision-panel { padding: 60px 40px; }
    .vision-readout { font-size: 2rem; }

    .terminal-footer .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
}
