/* ==========================================================================
   ZeroHawk Enterprise CSS Design System - Performance Optimized Vertical Edition
   ========================================================================== */

:root {
    --bg-primary: #080a0d;
    --bg-secondary: #0c0f14;
    --bg-glass: rgba(12, 15, 20, 0.75);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-hover: rgba(0, 200, 151, 0.25);
    
    /* Premium Enterprise Colors */
    --accent-emerald: #00c897;
    --accent-slate: #58a6ff;
    --text-primary: #f0f3f6;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.55s cubic-bezier(0.25, 1, 0.5, 1); /* Cinematic easeInOut */
}

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

html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Background Node Grid Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

/* Red Hawk Watermark Background */
.bg-hawk {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vh;
    height: 75vh;
    background-image: url('assets/hawk_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: screen;
    filter: invert(1) sepia(1) saturate(15) hue-rotate(330deg);
}

.header-notice {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    max-width: 480px;
    line-height: 1.4;
    text-align: center;
    opacity: 0.85;
}

/* Header & Corporate Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(8, 10, 13, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo-slashes {
    color: var(--accent-emerald);
    margin-right: 6px;
    font-weight: 700;
}

.logo-accent {
    color: var(--accent-emerald);
    margin-right: 8px;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-emerald);
    transition: var(--transition-medium);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-status {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pulse-indicator {
    width: 5px;
    height: 5px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

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

/* Responsive Scroll Container Layout */
@media (min-width: 1024px) and (min-height: 700px) {
    html, body {
        overflow: hidden;
        height: 100vh;
        width: 100vw;
    }
    
    .scroll-container {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: 10;
    }

    .scroll-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        will-change: transform;
        transition: transform var(--transition-slow);
    }

    .scroll-section {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
}

/* Fallback for Mobile and Small Viewports */
@media (max-width: 1023px) or (max-height: 699px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        width: 100%;
    }
    
    .scroll-container {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        z-index: 10;
    }

    .scroll-wrapper {
        width: 100%;
        height: auto;
        display: block;
        transform: none !important;
        transition: none;
    }

    .scroll-section {
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        display: block;
        padding: 80px 0;
        position: relative;
        overflow: visible;
    }
    
    .depth-indicators {
        display: none !important;
    }
}

.section-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-content {
        padding: 40px 0;
    }
}

/* Hero Section */
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--accent-emerald);
    border: 1px solid rgba(0, 200, 151, 0.25);
    padding: 4px 10px;
    background: rgba(0, 200, 151, 0.03);
    border-radius: 4px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 550px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 4px;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-emerald);
    color: #080a0d;
    border: 1px solid var(--accent-emerald);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-emerald);
}

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

.btn-secondary:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.hero-visual, .process-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1.1;
}

.cyber-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-wrapper:hover .cyber-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 35%, rgba(8, 10, 13, 0.8) 100%);
    pointer-events: none;
}

/* Specific split-text logo overrides for the Hero section */
.logo-burst-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Ink rip effect canvas - sits behind the text */
#ink-rip-canvas {
    position: absolute;
    top: -40px;
    left: -60px;
    width: calc(100% + 120px);
    height: calc(100% + 80px);
    z-index: 0;
    pointer-events: none;
}

/* Torn paper edge overlay */
.ink-tear-edges {
    position: absolute;
    top: -20px;
    left: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 40px);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ink-tear-edges.revealed {
    opacity: 1;
}

.logo-burst-part {
    position: absolute;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    will-change: opacity, transform, clip-path;
    /* Start visible, whole (no split) */
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase 1: text appears whole */
.logo-burst-part.ink-revealed {
    opacity: 1;
    transform: none;
}

.logo-char {
    display: inline-block;
    color: transparent;
    background: linear-gradient(135deg, #ffffff 40%, #58a6ff 60%, #00c897 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(40ms + var(--char-idx) * 28ms);
    will-change: transform;
}

.top-part {
    /* No clip-path initially — full text visible */
    filter: drop-shadow(0 -5px 15px rgba(0, 200, 151, 0.2));
}

/* Phase 2: after crack passes, clip-path is set dynamically by JS */
.top-part.logo-split .logo-char {
    transform: translate(-3px, -5px);
}

.bottom-part {
    /* No clip-path initially — overlaps top-part, invisible together they look like one text */
    filter: drop-shadow(0 5px 15px rgba(0, 200, 151, 0.2));
}

.bottom-part.logo-split .logo-char {
    transform: translate(3px, 5px);
}

.logo-glow-crack {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-emerald), #ffffff, var(--accent-emerald), transparent);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    /* transform is set dynamically by JS to match exact angle and offset */
    box-shadow: 0 0 10px rgba(0, 200, 151, 0.4), 0 0 4px #ffffff;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.1s ease;
}

.logo-glow-crack.ink-revealed {
    opacity: 0.6;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

#logo-sparks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Compliance Section Layout */
.section-header {
    margin-bottom: 45px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-emerald);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

/* Compliance and Trust Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.compliance-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 30px;
    backdrop-filter: blur(16px);
    transition: border-color var(--transition-medium), transform var(--transition-medium);
}

.compliance-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
}

.compliance-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.compliance-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Researcher Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.advantage-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 28px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--transition-medium), transform var(--transition-medium);
}

.advantage-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
}

.advantage-featured {
    border-color: rgba(0, 200, 151, 0.12);
    background: linear-gradient(135deg, rgba(0, 200, 151, 0.03) 0%, var(--bg-glass) 100%);
}

.advantage-icon {
    font-size: 28px;
    line-height: 1;
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.advantage-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.advantage-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: -1px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Submission Process Protocols */
.protocols-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
    position: relative;
}

.pipeline-stage {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 24px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: border-color var(--transition-medium);
}

.pipeline-stage:hover {
    border-color: var(--border-glass-hover);
}

.pipeline-stage::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 20px;
    width: 2px;
    height: 12px;
    background-color: var(--border-glass);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.stage-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: 1px;
}

.stage-status {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.pipeline-stage h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.pipeline-stage p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Careers Section */
.careers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.careers-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 24px 30px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition-medium);
}

.careers-card:hover {
    border-color: var(--border-glass-hover);
}

.careers-card .card-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent-emerald);
}

.careers-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}

.careers-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.requirements span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.requirements ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.requirements li {
    font-size: 12.5px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

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

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 10px;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 18px 24px;
    border-radius: 6px;
}

.contact-method .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.contact-method .value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.pgp-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 24px 30px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pgp-panel .label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.pgp-key {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 16px;
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.faq-trigger {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--accent-emerald);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text-secondary);
    transition: transform var(--transition-medium);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
    padding: 0 24px;
}

.faq-content p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    padding-bottom: 18px;
}

.faq-item.active {
    border-color: rgba(255, 255, 255, 0.06);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-emerald);
}

.faq-item.active .faq-content {
    max-height: 200px;
}

/* Floating Navigation Indicators */
.depth-indicators {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-medium);
}

.dot:hover {
    background-color: var(--accent-emerald);
}

.dot.active {
    background-color: var(--accent-emerald);
    transform: scale(1.4);
}

/* Corporate Footer Bar */
.corporate-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 100;
    background: rgba(8, 10, 13, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-entity {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.footer-divider {
    color: var(--text-muted);
    font-size: 10px;
}

.footer-address {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Mouse wheel indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.mouse-icon {
    width: 18px;
    height: 28px;
    border: 2px solid var(--text-secondary);
    border-radius: 10px;
    position: relative;
    display: block;
}

.mouse-icon .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 6px); }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-layout, .compliance-grid, .process-layout, .careers-grid, .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hero-visual, .process-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .header {
        padding: 20px 30px;
    }
    
    .depth-indicators {
        right: 20px;
    }
    
    .security-status-bar {
        left: 25px;
        bottom: 15px;
        flex-direction: column;
        gap: 4px;
    }
}

/* Agent Page Styling */
.agent-page {
    overflow-y: auto; /* Allow normal scrolling on subpage if text wraps */
}

.agent-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 120px 60px 60px 60px;
}

.agent-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agent-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.beta-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent-slate);
    border: 1px solid rgba(88, 166, 255, 0.2);
    background: rgba(88, 166, 255, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
}

.agent-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.agent-form-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 6px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: center;
}

.agent-form-panel h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.agent-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cyber-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    border-radius: 4px;
    outline: none;
    transition: var(--transition-fast);
}

.cyber-input:focus {
    border-color: var(--accent-emerald);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Form Feedback Panel */
.form-feedback {
    background: rgba(0, 200, 151, 0.03);
    border: 1px solid rgba(0, 200, 151, 0.15);
    padding: 24px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-status {
    font-size: 11px;
    color: var(--accent-emerald);
    letter-spacing: 1.5px;
}

.form-feedback p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

.nav-link.agent-highlight {
    color: var(--accent-emerald);
}

.nav-link.agent-highlight::after {
    background-color: var(--accent-emerald);
}

@media (max-width: 1024px) {
    .agent-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .agent-container {
        padding: 100px 30px 40px 30px;
    }
}

/* ==========================================================================
   MOBILE FIX v2 - Navbar overflow, scroll indicator overlap, polish
   ========================================================================== */

/* --- Tablet (768px) --- */
@media (max-width: 768px) {
    /* Hide nav on tablet/mobile - keep only logo */
    .nav {
        display: none;
    }

    /* Hide header status badge */
    .header-status {
        display: none;
    }

    .header-notice {
        display: none;
    }

    /* Tighter header */
    .header {
        padding: 14px 20px;
    }

    /* Hide scroll indicator on mobile */
    .scroll-down-indicator {
        display: none !important;
    }

    /* Section content */
    .section-content {
        width: 90%;
        padding: 50px 0;
    }

    /* Hero */
    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 13.5px;
    }

    /* Protocols pipeline - 2 cols on tablet */
    .protocols-pipeline {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .pipeline-stage {
        padding: 18px;
    }

    .pipeline-stage h3 {
        font-size: 14px;
    }

    .pipeline-stage p {
        font-size: 12px;
    }

    /* Cards */
    .compliance-card {
        padding: 22px;
    }

    .compliance-card h3 {
        font-size: 16px;
    }

    .compliance-card p {
        font-size: 13px;
    }

    .advantage-card {
        padding: 22px;
    }

    .careers-card {
        padding: 20px;
    }

    /* Contact section */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pgp-key {
        font-size: 9px;
        padding: 12px;
        max-height: 160px;
    }

    /* Logo burst */
    .logo-burst-container {
        height: 220px;
    }

    .logo-burst-part {
        font-size: 40px;
    }

    .stat-value {
        font-size: 22px;
    }

    /* Footer */
    .site-footer {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- Mobile Phone (480px) --- */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .section-content {
        width: 92%;
        padding: 35px 0;
    }

    .scroll-section {
        padding: 40px 0;
    }

    /* Hero */
    .hero-title {
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.55;
    }

    .btn {
        font-size: 10.5px;
        padding: 13px 20px;
    }

    .badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: 21px;
    }

    .section-subtitle {
        font-size: 12.5px;
    }

    .section-num {
        font-size: 10px;
    }

    /* Grids single column */
    .compliance-grid,
    .advantages-grid,
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .protocols-pipeline {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Cards tighter */
    .compliance-card,
    .advantage-card,
    .pipeline-stage,
    .careers-card {
        padding: 16px;
    }

    .compliance-card h3,
    .advantage-card h3 {
        font-size: 15px;
    }

    .compliance-card p,
    .advantage-card p {
        font-size: 12.5px;
    }

    .pipeline-stage h3 {
        font-size: 13.5px;
    }

    .pipeline-stage p {
        font-size: 11.5px;
    }

    .careers-card h3 {
        font-size: 16px;
    }

    .careers-card p {
        font-size: 12.5px;
    }

    .card-meta {
        font-size: 9px;
    }

    .requirements span {
        font-size: 9.5px;
    }

    .requirements li {
        font-size: 11.5px;
    }

    /* Contact */
    .contact-method {
        padding: 14px 16px;
    }

    .contact-method .label {
        font-size: 9px;
    }

    .contact-method .value {
        font-size: 12.5px;
    }

    .pgp-panel {
        padding: 16px;
    }

    .pgp-panel .label {
        font-size: 9px;
    }

    .pgp-key {
        font-size: 7.5px;
        padding: 10px;
        max-height: 130px;
        line-height: 1.4;
    }

    /* Logo burst smaller */
    .logo-burst-container {
        height: 160px;
    }

    .logo-burst-part {
        font-size: 30px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 9px;
    }

    .advantage-icon {
        font-size: 22px;
    }

    /* Background hawk smaller */
    .bg-hawk {
        width: 50vh;
        height: 50vh;
    }

    /* Hide non-essential on mobile */
    .security-status-bar {
        display: none;
    }

    .depth-indicators {
        display: none !important;
    }

    /* FAQ */
    .faq-question {
        font-size: 13px;
        padding: 14px 16px;
    }

    .faq-answer {
        font-size: 12px;
        padding: 0 16px 14px;
    }
}

/* --- Extra Small (360px) --- */
@media (max-width: 360px) {
    .logo {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 21px;
    }

    .section-header h2 {
        font-size: 19px;
    }

    .logo-burst-part {
        font-size: 24px;
    }

    .logo-burst-container {
        height: 130px;
    }

    .section-content {
        width: 94%;
    }
}

/* Performance: GPU acceleration for smooth mobile scroll */
@media (max-width: 768px) {
    .scroll-section {
        will-change: auto;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    #neural-canvas {
        opacity: 0.15;
    }
    
    .compliance-card,
    .advantage-card,
    .pipeline-stage,
    .careers-card,
    .contact-method {
        transform: none !important;
        transition: none !important;
    }
    
    .compliance-card:hover,
    .advantage-card:hover,
    .pipeline-stage:hover,
    .careers-card:hover {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    #neural-canvas {
        opacity: 0.1;
    }
    
    .bg-hawk {
        opacity: 0.03;
    }
}
