/* ============================================
   Interra Labs Website Styles
   A dark-mode, sophisticated defense tech aesthetic
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Deep space palette */
    --bg-primary: #0a0c10;
    --bg-secondary: #0f1218;
    --bg-tertiary: #141922;
    --bg-elevated: #1a202c;

    /* Accent colors */
    --accent-primary: #00d4ff;
    /* Electric cyan */
    --accent-secondary: #00ff88;
    /* Neon green */
    --accent-tertiary: #ff6b35;
    /* Alert orange */
    --accent-purple: #8b5cf6;

    /* Text colors */
    --text-primary: #e8edf5;
    --text-secondary: #8892a4;
    --text-muted: #5a6478;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 212, 255, 0.3);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 12, 16, 0.95) 0%, rgba(15, 18, 24, 0.85) 100%);
    --gradient-card: linear-gradient(180deg, rgba(26, 32, 44, 0.8) 0%, rgba(20, 25, 34, 0.6) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 12, 16, 0.95);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.nav-logo-text .logo-accent {
    color: #5DD9C1;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-base);
}

.nav-cta:hover {
    background: #00b8e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.6) brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 12, 16, 0.75) 0%, rgba(15, 18, 24, 0.6) 100%);
}

.hero-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-subheadline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-base);
}

.hero-cta:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
}

.hero-cta svg {
    transition: var(--transition-fast);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* Hero Visual - Query Interface */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.query-interface {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.query-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    width: 100%;
}

.query-icon {
    color: var(--accent-primary);
    opacity: 0.8;
}

.query-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-primary);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.detection-layer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detection-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 1rem;
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.12),
        inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.detection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.detection-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
    }
}

.detection-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    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.05em;
}

.measurement-overlay {
    position: relative;
    height: 60px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.1),
        inset 0 0 15px rgba(0, 255, 136, 0.03);
}

.measurement-line {
    position: relative;
    width: 80%;
    height: 2px;
    background: var(--accent-secondary);
}

.measurement-line::before,
.measurement-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

.measurement-line::before {
    left: 0;
}

.measurement-line::after {
    right: 0;
}

.measurement-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 0.5;
    }
}

/* ============================================
   Page Header
   ============================================ */
.page-hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    /* Background moved to pseudo-element to extend behind cards */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 800px;
    /* Extend deep enough to cover the team cards */
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Mission Section
   ============================================ */
.mission-section {
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
    /* Ensure text is above the background glow */
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .mission-content {
        padding: 1rem;
    }
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mission-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mission-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.mission-list li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.mission-list strong {
    color: var(--accent-primary);
}

.mission-highlight {
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.mission-highlight p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    padding-bottom: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly smaller min-width */
    gap: 2rem;
    /* Reduced gap */
    max-width: 700px;
    /* Reduced max-width to make cards narrower */
    margin: 0 auto;
}

.team-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    /* Reduced padding */
    text-align: center;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.team-image-container {
    position: relative;
    width: 120px;
    /* Smaller container */
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    /* Add background context */
    border-radius: 50%;
    /* Make it circular */
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    /* Clip image to circle */
}

.team-image {
    width: 150%;
    /* Significant zoom for tighter crop */
    height: 150%;
    object-fit: cover;
    /* Changed to cover for better fill */
    object-position: top center;
    position: relative;
    z-index: 2;
    top: 15px;
    /* Move image down within circle */
}

.team-image-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(20px);
    z-index: 1;
    transition: var(--transition-base);
}

.team-card:hover .team-image-glow {
    opacity: 0.4;
    transform: scale(1.1);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    display: inline-block;
    font-weight: 800;
    /* Made Extra Bold */
}

.team-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ============================================
   Value Propositions
   ============================================ */
.value-props {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.value-props::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

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

.value-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: var(--transition-base);
}

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

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

.value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Technology Section
   ============================================ */
.technology {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    pointer-events: none;
}

.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tech-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-panel.reverse {
    direction: rtl;
}

.tech-panel.reverse>* {
    direction: ltr;
}

.tech-visual {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison Visual */
.comparison-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.comparison-side {
    flex: 3;
    text-align: center;
}

.comparison-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.comparison-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    object-fit: contain;
}

.comparison-divider {
    flex: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.comparison-divider span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.bbox-demo {
    position: relative;
    width: 140px;
    height: 100px;
    margin: 0 auto;
}

.bbox-rect {
    position: absolute;
    border: 2px dashed var(--accent-tertiary);
    background: rgba(255, 107, 53, 0.1);
}

.bbox-rect:nth-child(1) {
    width: 50px;
    height: 40px;
    top: 10px;
    left: 10px;
}

.bbox-rect:nth-child(2) {
    width: 55px;
    height: 42px;
    top: 15px;
    left: 45px;
}

.bbox-rect:nth-child(3) {
    width: 48px;
    height: 38px;
    top: 45px;
    left: 20px;
}

.bbox-rect:nth-child(4) {
    width: 52px;
    height: 40px;
    top: 50px;
    left: 60px;
}

.bbox-count,
.mask-count {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

.bbox-count {
    color: var(--accent-tertiary);
}

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

.mask-demo {
    position: relative;
    width: 140px;
    height: 100px;
    margin: 0 auto;
}

.mask-shape {
    position: absolute;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
}

.mask-shape.shape-1 {
    width: 45px;
    height: 35px;
    top: 10px;
    left: 12px;
    clip-path: polygon(10% 0%, 90% 5%, 95% 100%, 0% 95%);
}

.mask-shape.shape-2 {
    width: 48px;
    height: 36px;
    top: 12px;
    left: 65px;
    clip-path: polygon(5% 5%, 100% 0%, 95% 95%, 10% 100%);
}

.mask-shape.shape-3 {
    width: 44px;
    height: 34px;
    top: 50px;
    left: 18px;
    clip-path: polygon(0% 10%, 90% 0%, 100% 90%, 5% 100%);
}

.mask-shape.shape-4 {
    width: 46px;
    height: 35px;
    top: 52px;
    left: 70px;
    clip-path: polygon(8% 0%, 100% 8%, 92% 100%, 0% 95%);
}

/* Agent Flowchart */
.agent-flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-base);
}

.flow-node:hover {
    border-color: var(--border-accent);
}

.flow-node.start {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.1));
    border-color: var(--accent-primary);
}

.flow-node.end {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.1));
    border-color: var(--accent-secondary);
}

.node-label {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-node.end .node-label {
    background: var(--accent-secondary);
}

.flow-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.5;
}

.flow-node.tools {
    padding-bottom: 1rem;
}

.tool-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-primary);
    border-radius: 4px;
    font-weight: 600;
}

/* Tech Content */
.tech-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-content>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.tech-features svg {
    color: var(--accent-secondary);
    flex-shrink: 0;
}

/* ============================================
   Multi-Modal Querying
   ============================================ */
.querying {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.query-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.query-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-slow);
}

.query-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.query-card-visual {
    height: 200px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.query-card-visual>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

/* Terminal Window */
.terminal-window {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-prompt {
    color: var(--accent-secondary);
    margin-right: 0.5rem;
}

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

/* Search Box */
.search-box {
    width: 100%;
    max-width: 280px;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border-accent);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.search-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

.search-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.search-glow {
    display: none;
}

/* Upload Zone */
.upload-zone {
    width: 100%;
    height: 100%;
}

.upload-preview {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--border-accent);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.upload-overlay svg {
    width: 32px;
    height: 32px;
}

/* Map Selection */
.map-selection {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    height: 140px;
}

.map-cell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    position: relative;
}

.map-cell.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.selection-ring {
    position: absolute;
    inset: 8px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: ringPulse 2s infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.selection-cursor {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: var(--accent-primary);
}

.selection-cursor svg {
    width: 16px;
    height: 16px;
}

.map-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--accent-primary);
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

/* Query Card Content */
.query-card-content {
    padding: 1.5rem;
}

.query-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.query-card-icon svg {
    width: 20px;
    height: 20px;
}

.query-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   Social Proof
   ============================================ */
.proof {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.proof-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.03));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

.proof-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.proof-icon svg {
    width: 100%;
    height: 100%;
}

.proof-content {
    text-align: left;
}

.proof-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.proof-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Demo CTA Section
   ============================================ */
.demo-cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.demo-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.demo-cta .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 500px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), #00a8cc);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition-base);
    cursor: pointer;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.35);
}

.demo-button svg {
    transition: var(--transition-fast);
}

.demo-button:hover svg {
    transform: scale(1.1);
}

/* Calendar Preview */
.cta-visual {
    position: relative;
}

.calendar-preview {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 240px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.day-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.day {
    font-size: 0.8rem;
    padding: 0.4rem;
    border-radius: 6px;
    color: var(--text-secondary);
}

.day.highlight {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

/* ============================================
   Page Content (Contact, Privacy, etc.)
   ============================================ */
.page-content {
    padding: 8rem 0 4rem;
    background: var(--bg-primary);
    min-height: 60vh;
}

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

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-info svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-info a {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
}

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

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 32px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.footer-logo-text .logo-accent {
    color: #5DD9C1;
}

.footer-brand p {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   GEOINT Easter Egg
   ============================================ */
.geoint-easter-egg {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(360px, calc(100vw - 2rem));
    background: rgba(10, 12, 16, 0.92);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 1rem 1.25rem 1.1rem;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(16px);
    z-index: 1200;
    opacity: 0;
    transform: translateY(120%) scale(0.98);
    pointer-events: none;
    transition: opacity 260ms ease,
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    will-change: transform, opacity;
}

.geoint-easter-egg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 212, 255, 0.12), transparent 40%);
    opacity: 0.8;
    pointer-events: none;
}

.geoint-easter-egg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    animation: geointScan 2.2s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

.geoint-easter-egg.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.geoint-easter-egg__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.geoint-easter-egg__tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-accent);
    background: rgba(0, 212, 255, 0.08);
}

.geoint-easter-egg__close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.geoint-easter-egg__close:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.12);
}

.geoint-easter-egg__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.geoint-easter-egg__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
    font-family: var(--font-mono);
    position: relative;
    z-index: 1;
}

.geoint-easter-egg__grid span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.geoint-easter-egg__grid strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.geoint-easter-egg__footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

@keyframes geointScan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    15% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .query-interface {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .query-bar {
        min-height: 120px;
        max-height: 120px;
        overflow: hidden;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .query-text {
        overflow: hidden;
        line-height: 1.4;
    }

    .detection-card {
        padding: 0.75rem;
    }

    .detection-header {
        margin-bottom: 0.5rem;
        font-size: 0.65rem;
    }

    .detection-stats {
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .tech-panel,
    .tech-panel.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .tech-panel.reverse .tech-visual {
        order: -1;
    }

    .demo-cta .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-content h2,
    .cta-content p {
        max-width: none;
    }

    .cta-visual {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .technology {
        overflow-x: hidden;
    }

    .technology::before {
        width: 90vw;
        height: 90vw;
    }

    .value-grid,
    .query-cards {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        flex-direction: column;
        gap: 2rem;
    }

    .comparison-divider {
        transform: rotate(90deg);
    }

    .proof-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .geoint-easter-egg {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .detection-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Animations & Effects
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .geoint-easter-egg.motion-ok {
        transition: opacity 260ms ease,
            transform 520ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .geoint-easter-egg.motion-ok::after {
        animation-duration: 2.2s !important;
        animation-iteration-count: infinite !important;
    }
}

/* Scroll reveal animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
