/* VARIABLES & RESET */
:root {
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-muted: #888888;
    --accent-blue: #0d7ff2;
    --accent-blue-glow: rgba(13, 127, 242, 0.3);
    --accent-orange: #ff5500;
    --border-color: rgba(255, 255, 255, 0.12);

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --easing: cubic-bezier(0.8, 0, 0.1, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Screen-reader only utility (modern, non-deprecated) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: #050508;
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Film grain via SVG noise pseudo-element */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.055;
    pointer-events: none;
    z-index: 9000;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }
}

/* ================================================================
   FULL-PAGE FIXED CANVAS
   ================================================================ */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ================================================================
   CONTAINERS & TYPOGRAPHY
   ================================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* Text clip reveal */
.split-text {
    overflow: hidden;
}

.split-line {
    display: block;
    overflow: hidden;
}

.split-line span {
    display: inline-block;
    will-change: transform, opacity;
}

/* Manifesto-style large quote — In Cognita signature */
.manifesto-quote {
    font-size: clamp(2.5rem, 5.5vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 6rem;
    max-width: 100%;
    clip-path: inset(0 0 100% 0);
}

.manifesto-quote.revealed {
    clip-path: inset(0 0 0% 0);
    transition: clip-path 1.1s var(--ease-out);
}

.utility-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

/* ================================================================
   SECTION INDICATORS — "01 / Manifesto" top-left effect
   ================================================================ */
.section-indicator {
    position: absolute;
    top: 4rem;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    opacity: 0.7;
}

.si-num {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.si-label {
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
    position: relative;
    padding-bottom: 4px;
}

.si-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease-out);
}

.section-indicator.active .si-label::after {
    transform: scaleX(1);
}

/* ================================================================
   HR DRAW LINES
   ================================================================ */
.hr-draw {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

/* ================================================================
   CURSOR
   ================================================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-light);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--easing), height 0.4s var(--easing), background-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
}

/* ================================================================
   PRELOADER — Progress bar style
   ================================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Three morphing circles like In Cognita */
.preloader-spheres {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.ps {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(200, 150, 255, 0.9), rgba(120, 50, 200, 0.7) 50%, rgba(0, 0, 0, 0.5));
    animation: spherePulse 2s ease-in-out infinite;
    filter: blur(1px);
}

.ps-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.ps-2 {
    width: 100px;
    height: 100px;
    animation-delay: -0.6s;
    background: radial-gradient(circle at 35% 35%, rgba(255, 180, 100, 0.9), rgba(200, 80, 20, 0.7) 50%, rgba(0, 0, 0, 0.5));
}

.ps-3 {
    width: 50px;
    height: 50px;
    animation-delay: -1.2s;
}

@keyframes spherePulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
        border-radius: 50%;
    }

    33% {
        transform: scale(1.1) translateY(-8px);
        border-radius: 45% 55% 55% 45% / 45% 45% 55% 55%;
    }

    66% {
        transform: scale(0.92) translateY(4px);
        border-radius: 55% 45% 45% 55% / 55% 55% 45% 45%;
    }
}

/* Progress bar */
.preloader-bar-wrap {
    width: clamp(200px, 40vw, 400px);
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.1s linear;
}

.preloader-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: absolute;
    bottom: 3rem;
}

/* ================================================================
   NAVIGATION — In Cognita style
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* Ensure this is the absolute top */
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0) 100%);
    /* Protect nav buttons from background overlap */
    transition: transform 0.4s var(--ease-out);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Contact button with orbiting dot — In Cognita "Contact us ⊙•" */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-btn-dot-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dotRingRotate 3s linear infinite;
}

.contact-btn-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light);
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes dotRingRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Menu button */
.menu-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 999px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.6);
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.menu-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-light);
    transition: transform 0.35s var(--easing), opacity 0.3s ease;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(2.75px) rotate(45deg);
}

.menu-btn.active .menu-line:nth-child(2) {
    transform: translateY(-2.75px) rotate(-45deg);
}

/* ================================================================
   OVERLAY MENU — deep navy, In Cognita style
   ================================================================ */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #06090f;
    box-shadow: inset 0 0 120px rgba(13, 60, 180, 0.22),
        inset 0 0 400px rgba(5, 20, 80, 0.4);
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    pointer-events: none;
}

.overlay-menu.active {
    pointer-events: auto;
}

.menu-links {
    list-style: none;
}

.menu-item {
    font-size: 7vw;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    overflow: hidden;
    line-height: 1.1;
    position: relative;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: letter-spacing 0.4s var(--easing);
}

.menu-item:hover {
    letter-spacing: 0.04em;
    color: var(--accent-blue);
}

.menu-item .menu-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    position: relative;
    top: -3vw;
    margin-right: 1rem;
    color: var(--text-muted);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s linear, opacity 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.btn-submit {
    background-color: var(--accent-blue);
    color: #fff;
    font-size: 1.1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 6.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 900;
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    position: relative;
    z-index: 3;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    z-index: 2;
    opacity: 0;
}

.mouse {
    width: 20px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}

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

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

/* ================================================================
   SECTIONS — shared
   ================================================================ */
section {
    position: relative;
    z-index: 1;
}

/* ================================================================
   PROBLEM vs SOLUTION
   ================================================================ */
.problem-solution {
    padding: 12rem 0 10rem;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.7) 0%, rgba(5, 5, 8, 0.85) 100%);
}

.problem-grid {
    margin-top: 4rem;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 85%;
    line-height: 1.8;
}

.visual {
    height: 240px;
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.glitch-box {
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 85, 0, 0.04) 10px, rgba(255, 85, 0, 0.04) 20px);
}

.glow-box {
    border: 1px solid rgba(13, 127, 242, 0.5);
    box-shadow: inset 0 0 50px rgba(13, 127, 242, 0.1);
    color: var(--accent-blue);
}

/* ================================================================
   FEATURES
   ================================================================ */
.features {
    padding: 12rem 0 10rem;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.9) 100%);
}

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

.feature-block {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.feature-num {
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.feature-header h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.feature-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================================
   DEMO INTEGRATION
   ================================================================ */
.demo-section {
    padding: 12rem 0 10rem;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.95) 100%);
}

.demo-header {
    margin-bottom: 4rem;
}

.demo-wrapper {
    position: relative;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
}

.client-mockup {
    background-color: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mockup-header {
    background-color: #1a1a22;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a35;
}

.mockup-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.mockup-nav {
    font-size: 0.82rem;
    color: #666;
}

.mockup-body {
    padding: 3rem 2rem;
}

.mockup-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.embedded-portal {
    background-color: #13131a;
    border: 1px dashed #333;
    padding: 1.5rem;
    border-radius: 4px;
}

.portal-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mock-input,
.mock-select {
    background: #1e1e28;
    border: 1px solid #333;
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 2px;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
}

.mock-table th,
.mock-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #222;
    font-size: 0.88rem;
}

.mock-table th {
    color: #666;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.mock-badge {
    background: #252530;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    border: 1px solid rgba(13, 127, 242, 0.3);
}

.mock-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 2px;
}

/* =============================================================
   ANNOTATIONS — sci-fi data readout style
   ============================================================= */

/* Scan glow sweep along the line */
@keyframes scanGlow {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Gentle perpetual float bob */
@keyframes annFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Blinking cursor at end of typewriter text */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.annotation {
    position: absolute;
    display: flex;
    align-items: center;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* Initial hidden state — JS reveals them */
    opacity: 0;
    /* Continuous floating after reveal */
    animation: annFloat 3.5s ease-in-out infinite paused;
    transition: filter 0.3s ease;
}

/* JS adds this class after reveal to start floating */
.annotation.floating {
    animation-play-state: running;
}

/* Blinking cursor pseudo-element after text */
.ann-text::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
    opacity: 0;
    /* JS turns this on after typewriter finishes */
}

.ann-text.typed::after {
    opacity: 1;
}

/* Hover — lift + glow */
.annotation:hover {
    filter: drop-shadow(0 0 8px rgba(13, 127, 242, 0.7));
    z-index: 20;
    cursor: default;
}

/* The connecting line */
.ann-line {
    /* Scan highlight sweep */
    background: linear-gradient(90deg,
            var(--accent-blue),
            rgba(13, 127, 242, 0.4) 40%,
            rgba(150, 210, 255, 0.95) 55%,
            rgba(13, 127, 242, 0.4) 70%,
            var(--accent-blue));
    background-size: 200% 100%;
    animation: scanGlow 2.2s linear infinite paused;
    transform-origin: left;
    transform: scaleX(0);
    /* drawn in by JS */
    will-change: transform;
}

/* Start scan once line is drawn */
.ann-line.scanning {
    animation-play-state: running;
}

/* Reverse-direction lines (ann-1, ann-3 are row-reverse) */
.ann-1 .ann-line,
.ann-3 .ann-line {
    transform-origin: right;
}

.ann-1 {
    top: 22%;
    right: -5rem;
    flex-direction: row-reverse;
}

.ann-1 .ann-line {
    width: 80px;
    height: 1px;
    margin-left: 1rem;
}

.ann-2 {
    bottom: 25%;
    left: -5rem;
}

.ann-2 .ann-line {
    width: 80px;
    height: 1px;
    margin-right: 1rem;
}

.ann-3 {
    top: 62%;
    right: -5rem;
    flex-direction: row-reverse;
}

.ann-3 .ann-line {
    width: 60px;
    height: 1px;
    margin-left: 1rem;
}

/* ================================================================
   CONTACT SALES
   ================================================================ */
.contact-sales {
    padding: 12rem 0 10rem;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.97) 0%, rgba(5, 5, 8, 1) 100%);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-pitch {
    position: relative;
    z-index: 2;
}

.massive-headline {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.05;
}

.sub-headline {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.tech-readout {
    margin-top: 4rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.82rem;
    line-height: 2.2;
    opacity: 0.85;
}

.tech-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 127, 242, 0.4);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.tech-link:hover {
    border-color: rgba(13, 127, 242, 0.9);
    opacity: 1;
}


.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.linkedin-icon:hover {
    opacity: 1;
    color: #0a66c2;
    transform: scale(1.15);
}

/* ================================================================
   BRUTALIST FORM
   ================================================================ */
.brutalist-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.input-group {
    position: relative;
}

.brutalist-form input,
.brutalist-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.brutalist-form input:focus,
.brutalist-form textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.brutalist-form label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.brutalist-form input:focus~label,
.brutalist-form input:valid~label,
.brutalist-form textarea:focus~label,
.brutalist-form textarea:valid~label {
    top: -1.5rem;
    font-size: 0.7rem;
    color: var(--accent-blue);
}

.req {
    color: var(--accent-orange);
}

/* Submit button feedback states */
.btn-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    transition: background 0.3s ease !important;
}

.btn-error {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    transition: background 0.3s ease !important;
}

.btn[disabled] {
    cursor: not-allowed;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    padding: 10rem 0 5rem;
    background-color: #000000;
    position: relative;
    z-index: 2;
}

.massive-footer-title {
    font-size: 8vw;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 5rem;
    word-break: break-word;
    letter-spacing: -0.03em;
}

.mockup-logo {
    height: 20px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* ================================================================
   RESPONSIVE — TABLET (max 1024px)
   ================================================================ */
@media (max-width: 1024px) {

    .grid-2,
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(2.8rem, 7vw, 5rem);
    }

    .manifesto-quote {
        font-size: clamp(2rem, 5.5vw, 3.5rem);
        margin-bottom: 4rem;
    }

    .massive-headline {
        font-size: clamp(2.4rem, 5vw, 3.5rem);
    }

    .massive-footer-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .section-title {
        font-size: 2.4rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .demo-wrapper {
        padding: 1.5rem;
    }

    .annotation {
        display: none;
    }

    .section-indicator {
        display: none;
    }

    .problem-solution,
    .features,
    .demo-section,
    .pricing,
    .contact-sales {
        padding: 8rem 0 6rem;
    }

    .portal-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .embedded-portal {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mock-table {
        min-width: 520px;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (max 768px)
   ================================================================ */
@media (max-width: 768px) {

    /* Nav */
    .navbar {
        padding: 1.2rem 5vw;
    }

    .contact-btn-label {
        display: none;
    }

    .contact-btn {
        padding: 0.4rem 0.65rem;
        gap: 0;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .menu-btn span {
        display: none;
    }

    .menu-btn {
        padding: 0.5rem 0.75rem;
        gap: 0;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

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

    /* Sections */
    .problem-solution,
    .features,
    .demo-section,
    .pricing,
    .contact-sales {
        padding: 5rem 0 4rem;
    }

    .manifesto-quote {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        margin-bottom: 3rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .grid-2,
    .split-layout {
        gap: 2.5rem;
    }

    /* Features & Pricing — single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .pricing-card {
        padding: 2rem;
    }

    .tier-price {
        font-size: 3rem;
    }

    /* Demo mockup */
    .demo-wrapper {
        padding: 1rem;
        overflow: hidden;
    }

    .mockup-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .mockup-body {
        padding: 1.5rem 1rem;
    }

    .mockup-title {
        font-size: 1.2rem;
    }

    .portal-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mock-input,
    .mock-select {
        width: 100%;
    }

    .mock-table th,
    .mock-table td {
        font-size: 0.78rem;
        padding: 0.7rem 0.5rem;
    }

    .embedded-portal {
        padding: 1rem;
    }

    /* Contact */
    .massive-headline {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .brutalist-form {
        gap: 2rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 1.2rem;
    }

    /* Footer */
    .footer {
        padding: 5rem 0 3rem;
    }

    .massive-footer-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 0.68rem;
    }

    /* Overlay menu */
    .menu-item {
        font-size: clamp(2rem, 11vw, 4rem);
    }

    /* Hide custom cursor on touch */
    .cursor {
        display: none;
    }
}

/* ================================================================
   RESPONSIVE — SMALL PHONES (max 480px)
   ================================================================ */
@media (max-width: 480px) {

    .hero-title {
        font-size: clamp(1.8rem, 11vw, 2.8rem);
    }

    .manifesto-quote {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }

    .massive-headline {
        font-size: clamp(1.6rem, 9vw, 2.4rem);
    }

    .massive-footer-title {
        font-size: clamp(1.8rem, 11vw, 3rem);
    }

    /* Preloader spheres scale down */
    .ps-1 {
        width: 40px;
        height: 40px;
    }

    .ps-2 {
        width: 70px;
        height: 70px;
    }

    .ps-3 {
        width: 35px;
        height: 35px;
    }

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

    .btn {
        padding: 1rem 1.8rem;
        font-size: 0.82rem;
    }

    .mock-table {
        font-size: 0.72rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .tier-price {
        font-size: 2.5rem;
    }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 450px;
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 127, 242, 0.3);
    transition: border-color 0.2s ease;
}

.cookie-content a:hover {
    border-color: var(--accent-blue);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.25rem;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}