:root {
    /* Colors */
    --bg-color: #030303;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border-subtle: #27272a;

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 5rem;

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-color: #000;
    /* Pitch black */
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* ===== BORDERED LAYOUT ARCHITECTURE ===== */

/* The main frame wrapper defines the visual container boundaries */
/* The main frame wrapper defines the visual container boundaries */
.main-frame {
    max-width: var(--container-width);
    margin: 0 auto;
    margin-top: 80px;
    /* Space for fixed navbar */
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    /* Creates the corner effect */
    position: relative;
    background: rgba(3, 3, 3, 0.4);
    /* TRANSPARENT to show grid */
    /* Enhance readability */
}

/* Grid background - just the subtle inner grid, no vertical lines */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Moved up from -2 to ensure visibility over body bg */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    pointer-events: none;
}

/* Horizontal Section Dividers - simplified, they just span 100% of the frame */
header,
.hero,
.section,
footer {
    position: relative;
}

/* Bottom border for sections inside the frame */
.main-frame .hero::after,
.main-frame .section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
}

/* Header gets its own treatment since it's OUTSIDE the frame */
header {
    border-bottom: none;
}

/* Header bottom border only appears when scrolled, handled by .scrolled class */
header.scrolled {
    border-bottom: 1px solid var(--border-subtle);
}

/* Footer border handling - top border only, bottom handled by frame or none */
footer {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: var(--section-spacing) !important;
    padding-bottom: var(--section-spacing);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
}

/* Mobile: remove frame borders since they'd touch screen edges */
@media (max-width: 1200px) {
    .main-frame {
        border-left: none;
        border-right: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 100%;
    /* Fill the frame exactly */
    margin: 0;
    padding: 0 2rem;
    /* Horizontal padding for text readability */
    box-sizing: border-box;
}

.section {
    padding: var(--section-spacing) 0;
}

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

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: #e5e5e5;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    /* Initially transparent */
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Mobile Navigation and Desktop Default */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 3, 3, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 101;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 500;
    }

    /* Animate Hamburger to X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hide desktop CTA in header if needed, or style it separately */
    header .btn-primary {
        display: none;
        /* We can put it inside the menu if we want */
    }

    /* Mobile Menu CTA (optional: inject into menu via JS or duplicates) */
    .nav-links .mobile-cta {
        display: block;
        margin-top: 1rem;
    }
}

/* Soft Glow Beam Effect - Vercel Power Style */
.hero {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Perfect vertical centering */
    position: relative;
    padding-top: 0;
    /* Removing fixed padding that broke centering */
    padding-bottom: 0;
    z-index: 0;
    overflow: hidden;
    /* Clip the gradient at container edges */
}

.hero-beam {
    position: absolute;
    bottom: 0;
    /* Anchored to bottom of the section */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 400px;
    /* Balanced height */
    /* Ocean/Teal/Aqua Spectrum */
    /*
    background: conic-gradient(from 180deg at 50% 100%,
    /*        #0000 0deg,
    /*        rgba(56, 189, 248, 0.4) 50deg,
            /* Sky Blue */
    /*        rgba(45, 212, 191, 0.4) 100deg,
            /* Teal */
    /*        rgba(34, 197, 94, 0.4) 160deg,
            /* Green */
    /*        rgba(6, 182, 212, 0.4) 210deg,
            /* Cyan */
    /*        rgba(59, 130, 246, 0.4) 260deg,
            /* Blue */
    /*        #0000 310deg); */
    background: conic-gradient(from 180deg at 50% 100%,
            #0000 0deg,
            rgb(250 255 0 / 0%) 50deg,
            rgb(60 255 9 / 46%) 100deg,
            rgb(0 220 255 / 51%) 160deg,
            rgb(11 0 255 / 67%) 229deg,
            rgb(123 0 255 / 75%) 266deg,
            #bbff0000 269deg);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.9;
    }
}


/* Removed prism styles */

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 10;
    padding: 0 1.5rem;
    /* Horizontal padding for mobile */
    /* Removed padding-bottom to allow true centering */
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    /* Responsive font size */
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 0.2em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* Responsive text */
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    /* Reduced margin */
    font-weight: 400;
}

/* Cards (Services, etc.) */
/* Cards (Services) - Boxed Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* No gap - we use borders instead for pixel-perfect control */
    background: var(--bg-color);
    overflow: hidden;
    width: calc(100% + 4rem);
    /* Extend to touch frame borders */
    margin-left: -2rem;
    margin-right: -2rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-color);
    padding: 2.5rem;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    /* Mobile: stack with horizontal dividers */
    border-radius: 0;
    transition: background 0.3s ease;
}

/* Desktop: vertical dividers between cards */
@media (min-width: 768px) {
    .card {
        border-bottom: none;
        border-right: 1px solid var(--border-subtle);
    }

    .card:last-child {
        border-right: none;
        /* No right border on last card */
    }
}

.card:last-child {
    border-bottom: none;
    /* No bottom border on last mobile card */
}

.card:hover {
    background: var(--bg-surface);
    transform: none;
    box-shadow: none;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.25rem;
}

/* Methodology - 4 Column Boxed Grid */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--bg-color);
    overflow: hidden;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background: var(--bg-color);
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

@media (min-width: 768px) {
    .step-card {
        border-bottom: none;
        border-right: 1px solid var(--border-subtle);
    }

    .step-card:last-child {
        border-right: none;
    }
}

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

.step-number {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Pipeline Specific Spacing */
#pipeline {
    padding-bottom: 2rem;
}

#contact {
    padding-top: 2rem;
}

/* Rich Pipeline Section - 3-Column Layout per Phase */
.pipeline-sticky-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
    .pipeline-sticky-container {
        grid-template-columns: 1fr 2fr;
    }
}

.pipeline-sticky-header {
    padding: 2rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    border-right: none;
}

@media (min-width: 992px) {
    .pipeline-sticky-header {
        position: sticky;
        top: 80px;
        height: fit-content;
        border-bottom: none;
        border-right: none;
        /* Removed right border */
        align-self: start;
        padding: 4rem 3rem;
        /* More breathing room */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 400px;
        /* Ensure visual weight */
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pipeline-sticky-header h2 {
    font-size: 3rem;
    /* Much larger */
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.pipeline-sticky-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 400px;
}

.pipeline-phases {
    display: flex;
    flex-direction: column;
}

/* Each phase is a 3-column row on desktop */
.pipeline-phase {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transition: background 0.3s ease;
}

@media (min-width: 768px) {
    .pipeline-phase {
        grid-template-columns: 240px 1fr;
        align-items: stretch;
    }
}

.pipeline-phase:last-child {
    border-bottom: none;
}

.pipeline-phase:hover {
    background: var(--bg-surface);
}

/* Animation square - 240px width, full height */
.pipeline-phase .visual-area {
    width: 100%;
    height: 220px;
    /* Mobile height */
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    border-right: none;
}

@media (min-width: 768px) {
    .pipeline-phase .visual-area {
        width: 240px;
        height: auto;
        /* Let it stretch */
        min-height: 100%;
        /* Stretch to grid track */
        border-bottom: none;
        border-right: none;
        border-left: 1px solid var(--border-subtle);
    }
}

/* Resize SVGs inside visual area */
.pipeline-phase .visual-area svg {
    width: 140px;
    /* Fallback */
    height: 140px;
    min-width: 60%;
    /* Responsive sizing */
    min-height: 60%;
}

.pipeline-phase .visual-area .factory-flow,
.pipeline-phase .visual-area .system-core,
.pipeline-phase .visual-area .matrix-rain,
.pipeline-phase .visual-area .radar-system,
.pipeline-phase .visual-area .deploy-system,
.pipeline-phase .visual-area .live-dashboard {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-area .anim-icon {
    width: 64px;
    height: 64px;
    stroke: #eee;
    stroke-width: 1px;
    position: relative;
    z-index: 2;
}

.content-area {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-area h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #fff;
}

.content-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-area li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.content-area li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* --- Specific Animations --- */

/* 1. Ideation: Factory Flow */
.phase-ideation .visual-area {
    /* Background removed */
}

.factory-flow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-lines {
    width: 100%;
    height: 100%;
    max-width: 250px;
    opacity: 0.8;
}

.core-pulse {
    animation: core-beat 2s infinite ease-in-out;
}

@keyframes core-beat {

    0%,
    100% {
        r: 4;
        opacity: 0.5;
        fill: #555;
    }

    50% {
        r: 8;
        opacity: 1;
        fill: var(--accent-primary);
        box-shadow: 0 0 10px var(--accent-primary);
    }
}

/* 2. Config: System Core */
.phase-config .visual-area {
    /* Background removed */
}

.system-core {
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-rings .ring {
    transform-origin: 50% 50%;
}

.core-rings .r1 {
    animation: spin-right 10s linear infinite;
}

.core-rings .r2 {
    animation: spin-left 8s linear infinite;
}

.core-rings .r3 {
    animation: spin-right 5s linear infinite;
}

.core-center {
    animation: pulse-core 2s ease-in-out infinite alternate;
}

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

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

@keyframes pulse-core {
    0% {
        r: 10;
        opacity: 0.8;
        fill: #1a1a1a;
    }

    100% {
        r: 12;
        opacity: 1;
        fill: #3b82f6;
        box-shadow: 0 0 15px #3b82f6;
    }
}

/* 3. Development: Matrix Rain */
.phase-dev .visual-area {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
    /* Background removed */
}

.matrix-rain {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    opacity: 0.8;
}

.matrix-rain .col {
    display: flex;
    flex-direction: column;
    color: #10b981;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px #10b981;
}

.matrix-rain .col span {
    animation: matrix-fade 1.5s infinite;
    opacity: 0;
}

/* Staggered drops */
.c1 span:nth-child(1) {
    animation-delay: 0.1s;
}

.c1 span:nth-child(2) {
    animation-delay: 0.3s;
}

.c1 span:nth-child(3) {
    animation-delay: 0.5s;
}

.c1 span:nth-child(4) {
    animation-delay: 0.7s;
}

.c2 span:nth-child(1) {
    animation-delay: 0.2s;
}

.c2 span:nth-child(2) {
    animation-delay: 0.4s;
}

.c2 span:nth-child(3) {
    animation-delay: 0.6s;
}

.c2 span:nth-child(4) {
    animation-delay: 0.8s;
}

.c3 span:nth-child(1) {
    animation-delay: 0.5s;
}

.c3 span:nth-child(2) {
    animation-delay: 0.7s;
}

.c3 span:nth-child(3) {
    animation-delay: 0.9s;
}

.c3 span:nth-child(4) {
    animation-delay: 1.1s;
}

.c4 span:nth-child(1) {
    animation-delay: 1.0s;
}

.c4 span:nth-child(2) {
    animation-delay: 1.2s;
}

.c4 span:nth-child(3) {
    animation-delay: 1.4s;
}

.c4 span:nth-child(4) {
    animation-delay: 1.6s;
}

.terminal-cursor {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: #fff;
    font-size: 1.5rem;
    animation: blink 1s step-end infinite;
}

@keyframes matrix-fade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        color: #fff;
    }

    20% {
        opacity: 1;
        transform: translateY(0);
        color: #10b981;
    }

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 4. QA: Radar Scan */
.phase-qa .visual-area {
    /* Background removed */
}

.radar-system {
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-scan {
    overflow: visible;
}

.beam-container {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    /* Ensures rotation anchor is the element center */
    /* Fallback for safer centering if fill-box behaves effectively */
    transform-origin: 50px 50px;
    animation: radar-spin 3s linear infinite;
}

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

/* 5. Deploy: Hub Spoke System */
.phase-deploy .visual-area {
    /* Background removed */
}

.deploy-system {
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deploy-hub {
    overflow: visible;
}

.node circle {
    transition: all 0.3s ease;
}

.packet {
    filter: drop-shadow(0 0 2px #3b82f6);
}

/* 6. Post-Launch: Live Dashboard */
.phase-growth .visual-area {
    position: relative;
    flex-direction: column;
    /* Background removed */
}

.live-dashboard {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.graph-line {
    animation: dash 3s linear infinite;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.g2 {
    opacity: 0.2;
    animation-duration: 5s;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.stat-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.stat-counter .label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.stat-counter .count {
    font-size: 1.1rem;
    font-weight: bold;
    color: #10b981;
    font-family: monospace;
}

/* Checklist Styling */
.checklist-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.check-item span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.95rem;
}

.check-item span::before {
    content: '✔';
    color: #10b981;
    font-weight: bold;
}

/* Mobile Responsive Pipeline */
@media (max-width: 768px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Technologies Section */
/* Technologies Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #000;
    /* No border - main frame provides outer containment */
    width: 100%;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-card {
    background: transparent;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

/* Hover effect */
.tech-card:hover {
    background: var(--bg-surface);
}

/* Remove right borders for last item in row */
.tech-card:nth-child(2n) {
    border-right: none;
}

@media (min-width: 768px) {
    .tech-card:nth-child(2n) {
        border-right: 1px solid var(--border-subtle);
        /* Reset for tablet+ */
    }

    .tech-card:nth-child(4n) {
        border-right: none;
    }
}

/* Remove bottom borders for last items */
.tech-card:nth-last-child(-n+2) {
    border-bottom: none;
}

@media (min-width: 768px) {
    .tech-card:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--border-subtle);
    }
}

/* Icons: White by default, Original Color on Hover */
.tech-card i,
.tech-card svg,
.tech-card img {
    height: 1.75rem;
    width: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Specific SVG sizing */
.tech-card svg {
    stroke: currentColor;
    color: white;
}

/* Hover State - Keep White but Scale */
.tech-card:hover i,
.tech-card:hover svg,
.tech-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* For custom SVGs that are stroked */
.tech-card svg {
    stroke: white;
}

/* Maintain white stroke on hover */
.tech-card:hover svg {
    stroke: white;
}

/* Ensure text also responds */
.tech-card span {
    font-size: 1.1rem;
    /* Larger text */
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.tech-card:hover span {
    color: #fff;
}