/* =========================================
   QLCP Design System — Dark Consulting Theme
   Inspired by Operon / McKinsey UI
   ========================================= */

:root {
    --bg: #0B0B0B;
    --surface: #121212;
    --surface-2: #1A1A1A;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #C6FF00;
    --accent-dim: rgba(198, 255, 0, 0.12);
    --accent-glow: rgba(198, 255, 0, 0.30);
    --text-1: #FFFFFF;
    --text-2: #A0A0A0;
    --text-3: #5A5A5A;
    --radius: 14px;
    --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

:root.light-mode {
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --surface-2: #E8E8ED;
    --border: rgba(0, 0, 0, 0.08);
    --accent: #92B900;
    /* Adjusted for readability on light */
    --accent-dim: rgba(153, 204, 0, 0.15);
    --accent-glow: rgba(153, 204, 0, 0.25);
    --text-1: #101010;
    --text-2: #424245;
    --text-3: #86868B;
}

/* Base Body updates for theme transition */
body {
    transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

/* ── Reset ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    line-height: 1.7;
}

/* ── Layout helpers ─────────────────────── */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 540px;
    line-height: 1.7;
}

.col-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.col-label--accent {
    color: var(--accent);
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 100px;
    border: 2px solid var(--accent);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary--large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform 0.3s var(--ease);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--text-1);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--text-1);
    background: rgba(255, 255, 255, 0.04);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 100px;
    border: 1px solid rgba(198, 255, 0, 0.35);
    transition: all 0.3s var(--ease);
}

.btn-contact:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* ── Glassmorphism Cards ─────────────────── */
.glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    transition: all 0.35s var(--ease);
}

.glass:hover {
    border-color: rgba(198, 255, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ── Navbar ─────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    z-index: 300;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s;
}

.nav-links a:not(.btn-contact):hover {
    color: var(--text-1);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.3s var(--ease), color 0.2s;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: block;
    width: 18px;
    height: 18px;
}

.light-mode .theme-toggle .sun {
    display: block;
    width: 20px;
    height: 20px;
}

.light-mode .theme-toggle .moon {
    display: none;
}

.light-mode .scroll-hero__sticky {
    background: #FFFFFF;
}

.light-mode .loader {
    background: #FFFFFF;
}

.light-mode .loader__fill {
    background: var(--accent);
}

.light-mode .navbar {
    background: rgba(245, 245, 247, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-mode .glass:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero Arc Decorations ───────────────── */
.hero-arc {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 180px;
    z-index: 200;
    pointer-events: none;
}

.hero-arc--left {
    left: 0;
    border-radius: 0 200px 200px 0;
    border: 3px solid var(--accent);
    border-left: none;
    box-shadow: 4px 0 20px var(--accent-glow);
}

.hero-arc--right {
    right: 0;
    border-radius: 200px 0 0 200px;
    border: 3px solid var(--accent);
    border-right: none;
    box-shadow: -4px 0 20px var(--accent-glow);
}

/* ── Scrollytelling Hero ─────────────────── */
.scroll-hero {
    height: 500vh;
    position: relative;
}

.scroll-hero__sticky {
    position: sticky;
    top: 0;
    /* FULL VIEWPORT WIDTH — no margins at all */
    width: 100vw;
    left: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    /* Theme-aware background */
    transition: background-color 0.6s var(--ease);
}

/* FULL-WIDTH Canvas — covers entire sticky viewport edge-to-edge */
.hero-canvas {
    position: absolute;
    inset: 0;
    /* Right side: occupy 65% of the viewport width, left 35% is text */
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

/* ── Loader ─────────────────────────────── */
.loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s;
}

.loader__track {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader__fill {
    height: 100%;
    width: 0%;
    background: #000;
    box-shadow: none;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.loader__label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #555;
}

/* ── Hero Text Layout (Alternating Wings) ───────── */
.story-beats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.story-beat {
    position: absolute;
    top: 50%;
    width: clamp(280px, 28vw, 460px);
    /* Narrowed to reveal more animation */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.story-beat.pos-left {
    left: 4vw;
    transform: translate(-60px, -50%);
}

.story-beat.pos-right {
    right: 4vw;
    transform: translate(60px, -50%);
}

.story-beat.active {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.story-beat.exiting.pos-left {
    opacity: 0;
    transform: translate(-60px, -60%);
}

.story-beat.exiting.pos-right {
    opacity: 0;
    transform: translate(60px, -60%);
}

.beat-content {
    background: rgba(10, 10, 10, 0.3);
    /* Made more transparent */
    backdrop-filter: blur(6px) saturate(180%);
    /* Reduced blur */
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    padding: 1.5rem 2rem;
    /* Shrunk padding to make boxes smaller */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: relative;
    overflow: visible;
    transition: background 0.6s, border 0.6s;
}

.light-mode .beat-content {
    background: rgba(255, 255, 255, 0.45);
    /* Made more transparent */
    border: 1px solid rgba(0, 0, 0, 0.08);
}


.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: block;
}

.hero-headline {
    font-size: clamp(1.7rem, 3.8vw, 3.1rem);
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.045em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    overflow: hidden;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
}

.hero-sub {
    font-size: clamp(0.85rem, 1.1vw + 0.3rem, 1.05rem);
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Scroll Cue ──────────────────────────── */
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.4s;
}

.scroll-cue__label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}

.scroll-cue__bar {
    width: 1px;
    height: 3rem;
    background: var(--border);
    overflow: hidden;
}

.scroll-cue__fill {
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: fillBounce 1.8s ease-in-out infinite;
}

@keyframes fillBounce {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* ── Trust Strip ────────────────────────── */
.trust-strip {
    padding: 2.5rem 3rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-strip__label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.trust-strip__logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 3rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: -0.02em;
}

.trust-strip__logos .dot {
    color: var(--text-3);
}

/* ── Problems & Solutions ───────────────── */
.problems-section {
    padding: 9rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.problems-header {
    margin-bottom: 5rem;
}

.problems-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(198, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Problem pills */
.problems-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-1);
    font-weight: 500;
    cursor: default;
    transition: border-color 0.3s, background 0.3s;
}

.problem-pill:hover {
    border-color: rgba(255, 75, 75, 0.3);
    background: rgba(255, 75, 75, 0.04);
}

.pill-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Center arc SVG */
.problems-arc {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    filter: drop-shadow(0 0 12px rgba(198, 255, 0, 0.4));
}

.problems-arc svg {
    height: 420px;
    width: auto;
}

/* Solution cards */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.35s var(--ease);
}

.solution-card:hover {
    border-color: rgba(198, 255, 0, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.solution-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
}

.solution-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-1);
    line-height: 1.55;
}

/* ── Services ───────────────────────────── */
.services-section {
    padding: 9rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    margin-top: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-card {
    padding: 3rem;
    background: var(--surface);
    transition: background 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    background: var(--surface-2);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(198, 255, 0, 0.2);
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.025em;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ── Industries ─────────────────────────── */
.industries-section {
    padding: 9rem 0 6rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.industries-section .section-container {
    margin-bottom: 3.5rem;
}

.industries-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 3rem 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.industries-track::-webkit-scrollbar {
    height: 4px;
}

.industries-track::-webkit-scrollbar-track {
    background: transparent;
}

.industries-track::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.industry-card {
    flex-shrink: 0;
    width: 300px;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    scroll-snap-align: start;
    transition: all 0.35s var(--ease);
    cursor: default;
}

.industry-card:hover {
    border-color: rgba(198, 255, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.industry-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1.5rem;
    width: 52px;
    height: 52px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}

.industry-card p {
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ── Process Circular Layout ───────────────────── */
.process-section {
    padding: 10rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.process-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.proc-head-left .section-title {
    margin-bottom: 0;
}

.proc-head-right {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.8;
}

.process-nodes-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Center Graphic ── */
.proc-center-graphic {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.loading-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.proc-center-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-1);
    line-height: 1.4;
    z-index: 2;
}

/* ── Nodes / Cards ── */
.proc-card {
    position: absolute;
    width: 320px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease);
}

.proc-card:hover {
    border-color: rgba(198, 255, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.proc-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border: 1px solid rgba(198, 255, 0, 0.2);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.proc-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.proc-card p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── Specific Positions (2D Circular Layout) ── */
/* 
    Positions conceptually:
    Card 1: Top Center
    Card 2: Mid Left
    Card 4: Mid Right
    Card 3: Bottom Left
    Card 5: Bottom Right
*/
.card-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.card-2 {
    top: 35%;
    left: 0;
    transform: translateY(-50%);
}

.card-4 {
    top: 35%;
    right: 0;
    transform: translateY(-50%);
}

.card-3 {
    bottom: 0;
    left: 10%;
}

.card-5 {
    bottom: 0;
    right: 10%;
}

/* Fix hover states colliding with transforms */
.card-1:hover {
    transform: translateX(-50%) translateY(-5px);
}

.card-2:hover {
    transform: translateY(-50%) translateX(-5px);
}

.card-4:hover {
    transform: translateY(-50%) translateX(5px);
}

.card-3:hover {
    transform: translateY(-5px);
}

.card-5:hover {
    transform: translateY(-5px);
}

/* ── Results ────────────────────────────── */
.results-section {
    padding: 9rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.result-card {
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.35s var(--ease);
    cursor: default;
}

.result-card:hover {
    border-color: rgba(198, 255, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.result-card--accent {
    border-color: rgba(198, 255, 0, 0.2);
}

.result-metric {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-card--accent .result-metric {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.result-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-3);
    margin-bottom: 1.2rem;
    display: block;
}

.result-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── CTA Section ────────────────────────── */
.cta-section {
    padding: 12rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(198, 255, 0, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    max-width: 700px;
    margin-inline: auto;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    margin-bottom: 3rem;
}

/* ── Footer ──────────────────────────────── */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6rem 0 2.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 255, 0, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.06em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-1) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.75;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social a {
    font-size: 0.85rem;
    color: var(--text-2);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-1);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.87rem;
    color: var(--text-2);
    margin-bottom: 0.7rem;
    transition: color 0.2s, transform 0.2s;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--text-1);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-3);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: var(--text-2);
}

/* ── Glass Accent Variant ─────────────────── */
.glass--accent {
    background: linear-gradient(135deg,
            rgba(198, 255, 0, 0.06) 0%,
            rgba(198, 255, 0, 0.01) 100%);
    border-color: rgba(198, 255, 0, 0.18);
}

/* ── Eyebrow with Line ────────────────────── */
.eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.eyebrow-line::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Visual Storytelling / Billboard ─────────────── */
.story-billboard-section {
    padding: 12rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    /* Soft premium glow behind billboard */
    background: radial-gradient(circle at center,
            rgba(198, 255, 0, 0.08),
            transparent 65%);
}

.billboard-wrapper {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Initial state for parallax scroll */
    will-change: transform;
}

.billboard-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: inherit;
    pointer-events: none;
}

.billboard-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-billboard-section:hover .billboard-img,
.billboard-wrapper.visible .billboard-img {
    transform: scale(1);
}

.billboard-text-block {
    max-width: 800px;
    margin: 6rem auto 0;
    text-align: center;
}

.billboard-text-block .eyebrow {
    font-weight: 600;
    letter-spacing: 0.25em;
    margin-bottom: 2.5rem;
}

.billboard-paragraph {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-1);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ── Scroll-reveal utility ─────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────── */
@media (min-width: 1200px) {
    .story-beat.pos-left {
        left: 6vw;
    }

    .story-beat.pos-right {
        right: 5vw;
    }
}

@media (max-width: 1024px) {
    .story-beat {
        width: clamp(280px, 42vw, 420px);
    }

    .hero-arc {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .problems-arc {
        display: none;
    }

    /* Process Circular -> Stack Layout on Tablet */
    .process-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-nodes-wrapper {
        min-height: auto;
        flex-direction: column;
        gap: 2rem;
        margin-top: 4rem;
    }

    .proc-center-graphic {
        position: relative;
        margin-bottom: 2rem;
    }

    .proc-card {
        position: relative;
        width: 100%;
        max-width: 500px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .proc-card:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 11, 11, 0.98);
        padding: 1.5rem 0 2rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    .light-mode .nav-links.active {
        background: rgba(245, 245, 247, 0.98);
    }


    .nav-burger {
        display: flex;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Allow positioned children to be visible on mobile */
    .scroll-hero__sticky {
        overflow: visible;
    }

    /* ── Mobile Scrollytelling: bottom-anchored text over animation ── */
    .story-beat {
        width: 90% !important;
        max-width: none !important;
        top: auto !important;
        bottom: 6vh !important;
        left: 5% !important;
        right: 5% !important;
        transform: translateY(20px) !important;
    }

    .story-beat.active {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .story-beat.exiting,
    .story-beat.exiting.pos-left,
    .story-beat.exiting.pos-right {
        opacity: 0 !important;
        transform: translateY(20px) !important;
    }

    .beat-content {
        text-align: center;
        padding: 1.2rem !important;
        background: rgba(10, 10, 10, 0.75) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        border-radius: 16px;
    }

    .light-mode .beat-content {
        background: rgba(255, 255, 255, 0.88) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    /* Hide hero badges on mobile to save vertical space for animation */
    .hero-badges {
        display: none !important;
    }

    .hero-headline {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }

    .hero-sub {
        font-size: clamp(0.85rem, 3.2vw, 1rem) !important;
        margin: 0 auto 1.5rem;
    }

    .hero-eyebrow {
        font-size: 0.6rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: row;
        gap: 0.8rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        padding: 0.75rem 1.5rem;
        font-size: 0.82rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .scroll-cue {
        display: none;
    }

    .hero-arc {
        display: none;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .industries-track {
        padding: 0.5rem 1.5rem 2rem;
    }
}

/* ── Custom Cursor ──────────────────────────── */
.custom-cursor {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

body:hover .custom-cursor {
    opacity: 1;
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(2.5);
    background: #FFF;
}

/* ── Noise Overlay ─────────────────────────── */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.light-mode .noise-overlay {
    opacity: 0.05;
}

/* ── Scroll Progress Bar ───────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 301;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* ── Hero Text Cinematic Reveals ──────────────── */
.hero-headline {
    position: relative;
    overflow: hidden;
}

.hero-headline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.story-beat.active .hero-headline::after {
    transform: translateX(101%);
}

/* HUD Decorative Corners */
.beat-content::before,
.beat-content::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--accent);
    opacity: 0.5;
}

.beat-content::before {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.beat-content::after {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

.hero-headline,
.hero-sub,
.hero-eyebrow {
    transition: color 0.4s var(--ease);
}