/* ============================
   DESIGN TOKENS & RESET
   ============================ */
:root {
    --bg: #050608;
    --bg-2: #080a0f;
    --bg-3: #0c0e15;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(34, 197, 94, 0.3);

    --primary: #22c55e;
    --primary-light: #4ade80;
    --secondary: #16a34a;
    --accent: #22c55e;

    --text: #f1f5f9;
    --text-muted: #8897b0;
    --text-dim: #3d4a5c;

    --gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.04) 100%);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --section-space: 72px;
    --section-space-mobile: 52px;

    --shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 48px rgba(34, 197, 94, 0.12);

    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

/* ============================
   GLOBAL SECTION SPACING
   ============================ */
.metrics,
.clients-section,
.services,
.case-studies,
.terminal-section,
.workflow,
.testimonials,
.trust-section,
.cta-section {
    padding: var(--section-space) 0 !important;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(34, 197, 94, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.04), transparent 25%);
    background-size: 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Reduce motion and GPU load on small screens and low-power devices */
@media (max-width: 1024px), (max-height: 820px) {
    html {
        scroll-behavior: auto;
    }

    #bg-canvas {
        display: none !important;
    }

    .orb {
        filter: blur(60px) !important;
        opacity: 0.35 !important;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* CRITICAL: animate-in elements start at opacity:0 and rely on
       animation to become visible. When animations are disabled on
       mobile those elements stay invisible. Force their final state. */
    .animate-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* reveal-item uses JS + transition; make items start visible
       so they don't remain hidden if IntersectionObserver is slow. */
    .reveal-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.reduced-motion #bg-canvas {
    display: none !important;
}

.reduced-motion .orb {
    filter: blur(60px) !important;
    opacity: 0.35 !important;
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation: none !important;
    transition: none !important;
}

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

video,
iframe,
svg {
    max-width: 100%;
}

.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-wrap .compare-table {
    min-width: 640px;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   TYPOGRAPHY
   ============================ */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-light);
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

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

.section-header .section-tag {
    justify-content: center;
}

.section-header .section-tag::before {
    display: none;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #050608;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-glow);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ============================
   VIDEO LOADER
   ============================ */
.video-loading-host {
    position: relative;
}

.video-loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 8, 0.45);
    backdrop-filter: blur(1px);
    z-index: 4;
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.video-loader-dots {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.video-loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(31, 125, 83, 0.95);
    box-shadow: 0 0 10px rgba(31, 125, 83, 0.35);
    animation: videoLoaderBounce 0.9s ease-in-out infinite;
}

.video-loader-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.video-loader-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

.video-loader-dots span:nth-child(4) {
    animation-delay: 0.42s;
}

.video-ready .video-loader-overlay {
    opacity: 0;
    visibility: hidden;
}

@keyframes videoLoaderBounce {
    0%,
    100% {
        opacity: 0.45;
        transform: translateY(4px) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translateY(-6px) scale(1);
    }
}

/* ============================
   NAV
   ============================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(5, 6, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================
   MOBIUS CANVAS
   ============================ */
#mobius-canvas {
    width: 700px;
    height: 700px;
}

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 60px;
}

.hero-bg {
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(34, 197, 94, 0.06);
    top: -150px;
    left: -150px;
}

.glow-2 {
    width: 320px;
    height: 320px;
    background: rgba(16, 185, 129, 0.05);
    top: 40%;
    right: -80px;
}

.glow-3 {
    width: 240px;
    height: 240px;
    background: rgba(245, 158, 11, 0.04);
    bottom: -80px;
    left: 40%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: clamp(0px, 6vw, 120px);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

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

@keyframes pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    max-width: 760px;
}

.hero-line-big {
    font-size: clamp(1.95rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

@media (min-width: 769px) {
    .hero-line-big {
        white-space: nowrap;
    }
}

.hero-line-mid {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.85vw, 2.2rem);
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    max-width: 760px;
    color: var(--text);
}

.hero-line-small {
    font-size: clamp(0.94rem, 1.4vw, 1.08rem);
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 10px;
    max-width: 700px;
}

.hero-midline {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 30px;
    line-height: 1.65;
}

.hero-sub strong {
    color: var(--text);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat:last-child {
    padding-right: 0;
}

.hero-stat-n {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-stat-l {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
    white-space: nowrap;
}

.hero-stat-div {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.35s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   METRICS
   ============================ */
.metrics {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.metric-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}

.metric-card:first-child::before {
    display: none;
}

.metric-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-suffix {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ============================
   CLIENTS TICKER
   ============================ */
.clients-section {
    padding: 36px 0;
    overflow: hidden;
}

.clients-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.clients-ticker {
    overflow: hidden;
    position: relative;
}

.clients-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 120px;
    z-index: 2;
    background: linear-gradient(to right, var(--bg), transparent);
}

.clients-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 120px;
    z-index: 2;
    background: linear-gradient(to left, var(--bg), transparent);
}

.clients-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: ticker 20s linear infinite;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    align-items: center;
}

.clients-track .dot {
    color: var(--primary);
    font-size: 0.6rem;
}

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

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

/* ============================
   SERVICES
   ============================ */
.services {
    padding: 100px 0;
}

.case-studies .container {
    max-width: 1380px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.service-card.featured {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--primary-light);
}

.service-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.featured-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 50px;
    color: var(--primary-light);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.service-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
}

/* ============================
   TERMINAL
   ============================ */
.terminal-section {
    padding: 0 0 100px;
}

.terminal-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #060810;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(34, 197, 94, 0.05);
    font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #0d1018;
    border-bottom: 1px solid var(--border);
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-red {
    background: #ff5f57;
}

.t-yellow {
    background: #22c55e;
}

.t-green {
    background: #28c841;
}

.t-title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font);
}

.terminal-body {
    padding: 28px 32px;
    font-size: 0.88rem;
    line-height: 1.9;
}

.t-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.t-prompt {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.t-cmd {
    color: #e2e8f0;
}

.t-out {
    color: #4a5568;
}

.t-success {
    color: var(--primary);
}

.t-highlight {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
}

.t-sub {
    color: #8897b0;
    font-size: 0.82rem;
}

.t-gap {
    height: 8px;
}

.t-cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================
   WORKFLOW
   ============================ */
.workflow {
    padding: 100px 0;
    background: var(--bg-2);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.workflow-step {
    padding: 0 40px;
    position: relative;
}

.workflow-step:first-child {
    padding-left: 0;
}

.workflow-step:last-child {
    padding-right: 0;
}

.step-line {
    position: absolute;
    top: 32px;
    right: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.step-line.last {
    display: none;
}

.step-marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s;
}

.step-marker.active {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.step-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 500;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.step-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-card.featured-t {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.t-stars {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.t-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

.t-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.t-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.t-result {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
}

/* ============================
   TRUST / NO BLIND TRUST
   ============================ */
.trust-section {
    padding: 100px 0;
    background: var(--bg-2);
}

.trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trust-text .section-title {
    margin-bottom: 20px;
}

.trust-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.trust-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trust-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.trust-list span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard mock */
.dashboard-mock {
    background: #060810;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow);
}

.dm-header {
    padding: 14px 20px;
    background: #0d1018;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dm-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.dm-body {
    padding: 20px;
}

.dm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.dm-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dm-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.dm-badge.running {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    animation: statusPulse 2s infinite;
}

.dm-badge.idle {
    color: var(--text-dim);
    background: rgba(71, 85, 105, 0.1);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.dm-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.dm-stat-row {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.dm-stat {
    text-align: center;
}

.dm-stat-n {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dm-stat span {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ============================
   CTA
   ============================ */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    text-align: center;
    background: var(--gradient-subtle);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: var(--radius-xl);
    padding: 72px 40px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.cta-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 16px;
    position: relative;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.cta-input:focus {
    border-color: var(--border-glow);
}

.cta-input::placeholder {
    color: var(--text-dim);
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.cta-contact-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.cta-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-light);
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.06);
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.cta-contact-pill:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.cta-contact-pill svg {
    opacity: 0.8;
    flex-shrink: 0;
}

/* Footer social links */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-social svg {
    opacity: 0.75;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.footer-social:hover svg {
    opacity: 1;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-2);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 8px auto 0;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ============================
   RESPONSIVE
   ============================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        margin-left: 0;
    }

    /* Möbius canvas: default size via CSS (inline attrs removed) */
    #mobius-canvas {
        width: 500px !important;
        height: 500px !important;
        opacity: 0.6 !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* case-studies 2-col override already inline - handled below */
}

/* ── Medium screens (≤1200px) ── */
@media (max-width: 1200px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hero-stats-wrapper {
        margin-top: 72px !important;
        max-width: 100% !important;
        padding: 0 12px;
    }
}

/* ── Small Tablet (≤900px) ── */
@media (max-width: 900px) {

    /* Hide Möbius canvas entirely - it overlaps content */
    #mobius-canvas {
        display: none !important;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Case-Studies 2-col override */
    .case-studies-grid {
        grid-template-columns: 1fr !important;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-line {
        display: none;
    }

    .workflow-step {
        padding: 0;
    }

    .trust-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 20px 16px;
        background: rgba(5, 6, 8, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-links a.btn {
        text-align: center;
        margin-top: 8px;
    }

    .hamburger {
        display: flex;
    }

    .cta-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-input {
        border-radius: 50px;
    }

    .cta-inner {
        padding: 48px 24px;
    }

    .hero {
        padding: 90px 0 48px;
    }

    .hero-line-mid br {
        display: none;
    }

    .hero-stats-wrapper {
        margin-top: 56px !important;
        padding: 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        padding: 14px 16px;
    }

    .hero-stat {
        padding: 0 16px;
    }

    .hero-stat-div {
        display: none;
    }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
    }

    .metrics,
    .clients-section,
    .services,
    .case-studies,
    .terminal-section,
    .workflow,
    .testimonials,
    .trust-section,
    .cta-section {
        padding: var(--section-space-mobile) 0 !important;
    }

    .hero-headline {
        font-size: clamp(1.55rem, 6.5vw, 2rem);
    }

    .hero-line-big {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .hero-line-mid {
        font-size: clamp(1.15rem, 5vw, 1.55rem);
        line-height: 1.3;
    }

    .hero-line-small,
    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-sub {
        line-height: 1.6;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 16px;
        width: 100%;
    }

    .hero-stat {
        padding: 0 !important;
        width: 100%;
    }

    .hero-stat-l {
        font-size: 0.8rem;
    }

    .hero-stat-n {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .terminal-body {
        padding: 16px 14px;
        font-size: 0.78rem;
        overflow-x: auto;
    }

    .cta-inner {
        padding: 40px 18px;
        border-radius: var(--radius-lg);
    }

    .cta-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .cta-sub {
        font-size: 0.92rem;
    }

    .cta-form {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-card {
        padding: 24px 12px;
    }

    .metric-number {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-sub {
        font-size: 0.92rem;
    }

    .service-card {
        padding: 24px 18px;
    }

    .workflow-step {
        padding: 0;
    }

    .testimonial-card {
        padding: 24px 18px;
    }

    .dashboard-mock {
        font-size: 0.82rem;
    }

    .footer-inner {
        gap: 16px;
    }

    .footer-links {
        gap: 16px;
        justify-content: center;
    }

    /* CTA contact pills stack to single column */
    .cta-contact-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-contact-pill {
        justify-content: center;
    }

    /* Case studies section - override inline grid */
    .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .case-studies-grid .service-card {
        padding: 28px 20px !important;
    }

    .hero-stats-wrapper {
        margin-top: 42px !important;
    }

    .cta-section a[href^="mailto"] {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 11px 16px !important;
        font-size: 0.9rem !important;
        overflow-wrap: anywhere;
        text-align: center;
    }

    /* Stack all CTA buttons vertically on mobile */
    .cta-btn-group {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .cta-btn-group a,
    .cta-btn-group button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
        font-size: 0.9rem !important;
    }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.45rem;
        letter-spacing: -0.3px;
    }

    .hero-line-big {
        font-size: clamp(1.8rem, 9.6vw, 2.2rem);
    }

    .hero-line-mid {
        font-size: clamp(1.05rem, 5vw, 1.3rem);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card::before {
        display: none;
    }

    .metric-card {
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        padding: 20px 16px;
    }

    .metric-card:last-child {
        border-bottom: none;
    }

    .nav {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .dm-stat-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Scroll reveal */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   MASCOT
   ============================ */
.mascot-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.mascot-svg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.3));
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.mascot-eye {
    animation: statusPulse 2s infinite;
}

.mascot-speech {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    margin-bottom: 12px;
    white-space: nowrap;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-speech.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mascot-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border) transparent transparent transparent;
}

.mascot-speech::before {
    content: '';
    position: absolute;
    top: calc(100% - 1.5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--bg-2) transparent transparent transparent;
    z-index: 1;
}

/* Animations and States for Lifelike Mascot */
.mascot-eyes-group {
    transform-origin: 50px 45px;
    animation: mascot-blink 6s infinite;
}

@keyframes mascot-blink {
    0%, 96%, 98%, 100% { transform: scaleY(1); }
    97%, 99% { transform: scaleY(0.1); }
}

/* --- Emotions --- */
.mascot-angry .mascot-eye-bg {
    /* Angled semi-circle look */
    d: path('M33 46 Q38 43 43 46 A 5 5 0 1 1 33 46');
    fill: #ef4444; /* Red eyes */
}
.mascot-angry #eye-bg-right {
    d: path('M57 46 Q62 43 67 46 A 5 5 0 1 1 57 46');
}
.mascot-angry .mascot-svg {
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6)) !important;
}

.mascot-frustrated .mascot-eye-bg {
    /* Flat top semi-circle */
    d: path('M33 45 L43 45 A 5 5 0 1 1 33 45');
    fill: #f59e0b; /* Orange/Yellow eyes */
}
.mascot-frustrated #eye-bg-right {
    d: path('M57 45 L67 45 A 5 5 0 1 1 57 45');
}
.mascot-frustrated .mascot-svg {
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.4)) !important;
}

.mascot-sad .mascot-eye-bg {
    /* Drooping semi-circle */
    d: path('M33 44 Q38 47 43 44 A 5 5 0 1 0 33 44');
    fill: #3b82f6; /* Blue eyes */
}
.mascot-sad #eye-bg-right {
    d: path('M57 44 Q62 47 67 44 A 5 5 0 1 0 57 44');
}
.mascot-sad .mascot-svg {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3)) !important;
}

.mascot-happy .mascot-eye-bg {
    /* Upward crescent */
    d: path('M33 47 Q38 42 43 47 A 5 5 0 1 0 33 47');
}
.mascot-happy #eye-bg-right {
    d: path('M57 47 Q62 42 67 47 A 5 5 0 1 0 57 47');
}

.mascot-panic .mascot-eye-bg {
    /* Wide eyes */
    d: path('M32 45 A 6 6 0 1 1 44 45 A 6 6 0 1 1 32 45');
    fill: #fcd34d;
}
.mascot-panic #eye-bg-right {
    d: path('M56 45 A 6 6 0 1 1 68 45 A 6 6 0 1 1 56 45');
}

/* Animations that override default SVG transitions if needed */

.mascot-svg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.3));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    pointer-events: auto;
}

.mascot-pupil {
    transition: transform 0.1s ease-out;
}

@keyframes mascot-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translateX(4px) rotate(2deg); }
}

.mascot-shake {
    animation: mascot-shake 0.4s ease-in-out;
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6)) !important; /* Orange glow */
}

@keyframes mascot-explode {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8)) brightness(1);
        opacity: 1;
    }
    20% {
        transform: scale(1.2) rotate(15deg);
        filter: drop-shadow(0 0 30px rgba(239, 68, 68, 1)) brightness(1.5);
    }
    40% {
        transform: scale(0.9) rotate(-15deg);
    }
    100% {
        transform: scale(4) rotate(45deg);
        filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0)) brightness(3);
        opacity: 0;
    }
}

.mascot-explode {
    animation: mascot-explode 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    pointer-events: none;
}
.mascot-explode path[stroke="var(--primary)"] {
    stroke: #ef4444 !important; /* Turn red */
}
.mascot-explode path[fill="var(--bg-2)"] {
    fill: #450a0a !important; /* Dark red body */
}
.mascot-explode .mascot-eye-bg, .mascot-explode rect, .mascot-explode circle {
    fill: #ef4444 !important;
}

/* Mascot Search Popup */
.mascot-search-container {
    position: absolute;
    bottom: 0px;
    right: 60px; /* Appear relative to the right of the mascot */
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 6px 12px;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-search-container.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.mascot-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.85rem;
    font-family: var(--font);
    width: 140px;
}
.mascot-search-input::placeholder {
    color: var(--text-muted);
}
.mascot-search-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding-left: 8px;
    display: flex;
    align-items: center;
    outline: none;
}

@media (max-width: 768px) {
    .mascot-container {
        display: none !important;
    }
}

/* ====================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   These rules target the main causes of overheating
   and lag on phones.
   ==================================================== */
@media (max-width: 768px) {

    /* 1. background-attachment: fixed triggers a full repaint
       on every scroll frame on iOS – switch to scroll. */
    body {
        background-attachment: scroll;
    }

    /* 2. backdrop-filter: blur() forces the GPU to create
       a separate compositing layer and run a shader every
       frame. It is the single biggest heat source on mobile.
       Strip it from every element that uses it. */
    .nav.scrolled,
    .hero-stats-v2,
    .service-card,
    .metric-card,
    .testimonial-card,
    .workflow-step,
    .proj-card,
    .glass-card,
    .trust-card,
    [class*="glass"],
    [style*="backdrop-filter"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 3. Heavy blur filters on decorative glows are expensive.
       Reduce blur radius on mobile. */
    .glow,
    .glow-1,
    .glow-2,
    .glow-3 {
        filter: blur(40px) !important;
        opacity: 0.5 !important;
    }

    /* 4. Disable translateY hover transforms on touch – they
       don't apply but the browser still tracks them. */
    .proj-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .workflow-step:hover,
    .metric-card:hover {
        transform: none !important;
    }

    /* 5. The ticker animation is always running – slow it down
       so the CPU spends fewer cycles on it. */
    .clients-track {
        animation-duration: 35s !important;
    }

    /* 6. Reduce section scroll animation complexity – simpler
       fade without a heavy translateY calc. */
    .reveal-item {
        transition: opacity 0.4s ease !important;
        transform: none !important;
    }

    /* 7. Disable grid overlay pseudo-element background-image
       which repaints on every scroll on mobile. */
    .grid-overlay {
        background-image: none !important;
    }

    /* 8. Hero glow orbs: scale down to reduce paint area. */
    .glow-1 {
        width: 200px !important;
        height: 200px !important;
    }

    .glow-2 {
        width: 140px !important;
        height: 140px !important;
    }

    /* 9. Prevent content within cards repainting when parent
       is scrolled into view by promoting text to its own layer. */
    .section-title,
    .hero-headline-v2 {
        will-change: auto;
    }

    /* 10. Disable box-shadow transitions that trigger compositing. */
    .proj-card,
    .service-card,
    .btn-primary,
    .hero-btn-primary {
        transition: opacity 0.2s ease !important;
        box-shadow: none !important;
    }

    /* 11. Mobius canvas hidden via JS but also via CSS as safety. */
    #mobius-canvas {
        display: none !important;
    }

    /* 12. Particle canvas hidden via JS but also via CSS as safety. */
    #bg-canvas {
        display: none !important;
    }
}

/* ====================================================
   MOBILE LAYOUT FIXES
   Prevent half-blank columns and oversized hero gaps.
   ==================================================== */
@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
        align-items: flex-start;
    }

    .hero-content {
        margin-left: 0;
        width: 100%;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        border-right: none !important;
    }

    .config-layout,
    .stats-section,
    .faq-layout,
    .ba-grid,
    .extra-grid,
    .channel-grid {
        grid-template-columns: 1fr !important;
    }

    .config-summary,
    .faq-sticky {
        position: static !important;
        top: auto !important;
        width: 100%;
    }
}
