/* GLOBAL VARIABLES */
:root {
    --black: #f7f8fc;
    --white: #4458DE;
    --acid: #4458DE;
    --blue: #4458DE;
    --grey: #727887;
    --line: rgba(17, 19, 24, 0.08);

    /* New Service Section Variables mapped to Index colors */
    --q-blue: #4458DE;
    --q-blue-light: rgba(68, 88, 222, 0.08);
    --q-text: #111318;
    --q-muted: #697184;
    --q-border: rgba(17, 19, 24, 0.08);
    --q-bg: #f7f8fc;
}

/* GLOBAL RESET & TYPOGRAPHY */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: Inter, sans-serif;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-tap-highlight-color: transparent;
}

body.loading {
    overflow: hidden;
}

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

::selection {
    background: #4458DE;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f7f8fc;
}

::-webkit-scrollbar-thumb {
    background: #aab2c7;
    border-radius: 10px;
}

.mono {
    font: 500 10px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.statement-big,
.panel-slide,
#finalWord,
#finalOrb {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* NOISE BACKGROUND */
.noise {
    position: fixed;
    inset: -50%;
    z-index: 9999;
    pointer-events: none;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain .18s steps(2) infinite;
}

@keyframes grain {
    0% {
    transform: translate(0, 0)
    }

    25% {
    transform: translate(1%, -1%)
    }

    50% {
    transform: translate(-1%, 1%)
    }

    75% {
    transform: translate(1%, 1%)
    }

    100% {
    transform: translate(-1%, -1%)
    }
}

/* CUSTOM CURSORS */
.cursor,
.cursor2 {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
}

.cursor {
    width: 5px;
    height: 5px;
    background: #4458DE;
}

.cursor2 {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(68, 88, 222, .55);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor2.big {
    width: 62px;
    height: 62px;
    background: rgba(68, 88, 222, .06);
}

/* TOP NAVIGATION BAR */
.topbar {
    position: fixed;
    z-index: 5000;
    left: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    top: clamp(10px, 1.8vw, 18px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: #111318;
    pointer-events: none;
}

.topbar>* {
    pointer-events: auto;
}

.top-logo {
    font: 700 16px 'Space Grotesk';
}

.top-center {
    justify-self: center;
    color: #4458DE;
}

.top-right {
    justify-self: end;
}

.top-link {
    font: 500 10px 'DM Mono';
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .8;
    transition: opacity 0.2s;
}

.top-link:hover {
    opacity: 1;
}

/* SIDE INDEX NAVIGATION */
.side-index {
    position: fixed;
    left: clamp(10px, 1.6vw, 18px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.side-index i {
    width: 3px;
    height: 22px;
    background: rgba(17, 19, 24, .18);
    display: block;
    transition: .4s ease;
}

.side-index i.active {
    background: #4458DE;
    height: 42px;
}

/* --- SECTION 01: HERO PIPELINE --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16vh 5vw 8vh;
    overflow: hidden;
    background: #f7f8fc;
}

.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(17, 19, 24, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 19, 24, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
}

.ambient-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(68, 88, 222, 0.12), transparent 70%);
    top: -10%;
    left: -10%;
}

.ambient-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(68, 88, 222, 0.08), transparent 70%);
    bottom: 10%;
    right: 5%;
}

.hero-heading {
    text-align: center;
    z-index: 10;
    margin-bottom: 70px;
    max-width: 800px;
    position: relative;
}

.hero-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 10px 'DM Mono';
    letter-spacing: 0.15em;
    color: #727887;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hero-heading h1 {
    font: 700 clamp(44px, 7vw, 95px)/1.05 'Space Grotesk';
    letter-spacing: -.05em;
    color: #111318;
    margin: 0 0 20px;
    text-wrap: balance;
}

.hero-heading h1 span {
    color: #4458DE;
    display: block;
}

.hero-heading p {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: #697184;
    max-width: 500px;
    margin: 0 auto;
}

.experience {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

.section-label {
    font: 600 10px 'DM Mono';
    color: #aab2c7;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    text-align: center;
}

.input-card,
.report-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    width: 290px;
}

/* Input Card (Excel) */
.input-area {
    z-index: 2;
}

.input-card {
    display: none;
}

.input-card.active {
    display: block;
}

.excel-icon.csv {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.excel-icon.xml {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.file-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.excel-icon {
    width: 38px;
    height: 38px;
    background: #e8f5e9;
    color: #21a366;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk';
    border: 1px solid #c8e6c9;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    font-family: 'DM Mono', monospace;
    letter-spacing: -0.02em;
}

.file-type {
    font-size: 11px;
    color: #697184;
    margin-top: 2px;
}

.excel-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 12px;
    color: #4d5668;
}

.excel-head {
    font-weight: 600;
    color: #111318;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px;
    font-family: 'Space Grotesk';
}

/* Flow Lines */
.flow-line,
.output-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(68, 88, 222, 0.15) 20%, rgba(68, 88, 222, 0.15) 80%, transparent);
    position: relative;
    margin: 0 30px;
    display: flex;
    align-items: center;
    min-width: 50px;
}

.data-particle,
.output-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4458DE;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(68, 88, 222, 0.6);
    opacity: 0;
    left: 0;
}

/* Center Q Engine */
.q-area {
    position: relative;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    z-index: 5;
}

.q-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(68, 88, 222, 0.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}

.ring-2 {
    width: 130%;
    height: 130%;
    animation: spin 18s linear infinite reverse;
    opacity: 0.6;
}

.ring-3 {
    width: 160%;
    height: 160%;
    border: 1px solid rgba(17, 19, 24, 0.04);
}

@keyframes spin {
    100% {
    transform: translate(-50%, -50%) rotate(360deg);
    }
}

.q-core {
    width: 85px;
    height: 85px;
    background: #ffffff;
    border: 2px solid #4458DE;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(68, 88, 222, 0.15);
}

.q-letter {
    font: 700 32px 'Space Grotesk';
    color: #4458DE;
    line-height: 1;
    margin-top: 4px;
}

.q-status {
    font: 600 8px 'DM Mono';
    color: #21a366;
    margin-top: 6px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.q-status::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #21a366;
    border-radius: 50%;
    display: inline-block;
    animation: terminalBlink 1s infinite;
}

/* Output Reports */
.report-area {
    position: relative;
    width: 290px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.report-card {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 3;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.report-header small {
    font: 600 9px 'DM Mono';
    color: #4458DE;
    letter-spacing: 0.1em;
}

.report-header h3 {
    font: 600 18px 'Space Grotesk';
    margin: 6px 0 0;
    color: #111318;
    letter-spacing: -0.02em;
}

.report-icon {
    font: 500 9px 'DM Mono';
    padding: 5px 10px;
    background: #f7f8fc;
    border-radius: 4px;
    border: 1px solid var(--line);
    color: #697184;
}

/* Report Details */
.customer-table-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--line);
    color: #4d5668;
}

.table-head {
    font-weight: 600;
    color: #111318;
    font-family: 'Space Grotesk';
}

.customer-table-row .ok {
    color: #21a366;
    font-weight: 500;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.customer-table-row .nok {
    color: #f6f9ff;
    font-weight: 500;
    background: #fd0808;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.production-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 110px;
    padding-top: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 15px;
}

.production-column {
    display: grid;
    grid-template-rows: auto 1fr auto; 
    align-items: end;                  
    justify-items: center;
    width: 20%;
    height: 100%;
}

.production-bar {
    grid-row: 2;                    
    width: 100%;
    height: 0;                        
    background: #4458DE;
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
}

.production-value {
    grid-row: 1;                      
    font-size: 11px;
    font-weight: 600;
    color: #111318;
    font-family: 'DM Mono';
    margin-bottom: 6px;               
}

.production-column > span {
    grid-row: 3;
    margin-top: 6px;                   
}

.production-column span {
    font-size: 10px;
    color: #697184;
    margin-top: 4px;
}

.sales-graph {
    height: 110px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--line);
    position: relative;
    padding-top: 10px;
}

.sales-graph svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-area {
    fill: url(#salesGradient);
}

.sales-line {
    fill: none;
    stroke: #4458DE;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.graph-point {
    fill: #ffffff;
    stroke: #4458DE;
    stroke-width: 2.5;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #697184;
    margin-top: 8px;
    font-family: 'DM Mono';
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #697184;
    margin-top: 20px;
}

.report-footer strong {
    font-size: 16px;
    color: #111318;
    font-family: 'Space Grotesk';
    font-weight: 700;
}

.bottom-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.bottom-message span {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.bottom-message strong {
    font: 500 11px 'DM Mono';
    color: #4458DE;
    letter-spacing: 0.1em;
    background: #ffffff;
    padding: 8px 16px;
    border: 1px solid rgba(68, 88, 222, 0.2);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(68, 88, 222, 0.05);
}

@media(max-width: 950px) {
    .experience {
    flex-direction: column;
    gap: 30px;
    }

    .flow-line,
    .output-line {
    width: 2px;
    height: 60px;
    margin: 0;
    background: linear-gradient(180deg, transparent, rgba(68, 88, 222, 0.15) 20%, rgba(68, 88, 222, 0.15) 80%, transparent);
    min-width: auto;
    }

    .data-particle,
    .output-particle {
    top: 0;
    left: -3px;
    }

    .report-area {
    height: auto;
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
    }

    .report-card {
    position: relative;
    top: 0;
    left: auto;
    opacity: 1;
    transform: none;
    display: none;
    width: 100%;
    }

    .report-card.active {
    display: block;
    }

    .bottom-message {
    margin-top: 30px;
    }
}

/* --- SECTION 02: PROCESS (interactive stepper + console) --- */
.process {
    background: #f7f8fc;
    border-top: 1px solid var(--line);
    padding: 14vh 8vw;
}

.process-header {
    max-width: 700px;
    margin: 0 auto 9vh;
    text-align: center;
}

.process-header h2 {
    font: 700 clamp(40px, 6vw, 80px)/1 'Space Grotesk';
    letter-spacing: -.05em;
    color: #111318;
    margin: 10px 0 0;
}

.process-header p {
    color: #697184;
    font-size: 16px;
    line-height: 1.7;
    margin: 20px auto 0;
    max-width: 540px;
}

.process-body {
    max-width: 1180px;
    margin: 0 auto;
}

/* Horizontal stepper */
.flow-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 64px;
}

.flow-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 29px;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.flow-progress {
    position: absolute;
    left: 0;
    top: 29px;
    height: 2px;
    background: #4458DE;
    z-index: 1;
    width: 0;
    transition: width .5s cubic-bezier(.16, 1, .3, 1);
}

.flow-node {
    position: relative;
    z-index: 2;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
    padding: 0 6px;
    font-family: inherit;
}

.flow-node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--line);
    color: #aab2c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s ease;
}

.flow-node-icon svg {
    width: 24px;
    height: 24px;
}

.flow-node-label {
    font: 600 10px 'DM Mono';
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #aab2c7;
    text-align: center;
    transition: .3s ease;
    line-height: 1.6;
}

.flow-node-label b {
    display: block;
    color: #aab2c7;
    font-size: 11px;
    margin-bottom: 2px;
    transition: .3s ease;
}

.flow-node:hover .flow-node-icon {
    border-color: #4458DE;
    color: #4458DE;
}

.flow-node.active .flow-node-icon {
    background: #4458DE;
    border-color: #4458DE;
    color: #fff;
    box-shadow: 0 12px 26px rgba(68, 88, 222, .28);
    transform: scale(1.08);
}

.flow-node.active .flow-node-label {
    color: #111318;
}

.flow-node.active .flow-node-label b {
    color: #4458DE;
}

/* Detail panel */
.process-panel {
    position: relative;
}

.panel-slide {
    display: none;
    grid-template-columns: 1.1fr .85fr;
    gap: 60px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 52px;
    box-shadow: 0 20px 60px rgba(17, 19, 24, .03);
}

.panel-slide.active {
    display: grid;
    animation: panelIn .5s cubic-bezier(.16, 1, .3, 1);
}

@keyframes panelIn {
    from {
    opacity: 0;
    transform: translateY(14px);
    }

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

.panel-tag {
    color: #4458DE;
    display: inline-block;
    margin-bottom: 16px;
}

.panel-text h3 {
    font: 600 clamp(30px, 3.4vw, 46px)/1.05 'Space Grotesk';
    letter-spacing: -.03em;
    color: #111318;
    margin: 0;
}

.panel-text p {
    color: #697184;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 18px;
    max-width: 460px;
}

.panel-chip {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    color: #4d5668;
    border-radius: 50px;
    background: #f7f8fc;
}

.panel-chip svg {
    width: 13px;
    height: 13px;
    color: #4458DE;
}

/* Console visual */
.console-card {
    background: #1e1e1e;
    border: 1px solid #343434;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(17, 19, 24, .16);
}

.console-head {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: #2d2d2d;
    border-bottom: 1px solid #1c1c1c;
}

.console-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.console-body {
    padding: 22px;
    font: 400 12.5px/2 'DM Mono', monospace;
    color: #9a9a9a;
    min-height: 130px;
}

.console-body .cl-blue {
    color: #7c9bff;
}

.console-body .cl-green {
    color: #4ade80;
    display: block;
    margin-top: 4px;
}

.console-body .cl-dim {
    color: #666;
}

@media(max-width: 900px) {
    .panel-slide {
    grid-template-columns: 1fr;
    padding: 34px;
    gap: 30px;
    }
}

@media(max-width: 640px) {
    .flow-node-label {
    display: none;
    }

    .flow-node-icon {
    width: 44px;
    height: 44px;
    }

    .flow-track::before,
    .flow-progress {
    top: 21px;
    }

    .panel-slide {
    padding: 26px;
    border-radius: 18px;
    }
}

/* --- SECTION: AI CHAT (INTEGRATED FROM AI.HTML) --- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4458DE;
    border-radius: 50%;
    flex: none;
}

.text-blue {
    color: #4458DE;
}

.hero-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 9.5%, rgba(17, 19, 24, .04) 9.5%, rgba(17, 19, 24, .04) 9.6%, transparent 9.6%),
    linear-gradient(90deg, transparent 49.95%, rgba(17, 19, 24, .04) 49.95%, rgba(17, 19, 24, .04) 50.05%, transparent 50.05%),
    linear-gradient(90deg, transparent 90.4%, rgba(17, 19, 24, .04) 90.4%, rgba(17, 19, 24, .04) 90.5%, transparent 90.5%);
}

.btn-primary {
    background: #4458DE;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(68, 88, 222, 0.15);
    display: inline-block;
}

.btn-primary:hover {
    background: #111318;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: #111318 !important;
    padding: 14px 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #111318;
    transform: translateY(-2px);
}

.hero2 {
    position: relative;
    min-height: 100vh;
    background: var(--black);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 15vh 7vw 6vh;
    overflow: hidden;
}

.hero2-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.hero2-copy {
    max-width: 480px;
}

.hero2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4d5566;
    padding-bottom: 20px;
}

.hero2-title {
    font: 700 clamp(36px, 3.6vw, 60px)/1.08 'Space Grotesk';
    letter-spacing: -.03em;
    color: #111318;
    margin: 0 0 20px 0;
    text-wrap: balance;
}

.hero2-sub {
    font: 400 clamp(14px, 1.2vw, 16px)/1.65 Inter;
    color: #697184;
    margin: 0 0 34px 0;
}

.hero2-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.hero2-stack {
    color: #aab2c7;
    letter-spacing: .12em;
}

/* Browser window mockup */
.hero2-visual-label {
    color: #aab2c7;
    letter-spacing: .12em;
    margin-bottom: 12px;
    display: block;
}

.hero2-visual {
    position: relative;
}

.browser-window {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(17, 19, 24, 0.14);
    cursor: crosshair;
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #f7f8fc;
    border-bottom: 1px solid var(--line);
}

.bc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dae4;
}

.bc-url {
    margin-left: 8px;
    padding: 4px 10px;
    background: #eef0f7;
    border-radius: 4px;
    color: #8b93a5;
    letter-spacing: .03em;
    font-size: 9px;
}

.browser-body {
    padding: 22px 24px 0;
}

.bw-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bw-page-title {
    font: 600 15px 'Space Grotesk';
    color: #111318;
}

.bw-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #22a35e;
    font-size: 9px;
    letter-spacing: .1em;
}

.bw-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22a35e;
    animation: terminalPulse 1.4s ease-in-out infinite;
}

.bw-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bw-kpi {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 10px;
    background: #fbfbfd;
}

.bw-kpi-num {
    font: 700 21px 'Space Grotesk';
    color: #111318;
    letter-spacing: -.02em;
}

.bw-kpi-num small {
    font-size: 11px;
    font-weight: 500;
    color: #9199a9;
}

.bw-kpi-label {
    margin-top: 4px;
    font: 500 9px 'DM Mono', monospace;
    letter-spacing: .1em;
    color: #9199a9;
}

.bw-ai-tag {
    flex: none;
    background: #4458DE;
    color: #fff;
    font: 600 9px 'Space Grotesk';
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: .04em;
}

.bw-ai-cursor {
    animation: terminalBlink .85s steps(1, end) infinite;
    color: #6f7996;
}

/* AI chat panel */
/* 1. Enhanced AI Chat Container */
.cm-chat {
    margin: 0 -24px -2px;
    padding: 16px 24px 20px;
    background: #fdfdfd; /* Slightly brighter background */
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); /* Added bottom border constraint */
    max-height: 340px; /* Slightly increased height for better readability */
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased breathing room between messages */
    box-shadow: inset 0 8px 16px -12px rgba(17, 19, 24, 0.08); /* Inner shadow for depth */
}

/* 2. Base Bubble Formatting */
.cm-bubble {
    max-width: 92%;
    padding: 12px 16px; /* Slightly more padding */
    font: 400 12px/1.55 Inter, sans-serif;
    color: #333a47;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* 3. User Message Bubble Refinement */
.cm-msg.user .cm-bubble {
    background: #4458DE;
    color: #fff;
    border: 1px solid #3648c0; /* Added distinct darker border for depth */
    border-radius: 12px 12px 2px 12px;
    box-shadow: 0 4px 12px rgba(68, 88, 222, 0.15); /* Accent drop shadow */
}

/* 4. AI Message Bubble Refinement */
.cm-msg.ai .cm-bubble {
    background: #ffffff;
    border: 1px solid #d7dae4; /* Added crisp border */
    border-radius: 12px 12px 12px 2px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(17, 19, 24, 0.04); /* Soft drop shadow */
}

.cm-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 600 11.5px 'Space Grotesk';
    color: #111318;
    margin-bottom: 8px;
}

.cm-head i {
    color: #4458DE;
}

.cm-analyzing {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4458DE;
    font: 500 11.5px 'DM Mono', monospace;
}

.cm-typing {
    display: inline-flex;
    gap: 3px;
}

.cm-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4458DE;
    animation: cmDot 1.3s infinite ease-in-out both;
}

.cm-typing span:nth-child(2) {
    animation-delay: .16s;
}

.cm-typing span:nth-child(3) {
    animation-delay: .32s;
}

.cm-pos,
.cm-neg {
    padding: 9px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 11px;
    line-height: 1.6;
    margin: 8px 0;
}

.cm-pos {
    background: #eefdf3;
    border-left: 3px solid #16a34a;
}

.cm-pos--blue {
    background: #eef0fb;
    border-left: 3px solid #4458DE;
}

.cm-neg {
    background: #fef3f2;
    border-left: 3px solid #dc2626;
}

.cm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 10px;
}

.cm-table th,
.cm-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.cm-table th {
    background: #f1f2f8;
    color: #4d5566;
    font-weight: 600;
}

.cm-chart-wrap {
    position: relative;
    width: 100%;
    height: 130px;
    margin: 10px 0;
}

.cm-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cm-btn {
    font: 500 10px 'DM Mono', monospace;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #4d5566;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cm-sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

@keyframes cmFade {
    to {
    opacity: 1;
    }
}

@keyframes cmDot {

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

    40% {
    transform: scale(1);
    }
}

.bw-alert {
    position: absolute;
    z-index: 3;
    top: -22px;
    right: -18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    width: 200px;
    box-shadow: 0 18px 40px rgba(17, 19, 24, .10);
    animation: alertFloat 5s ease-in-out infinite;
}

.bw-alert-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #ef7d54;
    box-shadow: 0 0 0 4px rgba(239, 125, 84, .14);
}

.bw-alert-title {
    font: 600 10px 'DM Mono', monospace;
    letter-spacing: .08em;
    color: #ef7d54;
    text-transform: uppercase;
}

.bw-alert-text {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: #4d5566;
}

@keyframes alertFloat {

    0%,
    100% {
    transform: translateY(0) rotate(-1.5deg);
    }

    50% {
    transform: translateY(-8px) rotate(1deg);
    }
}

@media(max-width: 980px) {
    .hero2-inner {
    grid-template-columns: 1fr;
    }

    .hero2-copy {
    max-width: 560px;
    }

    .hero2-visual {
    max-width: 560px;
    margin-top: 20px;
    }

    .bw-alert {
    top: -16px;
    right: 6px;
    }
}

@media(max-width: 600px) {
    .hero2 {
    padding: 15vh 6vw 6vh;
    }

    .hero2-title {
    font-size: clamp(32px, 8vw, 44px);
    }

    .bw-kpis {
    gap: 7px;
    }

    .bw-kpi {
    padding: 10px 8px;
    }

    .bw-kpi-num {
    font-size: 17px;
    }

    .browser-body {
    padding: 18px 16px 0;
    }

    .bw-alert {
    width: 168px;
    right: 0;
    top: -14px;
    padding: 10px 12px;
    }

    .cm-chat {
    max-height: 260px;
    margin: 0 -16px -2px;
    padding: 14px 16px 18px;
    }

    .cm-chart-wrap {
    height: 110px;
    }

    .cm-bubble {
    font-size: 11.5px;
    }
}

/* =========================
    SECTION 03: NEW SERVICES SECTION 
========================= */
.services-section {
    padding: 12vh 8vw;
    background: #ffffff;
    border-top: 1px solid var(--line);
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Nav */
.category-wrapper {
    position: sticky;
    top: 20px;
    z-index: 50;
    margin-bottom: 60px;
}

.category-nav {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border: 1px solid var(--q-border);
    box-shadow: 0 15px 45px rgba(20, 40, 80, .05);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 13px;
    padding: 11px 16px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .25s ease;
    cursor: pointer;
}

.category-btn i {
    width: 16px;
    height: 16px;
}

.category-btn:hover {
    color: var(--q-blue);
    background: var(--q-blue-light);
}

.category-btn.active {
    color: #fff;
    background: var(--q-blue);
    box-shadow: 0 7px 20px rgba(68, 88, 222, .25);
}

/* Title & Search */
.services-header-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
}

/* Tablet */
@media (max-width: 900px) {
    .services-header-layout {
        gap: 20px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .services-header-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.services-title-col {
    flex: 1;
    min-width: 300px;
}

.services-search-col {
    width: 350px;
    max-width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box i {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .services-search-col {
        width: 100%;
    }

    .search-box {
        justify-content: center;
    }
}

.services-label {
    color: var(--q-blue);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #111318;
    margin: 0 0 15px 0;
}

.section-description {
    color: var(--q-muted);
    max-width: 600px;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
}

.search-box input {
    width: 100%;
    padding: 14px 14px 14px 50px;
    border-radius: 14px;
    border: 1px solid var(--q-border);
    background: #f7f8fc;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111318;
    outline: none;
    transition: .3s ease;
}

.search-box input:focus {
    border-color: var(--q-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68, 88, 222, .1);
}

/* Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
.service-card {
    height: 100%;
    border: 1px solid var(--q-border);
    border-radius: 16px;
    background: #fff;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: var(--q-blue-light);
    border-radius: 50%;
    top: -90px;
    right: -70px;
    transition: .4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(68, 88, 222, .35);
    box-shadow: 0 25px 60px rgba(17, 19, 24, .06);
}

.service-card:hover::before {
    transform: scale(1.5);
}

.service-number {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #aab2c7;
    letter-spacing: 1px;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f7f8fc;
    color: var(--q-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 24px;
    position: relative;
    transition: .35s ease;
    border: 1px solid var(--q-border);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon {
    background: var(--q-blue);
    color: white;
    border-color: var(--q-blue);
    transform: rotate(-5deg) scale(1.08);
}

.service-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 8px 0;
    color: #111318;
    position: relative;
}

.service-fullform {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--q-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.5;
    position: relative;
}

.service-description {
    color: var(--q-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 0 0;
    position: relative;
    flex-grow: 1;
}

.service-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 6px 12px;
    border-radius: 50px;
    background: #f7f8fc;
    color: #697184;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    align-self: flex-start;
    border: 1px solid var(--q-border);
}

.service-category svg {
    width: 12px;
    height: 12px;
}

.service-item.hidden {
    display: none !important;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.no-results.show {
    display: block;
}

.no-results h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    color: #111318;
    margin: 15px 0 10px;
}

.no-results p {
    color: #697184;
}

@media (max-width: 767px) {
    .category-nav {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
    }

    .category-nav::-webkit-scrollbar {
    display: none;
    }

    .category-btn {
    white-space: nowrap;
    }

    .services-section {
    padding: 8vh 5vw;
    }
}

/* --------NEW CLASS FOR CAT IN SERVICES ---------- */
.systems-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 10px 10px 22px;

    text-decoration: none;
    border: 1px solid rgba(68, 88, 220, 0.35);
    border-radius: 60px;

    background: rgba(68, 88, 220, 0.06);
    backdrop-filter: blur(10px);

    color: #111;
    transition: all 0.35s ease;

    position: relative;
    overflow: hidden;
}

.systems-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(68, 88, 220, 0.10),
        transparent
    );

    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.systems-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.systems-cta-text small {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.55;
}

.systems-cta-text span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.systems-cta-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #4458dc;
    color: white;

    position: relative;
    z-index: 1;

    transition: transform 0.35s ease;
}

.systems-cta-icon svg {
    width: 19px;
    height: 19px;
    transition: transform 0.35s ease;
}

.systems-cta:hover {
    transform: translateY(-3px);
    border-color: #4458dc;
    box-shadow: 0 12px 35px rgba(68, 88, 220, 0.18);
}

.systems-cta:hover::before {
    transform: translateX(100%);
}

.systems-cta:hover .systems-cta-icon {
    transform: rotate(8deg) scale(1.08);
}

.systems-cta:hover .systems-cta-icon svg {
    transform: translate(2px, -2px);
}
/* --- SECTION 04: TEAM SECTION --- */
.team-section {
    padding: 12vh 8vw;
    background: #f7f8fc;
    border-top: 1px solid var(--line);
}

.team-header {
    text-align: center;
    margin-bottom: 8vh;
}

.team-header h2 {
    font: 700 clamp(40px, 6vw, 80px)/1 'Space Grotesk';
    letter-spacing: -.05em;
    color: #111318;
    margin: 10px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(68, 88, 222, 0.08);
    border-color: #4458DE;
}

.team-img-wrapper {
    aspect-ratio: 1;
    background: #eef2f7;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px 20px;
}

.team-name {
    font: 600 18px 'Space Grotesk';
    color: #111318;
    margin: 0 0 6px 0;
}

.team-role {
    font: 500 10px 'DM Mono';
    color: #4458DE;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- SECTION 05: CONTACT SECTION --- */
.contact-detailed {
    background: #ffffff;
    padding: 12vh 8vw;
    border-top: 1px solid var(--line);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font: 700 clamp(40px, 6vw, 80px)/1 'Space Grotesk';
    letter-spacing: -.05em;
    color: #111318;
    margin: 10px 0 15px;
}

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.contact-box {
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    border-color: #4458DE;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(68, 88, 222, 0.08);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(68, 88, 222, 0.08);
    color: #4458DE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.contact-box:hover .contact-icon {
    background: #4458DE;
    color: #ffffff;
}

.contact-box h3 {
    font: 600 18px 'Space Grotesk';
    color: #111318;
    margin: 0 0 12px;
}

.contact-box p.val {
    font: 600 14px 'DM Mono';
    color: #4458DE;
    margin: 0 0 10px;
    word-break: break-all;
}

.contact-box p.desc {
    font: 400 13px 'Inter';
    color: #697184;
    margin: 0;
    line-height: 1.5;
}

.social-section {
    text-align: center;
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.social-section h3 {
    font: 600 22px 'Space Grotesk';
    color: #111318;
    margin: 0 0 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111318;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #4458DE;
    color: #ffffff;
    border-color: #4458DE;
    transform: translateY(-3px);
}

/* --- SECTION 06: FINAL CTA --- */
.final {
    min-height: 100vh;
    position: relative;
    background: #f7f8fc;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.final-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden
}

.final-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(17, 19, 24, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 19, 24, .05) 1px, transparent 1px);
    background-size: 72px 72px;
}

.final-word {
    position: relative;
    z-index: 3;
    text-align: center;
    font: 700 clamp(60px, 12vw, 190px)/.72 'Space Grotesk';
    letter-spacing: -.08em;
    color: #111318;
    text-wrap: balance;
}

.final-word span {
    color: #4458DE;
}

.final-orb {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(68, 88, 222, .15), rgba(68, 88, 222, .05) 33%, transparent 70%);
    filter: blur(15px);
}

.final-sub {
    position: absolute;
    z-index: 4;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #697184;
}

.final-button {
    display: inline-block;
    margin-top: 22px;
    padding: 14px 22px;
    border: 1px solid rgba(17, 19, 24, .15);
    color: #111318;
    background: #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.final-button:hover {
    border-color: #4458DE;
    color: #ffffff;
    background: #4458DE;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--line);
    padding: 30px clamp(22px, 7vw, 100px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #7a8290;
    background: #f7f8fc;
}

footer a {
    color: #4d5668;
    transition: color 0.3s;
}

footer a:hover {
    color: #4458DE;
}

@media(max-width:760px) {
    .topbar {
    grid-template-columns: 1fr auto;
    }

    .top-center,
    .side-index {
    display: none;
    }

    .final-word {
    font-size: clamp(50px, 14vw, 120px);
    }

    footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    }
}

/* --- TERMINAL LOADER OVERLAY --- */
.terminal-loader {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: #f7f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.terminal-window {
    width: min(900px, 100%);
    min-height: 340px;
    background: #1e1e1e;
    border: 1px solid #343434;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    transform: scale(.94);
    opacity: 0;
}

.terminal-titlebar {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    border-bottom: 1px solid #1c1c1c;
    position: relative;
}

.terminal-lights {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 8px;
}

.terminal-lights .light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-lights .red {
    background: #ff5f56
}

.terminal-lights .yellow {
    background: #ffbd2e
}

.terminal-lights .green {
    background: #27c93f
}

.terminal-title {
    color: #929292;
    font: 600 11px 'DM Mono', monospace;
    letter-spacing: .08em;
}

.terminal-body {
    min-height: 300px;
    padding: 24px;
    color: #d7d7d7;
    font: 400 13px/1.7 'DM Mono', monospace;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    min-height: 24px;
}

.terminal-hidden {
    display: none
}

.prompt {
    margin-right: 10px
}

.prompt.green {
    color: #4ade80
}

.prompt.blue {
    color: #60a5fa
}

.terminal-cursor {
    color: #fff;
    margin-left: 5px;
    animation: terminalBlink .85s steps(1, end) infinite;
}

@keyframes terminalBlink {
    50% {
    opacity: 0
    }
}

.server-output {
    margin-top: 20px;
    color: #9a9a9a;
}

.output-green {
    display: block;
    color: #4ade80;
    margin-top: 8px
}

.output-dim {
    color: #707070
}

.output-cyan {
    display: block;
    color: #4458DE;
    margin-top: 8px;
    animation: terminalPulse 1s ease-in-out infinite;
}

@keyframes terminalPulse {
    50% {
    opacity: .45
    }
}

@media(max-width:600px) {
    .terminal-loader {
    padding: 14px
    }

    .terminal-body {
    padding: 20px;
    font-size: 11px;
    }

    .terminal-window {
    min-height: 280px
    }
}

/* --- HERO HORIZONTAL MARQUEE --- */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: transparent;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    display: flex;
    white-space: nowrap;
    z-index: 20;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track span {
    font: 500 11px 'DM Mono', monospace;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.marquee-track span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #4458DE;
    border-radius: 50%;
}

@keyframes marqueeScroll {
    0% {
    transform: translateX(0);
    }

    100% {
    transform: translateX(-50%);
    }
}