/* CSS Variables for BuildIT Brand */
:root {
    --bg-primary: #ffffff;
    --text-primary: #111111;
    --text-secondary: #86868b;
    --accent-blue: #1d1d1f;
    --accent-violet: #86868b;
    --accent-teal: #424245;
    --accent-buildit: #FFD84D;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Base Layout, Spacing & Constants */
    --container-max-width: 1200px;
    --container-blog-width: 800px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Universal Base Spacing Math */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

section.hero-section {
    padding: 80px 0 0 0; /* Exclude hero from rigid global flow */
}

@media (max-width: 768px) {
    section {
        padding: var(--space-lg) 0;
    }
    
    section.hero-section {
        padding: 80px 0 0 0;
    }
}

/* Premium Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Premium Cinematic Gradients --- */
.global-mesh-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.mesh-blob {
    position: absolute;
    filter: blur(140px);
    border-radius: 50%;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(200, 220, 255, 0.4) 0%, rgba(255,255,255,0) 70%);
}

.blob-2 {
    bottom: -10%; right: -20%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255, 235, 190, 0.4) 0%, rgba(255,255,255,0) 70%); /* warm buildit yellow layer */
}

.blob-3 {
    top: 30%; left: 50%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(245, 230, 255, 0.3) 0%, rgba(255,255,255,0) 70%);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 3%) scale(1.05); }
}

/* ============================================
   REDUCED MOTION SUPPORT (Accessibility)
   Respects users with vestibular disorders
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Pause Three.js animations via custom property */
    .global-mesh-bg .mesh-blob {
        animation: none !important;
    }

    /* Instantly show scroll-triggered elements */
    .fade-up,
    .eyebrow, .problem-title, .solution-title, .process-headline,
    .pricing-headline, .section-subtitle, .product-tile, .problem-card,
    .solution-card, .process-step, .price-card, .metric-card, .faq-item,
    .hero-headline, .hero-subheadline, .hero-ctas, .hero-trust,
    .glass-card, .blog-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   FOCUS VISIBILITY (Keyboard Navigation)
   High-contrast focus indicators for all interactive elements
   ============================================ */

/* Skip to Content Link (hidden visually, visible on focus) */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    z-index: 100000;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--accent-buildit);
    outline-offset: 2px;
}

/* Visible focus for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

/* Navigation links - explicit focus */
.nav-links a:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Buttons - enhance existing */
.btn:focus {
    outline: 2px solid var(--accent-buildit);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.3);
}

/* Social icons focus */
.social-icon:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Form controls - keep border color change, add outline */
.form-control:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-bottom-color: var(--accent-blue);
}

/* Footer/nav CTA buttons */
.nav-cta-btn:focus {
    outline: 2px solid var(--accent-buildit);
    outline-offset: 2px;
}

/* Remove outline:none from existing code where focus is needed */
:where(a, button, input, select, textarea, [tabindex]):focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Typography Selection */
::selection {
    background-color: var(--accent-blue);
    color: white;
}

/* --- Apple-Grade Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}
h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}
h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}
.lead-text {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-secondary);
    letter-spacing: -0.015em;
    font-weight: 400;
}

/* Global Sticky Navbar */
.global-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.global-navbar {
    position: relative;
    height: 72px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    pointer-events: auto;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.logo-build {
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.logo-it {
    color: #FFD84D !important;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary); 
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-links a.active-nav-link {
    color: #FFD84D;
    position: relative;
}

.nav-links a.active-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #FFD84D;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #111, #333);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease !important;
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.sm-btn {
    padding: 10px 20px;
    font-size: 14px;
}

.lg-btn {
    padding: 16px 32px;
    font-size: 16px;
}

.primary-btn {
    background-color: var(--text-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: glimmer 5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes glimmer {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; }
}

.primary-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 20px rgba(29, 29, 31, 0.2);
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION 3D & PARALLAX UPGRADES                                        */
/* -------------------------------------------------------------------------- */
/* HERO SECTION BASELINE ROLLBACK */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for navbar */
}

/* Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #ffffff;
}

/* Sub-containers if needed */
.hero-intro {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Main Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

/* ── Hero Split Layout ────────────────────────────────────── */
.hero-split {
    text-align: left;
    max-width: 1280px;
    width: 100%;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text-col {
    flex: 0 0 auto;
    max-width: 560px;
    width: 100%;
}

.hero-visual-col {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

/* Inline BuildIT text inside headline */
.hero-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-weight: 800;
}

.hero-brand .logo-build {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.hero-brand .logo-it {
    color: #FFD84D !important;
    -webkit-text-fill-color: #FFD84D !important;
}

/* Mockup Image Wrapper */
.hero-mockup-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: visible;
}

.hero-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06),
        0 32px 80px rgba(0,0,0,0.10),
        0 0 0 1px rgba(0,0,0,0.04);
    /* Flattened 3D */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero-mockup-wrap:hover .hero-mockup-img {
    /* Flattened 3D */
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 16px 48px rgba(0,0,0,0.10),
        0 48px 100px rgba(0,0,0,0.14),
        0 0 0 1px rgba(0,0,0,0.04);
}

/* Slide-up initial state for GSAP animation */
.hero-mockup-anim {
    opacity: 0;
    transform: translateY(48px);
}

/* Typography Reveal Initial States */
.hero-headline {
    font-size: clamp(40px, 5vw, 68px); /* Kept as per original, assuming the instruction meant to remove hardcoded sizes from subheadline */
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-headline .text-reveal {
    display: block;
    opacity: 1;
}

.hero-subheadline {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-secondary);
    letter-spacing: -0.015em;
    font-weight: 400;
    max-width: 500px;
    margin: 0 0 40px 0;
    opacity: 1;
}

/* hero-split: subheadline should not auto-center */
.hero-split .hero-subheadline {
    margin-left: 0;
    margin-right: 0;
}

/* Call to Action Container */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.hero-split .hero-ctas {
    justify-content: flex-start;
}

/* Floating Glass Elements Container (Removed in DOM) */

/* Base Glass Card */
.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Specific Cards */
.card-ai-node {
    top: 25%;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 100px;
    animation: float-slow 6s ease-in-out infinite;
}

.node-icon {
    font-size: 20px;
}

.node-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.node-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 2s infinite;
}

.card-code-snippet {
    top: 60%;
    right: 8%;
    width: 280px;
    font-family: monospace;
    font-size: 13px;
    color: #333;
    animation: float-slow 8s ease-in-out infinite alternate;
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-code-snippet code {
    white-space: nowrap;
    color: var(--accent-violet);
    font-weight: 500;
}

.card-data-panel {
    top: 70%;
    left: 15%;
    width: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: float-slow 7s ease-in-out infinite reverse;
}

.data-graph {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 L0 30 Q 10 20, 20 25 T 40 15 T 60 20 T 80 5 T 100 15 L 100 40 Z" fill="black"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 L0 30 Q 10 20, 20 25 T 40 15 T 60 20 T 80 5 T 100 15 L 100 40 Z" fill="black"/></svg>');
    mask-size: cover;
    -webkit-mask-size: cover;
    opacity: 0.8;
}

.data-stats {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 29, 31, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(29, 29, 31, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 29, 31, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0; /* Animated in with GSAP */
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-primary) 0%, transparent 100%);
    border-radius: 2px;
    animation: scroll-ping 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    transform-origin: top;
}

@keyframes scroll-ping {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .hero-headline {
        font-size: clamp(40px, 8vw, 64px);
    }
    
    .nav-links {
        display: none; /* In a full app, this would be a mobile menu */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .card-code-snippet {
        right: 2%;
        top: 65%;
        width: 240px;
    }
    
    .card-ai-node {
        top: 20%;
        left: 5%;
    }
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        padding: 0 24px;
        gap: 48px;
        text-align: center;
    }

    .hero-text-col {
        max-width: 100%;
    }

    .hero-split .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-split .hero-ctas {
        justify-content: center;
    }

    .hero-visual-col {
        width: 100%;
    }

    .hero-mockup-img {
        /* Flattened 3D */
    }

    .hero-mockup-wrap:hover .hero-mockup-img {
        transform: none;
    }
}

@media (max-width: 600px) {
    .hero-headline {
        margin-bottom: 20px;
    }
    
    .hero-subheadline {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .glass-card {
        display: none; /* Hide floating elements on mobile for performance/clutter */
    }
}

/* --- Storytelling Section --- */
.story-section {
    position: relative;
    width: 100%;
    background-color: #000; /* Dark theme to contrast hero */
    color: #fff;
}

.story-container {
    position: relative;
    width: 100%;
}

/* Pinned Area */
.story-visuals {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    /* Flattened Perspective */
    transform-style: preserve-3d;
}

.story-visual-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Base Stage Styles */
.visual-stage {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Stage 1: The Idea */
.stage-1-visual {
    opacity: 1; /* First stage visible by default */
}
#story-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* Stage 2: Infrastructure */
.infra-nodes {
    position: relative;
    width: 600px;
    height: 400px;
    /* Flattened Perspective */
}
.infra-node {
    position: absolute;
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(29, 29, 31, 0.2);
}
.infra-node.origin { top: 50%; left: 10%; transform: translateY(-50%); width: 80px; height: 80px; box-shadow: 0 0 30px rgba(66, 66, 69, 0.4); border-color: var(--accent-teal); }
.infra-node.target-1 { top: 10%; right: 10%; }
.infra-node.target-2 { top: 50%; right: 10%; transform: translateY(-50%); }
.infra-node.target-3 { bottom: 10%; right: 10%; }
.infra-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
    transform-origin: left center;
    opacity: 0.5;
}

/* Stage 3: Platform */
.platform-panels {
    position: relative;
    width: 800px;
    height: 500px;
    /* Flattened Perspective */
}
.platform-panels .glass-card {
    display: block; /* Override mobile none for these */
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.panel-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.panel-dev { top: 10%; left: 5%; width: 300px; height: 200px; /* Flattened 3D Y */ }
.panel-api { top: 40%; right: 5%; width: 350px; height: 250px; /* Flattened 3D Y */ }
.panel-graph { bottom: 5%; left: 20%; width: 400px; height: 180px; /* Flattened 3D X */ }
.panel-body.lines { height: 100px; background: repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 11px); }
.panel-body.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100px; }
.panel-body.blocks::before, .panel-body.blocks::after { content:''; background: rgba(255,255,255,0.1); border-radius: 4px; }
.data-graph-large { height: 100px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-teal)); mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 L0 30 Q 10 20, 20 25 T 40 15 T 60 20 T 70 5 T 100 15 L 100 40 Z" fill="black"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 L0 30 Q 10 20, 20 25 T 40 15 T 60 20 T 70 5 T 100 15 L 100 40 Z" fill="black"/></svg>'); mask-size: cover; -webkit-mask-size: cover; opacity: 0.9; }

/* Stage 4: Intelligence */
.intelligence-core {
    position: relative;
    width: 400px; height: 400px;
    display: flex; justify-content: center; align-items: center;
}
.core-node {
    width: 100px; height: 100px;
    background: radial-gradient(circle, #fff, var(--accent-blue));
    border-radius: 50%;
    box-shadow: 0 0 50px var(--accent-blue), 0 0 100px var(--accent-violet);
    z-index: 10;
}
.core-rings { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }
.r-1 { width: 200px; height: 200px; border-top-color: var(--accent-teal); animation: spin 4s linear infinite; }
.r-2 { width: 300px; height: 300px; border-right-color: var(--accent-violet); animation: spin 7s linear infinite reverse; }
.r-3 { width: 400px; height: 400px; border-bottom-color: var(--accent-blue); animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Text Content */
.story-text-container {
    position: relative;
    width: 100%;
    margin-top: -100vh; /* Pulls text over the sticky visuals */
    z-index: 10; /* Above visuals */
    pointer-events: none; /* Let clicks pass through to background */
}

.story-step {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.step-content {
    max-width: 600px;
    color: #fff;
}

.story-heading {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-subtext {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    color: #aaa;
    font-weight: 400;
}

/* Mobile Adjustments for Story */
@media (max-width: 900px) {
    .story-step {
        align-items: flex-end;
        padding-bottom: 20vh;
    }
    .platform-panels {
        transform: scale(0.6);
    }
    .infra-nodes {
        transform: scale(0.6) translateX(20%);
    }
}

/* --- Ecosystem Section (Part 3) --- */
.ecosystem-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 24px;
    background-color: var(--bg-primary); /* Transition back to white */
    color: var(--text-primary);
    overflow: hidden;
}

.ecosystem-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.eco-headline {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    /* Gentle gradient to text */
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-subheadline {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 2x2 Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Product Tiles */
.product-tile {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    padding: 48px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}


.tile-bg-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-blue { background: radial-gradient(circle at center, rgba(29, 29, 31, 0.08) 0%, transparent 60%); }
.bg-glow-teal { background: radial-gradient(circle at center, rgba(66, 66, 69, 0.08) 0%, transparent 60%); }
.bg-glow-violet { background: radial-gradient(circle at center, rgba(134, 134, 139, 0.08) 0%, transparent 60%); }
.bg-glow-dark { background: radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 0%, transparent 60%); }

.product-tile:hover .tile-bg-effect {
    opacity: 1;
}

.tile-content {
    position: relative;
    z-index: 2;
}

.tile-icon {
    font-size: 40px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.product-tile:hover .tile-icon {
    transform: scale(1.1);
}

.tile-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.tile-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Micro Animations Container */
.micro-anim {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.product-tile:hover .micro-anim {
    opacity: 1;
    transform: scale(1.1);
}

/* AI Nodes Animation */
.anim-nodes {
    position: absolute;
}
.m-node {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
}
.m-node.n1 { top: 10px; left: 10px; animation: m-pulse 2s infinite alternate; }
.m-node.n2 { top: 40px; left: 40px; animation: m-pulse 2s infinite alternate 0.5s; }
.m-node.n3 { top: 70px; left: 20px; animation: m-pulse 2s infinite alternate 1s; }
@keyframes m-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 29, 31, 0.4); }
    100% { transform: scale(1.3); box-shadow: 0 0 15px 5px rgba(29, 29, 31, 0.2); }
}

/* Cloud Data Animation */
.anim-data { 
    display: flex; 
    align-items: flex-end; 
    gap: 8px; 
    height: 60px;
    top: 50px;
}
.data-bar {
    width: 12px;
    background: var(--accent-teal);
    border-radius: 6px;
}
.data-bar.b1 { height: 20px; }
.data-bar.b2 { height: 40px; }
.data-bar.b3 { height: 30px; }
.product-tile:hover .data-bar.b1 { animation: bar-dance 1s infinite alternate; }
.product-tile:hover .data-bar.b2 { animation: bar-dance 1s infinite alternate 0.2s; }
.product-tile:hover .data-bar.b3 { animation: bar-dance 1s infinite alternate 0.4s; }
@keyframes bar-dance {
    0% { height: 20px; }
    100% { height: 60px; }
}

/* Systems Core Animation */
.anim-core {
    display: flex;
    justify-content: center;
    align-items: center;
}
.core-pulse {
    width: 30px;
    height: 30px;
    background: var(--accent-violet);
    border-radius: 50%;
    position: relative;
}
.product-tile:hover .core-pulse::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%; right: -100%; bottom: -100%;
    border: 2px solid var(--accent-violet);
    border-radius: 50%;
    animation: core-wave 1.5s infinite;
}
@keyframes core-wave {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Developer Code Animation */
.anim-code {
    display: flex;
    flex-direction: column;
    gap: 6px;
    top: 40px;
    right: 40px;
}
.code-line {
    height: 4px;
    background: var(--text-secondary);
    border-radius: 2px;
    width: 0;
    opacity: 0;
}
.product-tile:hover .code-line {
    opacity: 1;
}
.product-tile:hover .cl1 { animation: typeCode 2s infinite alternate; width: 60px; }
.product-tile:hover .cl2 { animation: typeCode 2s infinite alternate 0.3s; width: 40px; }
.product-tile:hover .cl3 { animation: typeCode 2s infinite alternate 0.6s; width: 80px; }
@keyframes typeCode {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

/* Bottom Transition */
.section-transition {
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.03));
    margin-top: 80px;
}

/* Ecosystem Responsive Adjustments */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-tile {
        min-height: 300px;
        padding: 32px;
    }
}

/* --- Intelligence Section (Part 4) --- */
.intelligence-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 24px;
    background-color: var(--text-primary); /* Dark themed section */
    color: var(--bg-primary); /* Light text */
    overflow: hidden;
    z-index: 10;
}

.intel-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intel-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 5;
}

.intel-headline {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF 0%, #AAA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intel-subheadline {
    font-size: clamp(18px, 1.8vw, 22px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Showcase Area */
.intel-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 60px;
}

/* AI Canvas Container */
.ai-canvas-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    border-radius: 40px;
    background: radial-gradient(circle at center, rgba(29, 29, 31, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    overflow: hidden;
    /* Soft glowing border */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 100px rgba(29, 29, 31, 0.02),
                0 40px 100px -20px rgba(0,0,0,0.5);
}

#intelligence-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Node Hover Labels */
.node-label {
    position: absolute;
    top: 0; 
    left: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.node-label.active {
    opacity: 1;
    transform: translate(-50%, -150%) scale(1);
}

/* Capability Blocks */
.capability-blocks {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.cap-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.cap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cap-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.cap-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.intel-transition {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02));
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ai-canvas-container {
        height: 500px;
    }
    .capability-blocks {
        flex-direction: column;
        align-items: center;
    }
    .cap-card {
        width: 100%;
        max-width: 500px;
    }
}
@media (max-width: 768px) {
    .ai-canvas-container {
        height: 400px;
        border-radius: 24px;
    }
}

/* =========================================
   PART 5: DEVELOPER PLATFORM SECTION
   ========================================= */

.dev-section {
    position: relative;
    padding: 12rem 5% 6rem;
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text);
    overflow: hidden;
}

.dev-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.dev-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.dev-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-subheadline {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Split Layout */
.dev-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

/* Left: Feature Cards */
.dev-features-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.dev-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.df-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.df-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Right: Code Interface */
.dev-code-col {
    position: relative;
}

/* Background subtle glow for the code window */
.dev-code-col::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.code-window {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.window-header {
    background: #1A1A1A;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

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

.dot.close { background: #FF5F56; }
.dot.minimize { background: #FFBD2E; }
.dot.expand { background: #27C93F; }

.window-title {
    color: #888;
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    flex: 1;
    text-align: center;
    margin-right: 48px; /* offset mac-dots to perfectly center title */
}

.window-body {
    padding: 2rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #111111;
    color: #e6e6e6;
    min-height: 180px;
}

/* Syntax Highlighting */
.c-line {
    display: flex;
    position: relative;
    white-space: pre;
    opacity: 0; /* Hidden initially, controlled by GSAP typing effect */
}

/* For GSAP typing effect we want to fade lines in or use a typing animation */
.c-keyword { color: #C678DD; } /* Purple */
.c-string { color: #98C379; }  /* Green */
.c-var { color: #E06C75; }     /* Red */
.c-class { color: #E5C07B; }   /* Yellow */
.c-prop { color: #D19A66; }    /* Orange */
.c-func { color: #61AFEF; }    /* Blue */

.c-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: #528BFF;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-window {
    background: #0A0A0A;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.t-line {
    margin-bottom: 0.3rem;
    opacity: 0;
}

.t-success {
    color: #98C379; /* Green */
}

/* Platform Capabilities Grid */
.dev-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.cap-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px; /* Pill shape */
    padding: 0.8rem 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cap-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.cap-icon {
    font-size: 1.2rem;
}

.cap-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e0e0e0;
}

/* Transition to next info section */
.dev-transition {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    height: 100px;
    width: 100%;
}

/* =========================================
   PART 6: VISION & MISSION SECTION
   ========================================= */

.vision-section {
    position: relative;
    padding: 12rem 5% 8rem;
    background-color: #fafafa; /* Light, calm background */
    color: #111111; /* Deep graphite */
    overflow: hidden;
    z-index: 10; /* Above the dark section transition */
}

/* Subtle background fx */
.vision-background-fx {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(circle at 50% 10%, rgba(200,200,200,0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.vision-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Statement & Vision */
.vision-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 8rem auto;
}

.vision-headline {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111111;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.vision-statement {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #444444; /* softer graphite */
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* Mission Split Layout */
.mission-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

.mission-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #666;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Minimal Abstract Visual */
.mission-visual {
    position: relative;
    height: 400px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.05);
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
    left: 0;
}

.grid-line.horizontal.h1 { top: 33%; }
.grid-line.horizontal.h2 { top: 66%; }

.grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-line.vertical.v1 { left: 33%; }
.grid-line.vertical.v2 { left: 66%; }

.abstract-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #111;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%);
}

.abstract-node.n1 { top: 33%; left: 33%; }
.abstract-node.n2 { top: 66%; left: 66%; }

/* Philosophy Pillars */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.phil-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phil-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.phil-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.phil-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.phil-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* Transition to next info section */
.vision-transition {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
    height: 100px;
    width: 100%;
}

/* =========================================
   PART 7: GLOBAL IMPACT & METRICS SECTION
   ========================================= */

.metrics-section {
    position: relative;
    padding: 12rem 5% 8rem;
    background-color: #030303; /* Deep dark void */
    color: #ffffff;
    overflow: hidden;
    z-index: 10;
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.metrics-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

.metrics-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.metrics-subheadline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #888;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 8rem;
}

.metric-card {
    text-align: center;
    padding: 2rem 1rem;
}

.metric-number-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.metric-number {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 2;
}

.metric-plus {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #007aff; /* tech blue accent */
    margin-left: 5px;
    vertical-align: super;
}

.metric-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(29, 29, 31, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
    opacity: 0;
}

.metric-label {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Global Visualization Map */
.global-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 8rem;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 24px;
    overflow: hidden;
    /* Flattened Perspective */
}

.map-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Optional dotted background for a tech feel */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* Abstract Nodes */
.map-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #007aff;
    border-radius: 50%;
    box-shadow: 0 0 15px #007aff, 0 0 30px #007aff;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Rough visual placement to simulate global hubs */
.n-na { top: 30%; left: 20%; }
.n-sa { top: 70%; left: 30%; }
.n-eu { top: 25%; left: 50%; }
.n-af { top: 60%; left: 55%; }
.n-as { top: 35%; left: 75%; }
.n-oc { top: 75%; left: 85%; }

/* SVG Connections */
.map-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.m-path {
    fill: none;
    stroke: rgba(29, 29, 31, 0.3);
    stroke-width: 1.5;
    stroke-dasharray: 10, 10;
    opacity: 0;
}

/* Trust Signals */
.trust-signals {
    text-align: center;
    margin-bottom: 8rem;
}

.trust-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.logos-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    flex-wrap: wrap;
}

.t-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #444; /* Grayscale */
    letter-spacing: 0.05em;
    cursor: default;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.t-logo:hover {
    color: #fff; /* Full color / Bright text on hover */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.test-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.test-quote {
    font-size: 1.25rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar.av-2 {
    background: linear-gradient(135deg, #111 0%, #333 100%);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.author-role {
    font-size: 0.9rem;
    color: #777;
}

/* Transition to CTA */
.metrics-transition {
    background: linear-gradient(to bottom, transparent, #000);
    height: 120px;
    width: 100%;
}

/* =========================================
   PART 8: FINAL CTA & FOOTER
   ========================================= */

.cta-section {
    position: relative;
    padding: 15rem 5% 10rem;
    background-color: #000;
    color: #fff;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

/* Cinematic Background Glows */
.cta-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, #007aff 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, #ff007a 0%, transparent 70%);
}

.cta-ui-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 0.3;
    z-index: 1;
    mask-image: radial-gradient(circle, transparent 20%, black 80%);
    -webkit-mask-image: radial-gradient(circle, transparent 20%, black 80%);
}

/* AI Particle Field */
.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
    opacity: 0;
}

/* Starting positions for particles */
.p1 { top: 20%; left: 15%; animation: floatParticle 15s infinite ease-in-out; }
.p2 { top: 70%; left: 80%; animation: floatParticle 22s infinite ease-in-out 2s; }
.p3 { top: 40%; left: 60%; animation: floatParticle 18s infinite ease-in-out 4s; }
.p4 { top: 80%; left: 20%; animation: floatParticle 20s infinite ease-in-out 1s; }
.p5 { top: 30%; left: 85%; animation: floatParticle 25s infinite ease-in-out 5s; }
.p6 { top: 60%; left: 10%; animation: floatParticle 19s infinite ease-in-out 3s; }

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    25% { opacity: 0.8; }
    50% { transform: translate(30px, -50px) scale(1.2); opacity: 0.5; }
    75% { opacity: 0.8; }
    100% { transform: translate(-20px, -80px) scale(0.5); opacity: 0; }
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-headline {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subheadline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-cta {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary.btn-cta {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-primary.btn-cta:hover {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    background: #f0f0f0;
}

.btn-secondary.btn-cta {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary.btn-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-trust {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer Section */
.buildit-footer {
    background-color: #050505;
    color: #aaa;
    padding: 6rem 5% 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5rem;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.brand-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #777;
}

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

.link-column h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.link-column a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.crafted-by {
    color: #888;
    margin-left: 10px;
    font-style: italic;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #aaa;
}

.crafted-by {
    color: #888;
    margin-left: 10px;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-logo.inline-logo {
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

.crafted-by strong {
    color: #fff;
    font-weight: 600;
}

.newsletter-col {
    max-width: 320px;
    margin-top: -0.5rem;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #666;
}

.newsletter-btn {
    background: #fff;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    background: #e0e0e0;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    color: #666;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   MEDIA QUERIES (DEVELOPER & VISION SECTIONS)
   ========================================= */
@media (max-width: 1024px) {
    .dev-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-split {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .vision-headline {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dev-section {
        padding: 8rem 5% 4rem;
    }
    
    .dev-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-section {
        padding: 8rem 5% 6rem;
    }
    
    .mission-text {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .metrics-section {
        padding: 8rem 5% 4rem;
    }
    
    .cta-section {
        padding: 10rem 5% 6rem;
    }
    
    .footer-links {
        gap: 3rem;
    }
    
    /* Pill Header Mobile Response */
    .pill-logo {
        position: absolute;
        top: 16px;
        left: 24px; 
    }
    .pill-nav-links {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 70px;
        left: 32px;
        transform: none; /* remove center translations */
        gap: 16px;
        width: calc(100% - 64px);
    }
    .pill-nav-links a {
        font-size: 18px;
        padding: 8px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dev-capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta {
        width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════
   CINEMATIC OVERHAUL — New Visual Systems
   ═══════════════════════════════════════════ */

/* --- Hero 3D Container --- */
#hero-3d-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
#hero-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ──────── SHOWCASE SECTIONS ──────── */
.showcase-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    padding: 6rem 2rem;
}

.showcase-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.showcase-ai .showcase-atmosphere {
    background: radial-gradient(ellipse at center, rgba(29, 29, 31, 0.08) 0%, transparent 70%);
}
.showcase-cloud .showcase-atmosphere {
    background: radial-gradient(ellipse at center, rgba(66, 66, 69, 0.06) 0%, transparent 70%);
}
.showcase-platform .showcase-atmosphere {
    background: radial-gradient(ellipse at center, rgba(134, 134, 139, 0.06) 0%, transparent 70%);
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.showcase-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 1rem;
}

.showcase-accent {
    color: #FFD84D;
}

.showcase-sub {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* --- Showcase Visual --- */
.showcase-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AI Pulse Rings */
.showcase-visual-ai {
    width: 320px;
    height: 320px;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(29, 29, 31, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pulse-ring.r1 { width: 100px; height: 100px; animation: pulseRing 3s ease-in-out infinite; }
.pulse-ring.r2 { width: 160px; height: 160px; animation: pulseRing 3s ease-in-out 0.5s infinite; }
.pulse-ring.r3 { width: 220px; height: 220px; animation: pulseRing 3s ease-in-out 1s infinite; }
.pulse-ring.r4 { width: 280px; height: 280px; animation: pulseRing 3s ease-in-out 1.5s infinite; }

.pulse-core {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d1d1f;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(29, 29, 31, 0.6), 0 0 80px rgba(29, 29, 31, 0.3);
}

@keyframes pulseRing {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.08); border-color: rgba(29, 29, 31, 0.5); }
}

/* Cloud Infrastructure Grid */
.showcase-visual-cloud {
    width: 340px;
    height: 340px;
}

.infra-grid-svg {
    width: 100%;
    height: 100%;
}

.grid-draw {
    stroke: rgba(66, 66, 69, 0.2);
    stroke-width: 1;
}

.grid-node {
    fill: rgba(66, 66, 69, 0.6);
}

/* Platform Glass Dashboards */
.showcase-visual-platform {
    display: flex;
    gap: 1.5rem;
    /* Flattened Perspective */
}

.glass-dash {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 180px;
    transform-origin: bottom center;
}

.glass-dash.dash-1 { /* Flattened 3D Y */ }
.glass-dash.dash-2 { /* Flattened 3D Y */ z-index: 2; }
.glass-dash.dash-3 { /* Flattened 3D Y */ }

.dash-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.dash-bar-row, .dash-line-row {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.dash-bar {
    width: 24px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, rgba(29, 29, 31, 0.3), rgba(29, 29, 31, 0.7));
}
.dash-bar.b1 { height: 50px; }
.dash-bar.b2 { height: 70px; }
.dash-bar.b3 { height: 40px; }
.dash-bar.b4 { height: 60px; }
.dash-bar.b5 { height: 45px; }

.dash-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    width: 100px;
}
.dash-line.short { width: 60px; }
.dash-line-row { flex-direction: column; gap: 8px; }

/* ──────── TYPOGRAPHY MOMENT ──────── */
.type-moment {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    padding: 4rem 2rem;
}

.type-moment-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 204, 0, 0.04) 0%, transparent 60%);
}

.type-statement {
    position: relative;
    z-index: 2;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tw {
    display: inline-block;
}

/* ──────── ENHANCED GLASS DEPTH ──────── */
.product-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}
.product-tile:hover::before {
    opacity: 1;
}

/* ──────── MICRO-MOTION BUTTON POLISH ──────── */
.btn {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0px);
}

/* ──────── SECTION ATMOSPHERE ENHANCEMENTS ──────── */
.ecosystem-section {
    position: relative;
}
.ecosystem-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(29, 29, 31, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(134, 134, 139, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: atmosphereDrift 15s ease-in-out infinite alternate;
}

@keyframes atmosphereDrift {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.vision-section {
    position: relative;
}

/* ──────── SCROLL INDICATOR BREATHING ──────── */
.scroll-indicator {
    animation: breathe 2.5s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ──────── RESPONSIVE SHOWCASE ──────── */
@media (max-width: 768px) {
    .showcase-visual-platform {
        flex-direction: column;
        gap: 1rem;
    }
    .glass-dash.dash-1,
    .glass-dash.dash-2,
    .glass-dash.dash-3 {
        transform: none;
    }
    .showcase-visual-ai {
        width: 240px;
        height: 240px;
    }
    .showcase-visual-cloud {
        width: 260px;
        height: 260px;
    }
}

/* ============================================================ */
/* EXAMPLE WEBSITES SECTION                                      */
/* ============================================================ */

.websites-section {
    position: relative;
    width: 100%;
    padding: 120px 24px 140px;
    background-color: #f8f8fa;
    color: var(--text-primary);
    overflow: hidden;
}

/* Subtle background texture */
.websites-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.6;
}

.websites-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* ---------- Section Header ---------- */
.websites-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px auto;
}

.websites-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.websites-headline {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.websites-accent {
    background: linear-gradient(135deg, #111 0%, var(--accent-buildit) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.websites-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

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

/* The 4th card spans 2 columns on desktop for variety */
.websites-grid .card-wide {
    grid-column: 2 / 4;
}

/* ---------- Card Base ---------- */
.website-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ---------- Hover: Card Lift ---------- */
.website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Image Container & Zoom ---------- */
.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8ec;
}

.card-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.website-card:hover .card-preview-img {
    transform: scale(1.06);
}

/* ---------- Card Label ---------- */
.card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-buildit);
    flex-shrink: 0;
}

/* ============================================================ */
/* RESPONSIVE: Tablet (2 columns)                               */
/* ============================================================ */
@media (max-width: 1024px) {
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .websites-grid .card-wide {
        grid-column: 1 / 3;
    }
}

/* ============================================================ */
/* RESPONSIVE: Mobile (1 column)                                */
/* ============================================================ */
@media (max-width: 640px) {
    .websites-section {
        padding: 80px 16px 100px;
    }

    .websites-header {
        margin-bottom: 48px;
    }

    .websites-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .websites-grid .card-wide {
        grid-column: 1 / 2;
    }

    .card-image-wrap {
        aspect-ratio: 16 / 10;
    }
}


/* ================================================================ */
/* PREMIUM QUALITY UPGRADE — BuildIT                                 */
/* ================================================================ */

/* ── Phase 1: Hero centered restore ─────────────────────────────── */
.hero-content {
    text-align: center !important;
    max-width: 860px !important;
}
.hero-headline {
    font-size: clamp(52px, 8vw, 100px) !important;
    font-weight: 800;
    line-height: 1.04 !important;
    letter-spacing: -0.04em;
}
.hero-subheadline {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 560px !important;
    font-size: clamp(17px, 2vw, 21px) !important;
    margin-bottom: 44px !important;
}
.hero-ctas { justify-content: center !important; }

/* ── Phase 3: Global Typography + Spacing ───────────────────────── */
:root {
    --section-gap: 140px;
}
.websites-eyebrow {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
    margin-bottom: 16px !important;
}
.websites-headline {
    font-size: clamp(36px, 5vw, 60px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.06 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
}
.websites-sub {
    font-size: 17px !important;
    color: var(--text-secondary) !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}
.websites-header {
    text-align: center;
    margin-bottom: 80px !important;
}
.websites-section {
    padding-top: 140px !important;
    padding-bottom: 140px !important;
}

/* ── Phase 2: Editorial Text Cards ──────────────────────────────── */
.card-image-wrap { display: none !important; }

.editorial-card {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 16px;
    padding: 40px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    cursor: pointer;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.editorial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(255,216,77,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.editorial-card:hover {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 0 0 1px rgba(255,216,77,0.15), 0 8px 32px rgba(0,0,0,0.06), 0 24px 64px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}
.editorial-card:hover::before { opacity: 1; }
.editorial-card-inner { flex: 1; }
.editorial-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.editorial-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.editorial-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 360px;
}
.editorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 24px;
}
.editorial-coming-soon {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
.editorial-arrow {
    font-size: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
.editorial-card:hover .editorial-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}
.websites-grid .card-wide { grid-column: 1 / -1; }
.websites-grid .card-wide .editorial-desc { max-width: 560px; }

/* ── Phase 4: Premium Button Upgrades ───────────────────────────── */
.btn { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.primary-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12) !important;
}
.secondary-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.15) !important;
}

/* ── Phase 5: Scroll Reveal ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ================================================================ */
/* LIGHT EDITORIAL FOOTER                                           */
/* ================================================================ */

.buildit-footer {
    background: #ffffff;
    color: #1a1a1a;
    overflow: hidden;
}

/* Layer 1 — Main Content Row */
.footer-main {
    padding: 120px 0 80px;
}
.footer-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.footer-left-col,
.footer-right-cols {
    display: flex;
    flex-direction: column;
}

/* ── Layer 1 Left: Brand & Connect ── */
.footer-headline {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.1;
}

.footer-subtext {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 32px;
    max-width: 380px;
    line-height: 1.6;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    width: fit-content;
    margin-bottom: 48px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #000000;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

/* ── Layer 1 Right: Navigation Columns ── */
.footer-right-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.footer-nav-link {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
    position: relative;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1a1a1a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-link:hover {
    color: #1a1a1a;
}

.footer-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.soon-link {
    color: rgba(0, 0, 0, 0.4) !important;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}

.soon-link::after {
    display: none;
}

.soon-link:hover {
    transform: none !important;
}

.soon-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cca41a;
    background: rgba(255, 216, 77, 0.15);
    border: 1px solid rgba(255, 216, 77, 0.3);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ── Layer 2: Giant Typography Wordmark ── */
.footer-wordmark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 0 48px;
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
    margin-bottom: -4vw; /* Pull text down slightly for editorial crop */
}

.footer-wordmark-build {
    font-size: clamp(80px, 19vw, 280px);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(0, 0, 0, 0.04);
}

.footer-wordmark-it {
    font-size: clamp(80px, 19vw, 280px);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(255, 216, 77, 0.3);
}

/* ── Layer 3: Bottom Footer Bar ── */
.footer-bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 32px 0;
    background: #ffffff;
    position: relative;
    z-index: 2; /* Sits above the giant typography overflow */
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-bottom-brand .logo-build {
    color: #1a1a1a;
}

.footer-bottom-location {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    font-weight: 400;
}

.footer-bottom-legal {
    display: flex;
    gap: 24px;
}

.footer-bottom-legal a {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bottom-legal a:hover {
    color: #1a1a1a;
}

/* ── Steps 7-9: Footer Responsive & Spacing ── */
@media (max-width: 1024px) {
    .footer-main-inner {
        gap: 48px;
        padding: 0 40px;
    }
    .footer-wordmark-build,
    .footer-wordmark-it {
        font-size: clamp(72px, 20vw, 180px);
    }
}

@media (max-width: 900px) {
    .footer-main-inner {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .footer-right-cols {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom-inner {
        flex-wrap: wrap;
        padding: 0 40px;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 80px 0 60px;
    }
    .footer-main-inner {
        padding: 0 24px;
        gap: 60px;
    }
    .footer-headline {
        font-size: 32px;
    }
    .footer-subtext {
        font-size: 16px;
    }
    .footer-right-cols {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-wordmark {
        padding: 0 24px;
        margin-bottom: -6vw; 
    }
    .footer-wordmark-build,
    .footer-wordmark-it {
        font-size: clamp(56px, 22vw, 120px);
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px;
        gap: 20px;
    }
    .footer-bottom-location {
        order: -1;
    }
    .footer-bottom-legal {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* =========================================
   MULTI-PAGE ARCHITECTURE STYLES
   ========================================= */

/* General Page Styles */
.page-hero {
    background: #fff;
    color: #111;
}

.page-content {
    background: #fff;
    color: #111;
}

/* --- Services Page (.service-module) --- */
.services-main {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding-bottom: 8rem;
}

.service-module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
    background: rgba(0,0,0,0.02);
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.service-module.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-module.reverse > * {
    direction: ltr; /* Reset text direction */
}

.service-header-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
}

.service-content {
    padding: 2rem;
    z-index: 2;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.service-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.service-price {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.service-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.service-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-details {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.detail-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
}

.detail-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-col li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-col li::before {
    content: "•";
    color: #007aff;
}

.service-btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Service Visuals / Skeletons */
.service-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Skeleton UI (Service 1) */
.skeleton-ui {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}
.s-header { height: 30px; background: rgba(0,0,0,0.05); border-radius: 8px; width: 100%; }
.s-hero { height: 150px; background: rgba(0,0,0,0.05); border-radius: 12px; width: 100%; }
.s-grid { display: flex; gap: 1rem; height: 100px; }
.s-box { flex: 1; background: rgba(0,0,0,0.05); border-radius: 12px; }

/* Skeleton Dashboard (Service 2) */
.skeleton-dashboard {
    display: flex;
    padding: 1rem;
    gap: 1rem;
}
.sd-sidebar { width: 80px; background: rgba(0,0,0,0.05); border-radius: 12px; height: 100%; }
.sd-main { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.sd-header { height: 40px; background: rgba(0,0,0,0.05); border-radius: 8px; width: 100%; }
.sd-chart { height: 120px; background: rgba(0,0,0,0.05); border-radius: 12px; width: 100%; }
.sd-table { flex: 1; background: rgba(0,0,0,0.05); border-radius: 12px; width: 100%; }

/* Skeleton AI (Service 3) */
.skeleton-ai {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111; /* Dark background for AI */
    border-color: rgba(255,255,255,0.1);
}
.ai-node {
    position: absolute;
    border-radius: 50%;
    background: #007aff;
    box-shadow: 0 0 20px rgba(0,122,255,0.5);
}
.ai-node.central { width: 60px; height: 60px; z-index: 2; }
.ai-node.peripheral { width: 20px; height: 20px; background: #C678DD; box-shadow: 0 0 15px rgba(198,120,221,0.5); }
.ai-node.peripheral.p1 { top: 20%; left: 20%; }
.ai-node.peripheral.p2 { top: 70%; left: 80%; }
.ai-node.peripheral.p3 { top: 80%; left: 20%; }

/* Responsive Multi-page */
@media (max-width: 900px) {
    .service-module, .service-module.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }
    .service-details {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }
    .detail-col {
        align-items: center;
    }
}

/* --- Portfolio Page --- */
.portfolio-main {
    padding-bottom: 8rem;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto 6rem;
}

.portfolio-item {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.portfolio-item:nth-child(even) {
    flex-direction: row-reverse;
}

.portfolio-visual {
    flex: 1;
    height: 400px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-info {
    flex: 1;
}

.port-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.port-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.port-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.port-stack {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.port-stack span {
    color: #333;
}

.port-results {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.port-results .result {
    font-size: 0.95rem;
    color: #666;
}

.port-results .result strong {
    display: block;
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 0.2rem;
}

.portfolio-cta {
    text-align: center;
    padding: 6rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.portfolio-cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Portfolio Skeletons */
.port-skeleton {
    width: 80%;
    height: 80%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.port-saas { display: flex; padding: 1rem; gap: 1rem; }
.saas-nav { width: 40px; background: rgba(0,0,0,0.05); border-radius: 8px; height: 100%; }
.saas-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.saas-card { background: rgba(0,0,0,0.05); border-radius: 8px; }
.saas-card.large { flex: 2; }
.saas-card.small { flex: 1; }

.port-landing { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.land-hero { height: 50%; background: rgba(0,0,0,0.05); border-radius: 8px; }
.land-text { height: 20px; width: 80%; background: rgba(0,0,0,0.05); border-radius: 4px; }
.land-text.short { width: 50%; }

.port-ecommerce { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
.ecom-image { width: 100px; height: 150px; background: rgba(0,0,0,0.05); border-radius: 8px; }
.ecom-details { width: 80%; height: 15px; background: rgba(0,0,0,0.05); border-radius: 4px; }
.ecom-btn { width: 60%; height: 30px; background: #000; border-radius: 20px; }

@media (max-width: 768px) {
    .portfolio-item, .portfolio-item:nth-child(even) {
        flex-direction: column;
    }
    .portfolio-visual {
        width: 100%;
        height: 300px;
    }
}

/* --- Pricing Page --- */
.pricing-main {
    padding-bottom: 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    background: rgba(0,0,0,0.03);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.price-tab {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-badge {
    background: #007aff;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 8rem;
}

.price-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.price-card.highlighted {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.price-card.highlighted:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007aff, #C678DD);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    min-height: 45px;
}
.price-card.highlighted .tier-desc { color: #aaa; }

.tier-price {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
}

.currency { font-size: 1.5rem; font-weight: 600; margin-right: 2px; }
.amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.period { font-size: 1rem; color: #888; margin-left: 5px; }

.amount-text { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex: 1;
}

.tier-features li {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #333;
}
.price-card.highlighted .tier-features li { color: #f0f0f0; }

.tier-features li::before {
    content: "✓";
    color: #007aff;
    font-weight: 700;
}
.price-card.highlighted .tier-features li::before { color: #C678DD; }

.tier-features li.disabled {
    color: #aaa;
    text-decoration: line-through;
}
.tier-features li.disabled::before {
    content: "✕";
    color: #ccc;
}
.price-card.highlighted .tier-features li.disabled { color: #555; }
.price-card.highlighted .tier-features li.disabled::before { color: #444; }

.price-btn {
    width: 100%;
    margin-top: auto;
    text-align: center;
    border-radius: 50px;
    padding: 1.2rem;
    font-weight: 600;
    font-size: 1rem;
}

.pricing-faq {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 6rem;
}

.faq-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

.faq-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .pricing-grid { flex-direction: column; align-items: center; }
    .price-card { max-width: 500px; width: 100%; }
    .price-card.highlighted { transform: scale(1); }
    .price-card.highlighted:hover { transform: translateY(-8px); }
    .faq-grid { grid-template-columns: 1fr; }
}

/* --- Blog Page --- */
.blog-main {
    padding-bottom: 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-post {
    display: flex;
    gap: 4rem;
    background: #111;
    color: #fff;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 6rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    min-height: 500px;
}

.featured-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.bg-glow-secondary { background: radial-gradient(circle at center, rgba(198,120,221,0.2) 0%, #111 70%); }

.blog-abstract-art {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-abstract-art .art-node {
    width: 60px;
    height: 60px;
    background: #C678DD;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(198,120,221,0.6);
    z-index: 2;
}

.blog-abstract-art .art-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(198,120,221,0.3);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow { 100% { transform: rotate(360deg); } }

.featured-content {
    flex: 1;
    padding: 5rem 4rem 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.blog-tag { color: #007aff; }
.blog-date { color: #888; }
.featured-post .blog-tag { color: #C678DD; }
.featured-post .blog-date { color: #888; }

.featured-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.featured-title a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.featured-title a:hover { color: #ccc; }

.featured-excerpt {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

.read-more {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more .arrow { transition: transform 0.3s ease; }
.read-more:hover .arrow { transform: translateX(5px); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-card-visual {
    height: 200px;
    background: #f8f9fa;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bg-glow-blue { background: radial-gradient(circle at center, rgba(0,122,255,0.1) 0%, #f8f9fa 70%); }
.bg-glow-accent { background: radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, #f8f9fa 70%); }
.bg-glow-violet { background: radial-gradient(circle at center, rgba(198,120,221,0.1) 0%, #f8f9fa 70%); }

.blog-card-content {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.blog-title a { color: #111; text-decoration: none; transition: color 0.3s ease; }
.blog-title a:hover { color: #007aff; }

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

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

@media (max-width: 1024px) {
    .featured-post { flex-direction: column; gap: 0; min-height: auto; }
    .featured-visual { height: 300px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .featured-content { padding: 3rem; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* --- About Page --- */
.about-main {
    padding-bottom: 8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    margin-bottom: 8rem;
}

.manifesto-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #111, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.manifesto-separator {
    width: 60px;
    height: 4px;
    background: #000;
    margin: 0 auto;
    border-radius: 2px;
}

.about-section {
    display: flex;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-text-col {
    flex: 1;
}

.about-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text-col p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vision Graphic (3 Layers) */
.vision-graphic {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Flattened Perspective */
}

.vg-layer {
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    color: #888;
    /* Flattened 3D X */
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.vg-layer.bottom { width: 80%; margin: 0 auto; }
.vg-layer.middle { width: 90%; margin: 0 auto; z-index: 2; }
.vg-layer.top { width: 100%; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.vg-layer.highlight {
    background: #111;
    color: #fff;
    border-color: #333;
}

.vision-graphic:hover .vg-layer {
    /* Flattened 3D X */
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.stat-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #111;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .about-section, .about-section.reverse { flex-direction: column; gap: 4rem; text-align: center; }
}

/* --- Contact Page --- */
.contact-main {
    padding-bottom: 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #111;
    transition: border-color 0.3s ease;
}

/* Removed conflicting .form-control:focus outline:none for accessibility (moved to accessibility block) */

.form-control::placeholder {
    color: transparent; /* hidden to use floating label */
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1.1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Logic */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    font-size: 0.85rem;
    color: #007aff;
    font-weight: 600;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.contact-submit .btn-primary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.contact-info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 4rem;
}

.contact-info-item {
    text-align: center;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.contact-info-item p {
    color: #666;
    font-size: 1rem;
}

.contact-info-item a {
    color: #007aff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-form { padding: 2rem; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .contact-info-blocks { grid-template-columns: 1fr; gap: 3rem; }
}

/* --- Insight Section (Home) --- */
.insight-section {
    padding: 10rem 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

.insight-container {
    max-width: 900px;
    padding: 0 5%;
    text-align: center;
}

.insight-quote {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 3rem;
    position: relative;
}

.insight-quote::before {
    content: "“";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: rgba(0,0,0,0.05);
    font-family: serif;
}

.insight-founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.founder-info strong {
    display: block;
    font-size: 1.1rem;
    color: #111;
}

.founder-info span {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Typography Additions (Commit 6) --- */
.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #007aff;
    margin-bottom: 1rem;
}
.problem-section .eyebrow, .solution-section .eyebrow, .process-section .eyebrow {
    color: #FFD84D; /* BuildIT yellow */
}

/* --- Standard Sections --- */
.problem-section, .solution-section, .process-section, .pricing-section {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow-x: hidden;
}

.problem-container, .solution-container, .process-container, .pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.problem-title, .solution-title, .process-headline, .pricing-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Specifics for dark theme sections */
.problem-section, .solution-section, .process-section {
    background-color: var(--accent-blue);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.problem-section .problem-title, .solution-section .solution-title, .process-section .process-headline {
    color: #fff;
}

.problem-grid, .solution-grid, .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.problem-card, .solution-card, .process-step {
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.problem-icon, .solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.problem-card p, .solution-card p {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.process-step p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* --- Editorial Blog System --- */
.blog-filters .filter-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    /* JS GSAP tracks transform, CSS handles box-shadow */
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.blog-card.lead-card {
    grid-column: span 2;
    flex-direction: row;
}

.blog-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.lead-card .blog-image {
    width: 50%;
    height: 100%;
    min-height: 340px;
}

.blog-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.lead-card .blog-content {
    width: 50%;
}

.blog-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.lead-card .blog-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

/* Blog Post Specifics */
.blog-article p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blog-article h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.blog-article blockquote {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-buildit);
    padding-left: 2rem;
    margin: 3rem 0;
    line-height: 1.4;
}

/* --- Basic Animations (Commit 5) --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Phase 1: Stabilization & Mobile Overrides (Commit 5) --- */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card.lead-card {
        grid-column: span 1;
        flex-direction: column;
    }
    .lead-card .blog-image, .lead-card .blog-content {
        width: 100%;
    }
    .lead-card .blog-image {
        min-height: 240px;
    }
}
@media (max-width: 768px) {
    /* Force column layout for hero and splits */
    .hero-split, .story-split, .hero-intro {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .hero-text-col, .hero-visual-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force all grid columns to stack */
    .problem-grid, .solution-grid, .process-steps, .pricing-grid, 
    .features-grid, .insight-grid, .phil-grid, .story-grid,
    .websites-grid {
        grid-template-columns: 1fr !important;
    }

    /* Standardize section padding on mobile */
    section {
        padding: 4rem 1.5rem !important;
    }

    /* Ensure titles clamp securely without forced wraps */
    .hero-headline, .problem-title, .solution-title, .process-headline, .pricing-headline, .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }
}
