/* CSS Variables for BuildIT Brand */
:root {
    --bg-primary: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-blue: #007AFF;
    --accent-violet: #8A2BE2;
    --accent-teal: #00E5FF;
    
    --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 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;
}

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

/* Liquid Glass Pill Header */
.pill-header-wrapper {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.pill-header {
    position: relative;
    height: 56px;
    width: max-content;
    /* Default to Dark Background Theme (e.g. Hero Section) */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: flex-start; /* Logo stays left */
    align-items: center;
    padding: 0 24px;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden; /* prevents layout breakage while animating */
}

/* Base logo styles */
.nav-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-build {
    color: #111111;
    transition: color 0.4s ease;
}

.logo-it {
    color: #ffcc00;
}

.pill-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 140px; /* Aligned immediately right of the logo */
    top: 50%;
    transform: translateY(-50%); 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.pill-nav-links a {
    text-decoration: none;
    color: #111111; 
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-block; /* Crucial for transform to work */
    transition: all 0.15s ease;
}

.pill-nav-links a:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.03);
    color: #000000;
}




/* 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);
}

.primary-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 122, 255, 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-3d-scene {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
    z-index: 10;
}

.ambient-3d-core {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 40%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
    transform: translateZ(-400px);
    animation: slowOrbit 15s linear infinite;
    pointer-events: none;
}

@keyframes slowOrbit {
    0% { transform: translateZ(-400px) rotate(0deg) translateX(50px); }
    100% { transform: translateZ(-400px) rotate(360deg) translateX(50px); }
}

/* 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;
}

/* Subtle overlay to fade bottom edges into UI if necessary */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.6) 100%);
    pointer-events: none;
}

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

/* Typography Reveal Initial States */
.hero-headline {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-headline .text-reveal {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-subheadline {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px auto;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
}

/* Call to Action Container */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

/* Floating Glass Elements Container */
.glass-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    perspective: 1000px;
}

/* Base Glass Card */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 20px;
    padding: 16px;
    transition: transform 0.1s linear;
}

/* 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(0, 122, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 122, 255, 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: 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;
    perspective: 1200px;
    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;
    perspective: 1000px;
}
.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(0, 122, 255, 0.2);
}
.infra-node.origin { top: 50%; left: 10%; transform: translateY(-50%); width: 80px; height: 80px; box-shadow: 0 0 30px rgba(0, 229, 255, 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;
    perspective: 1200px;
}
.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; transform: rotateY(15deg); }
.panel-api { top: 40%; right: 5%; width: 350px; height: 250px; transform: rotateY(-10deg) translateZ(50px); }
.panel-graph { bottom: 5%; left: 20%; width: 400px; height: 180px; transform: rotateX(10deg) translateZ(100px); }
.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(0, 122, 255, 0.08) 0%, transparent 60%); }
.bg-glow-teal { background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, transparent 60%); }
.bg-glow-violet { background: radial-gradient(circle at center, rgba(138, 43, 226, 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(0, 122, 255, 0.4); }
    100% { transform: scale(1.3); box-shadow: 0 0 15px 5px rgba(0, 122, 255, 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(0, 122, 255, 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(0, 122, 255, 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(0, 122, 255, 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;
    perspective: 1000px;
}

.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(0, 122, 255, 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(0, 122, 255, 0.08) 0%, transparent 70%);
}
.showcase-cloud .showcase-atmosphere {
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
}
.showcase-platform .showcase-atmosphere {
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 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: #ffcc00;
}

.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(0, 122, 255, 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: #007AFF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.6), 0 0 80px rgba(0, 122, 255, 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(0, 122, 255, 0.5); }
}

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

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

.grid-draw {
    stroke: rgba(0, 229, 255, 0.2);
    stroke-width: 1;
}

.grid-node {
    fill: rgba(0, 229, 255, 0.6);
}

/* Platform Glass Dashboards */
.showcase-visual-platform {
    display: flex;
    gap: 1.5rem;
    perspective: 800px;
}

.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 { transform: rotateY(-8deg); }
.glass-dash.dash-2 { transform: rotateY(0deg); z-index: 2; }
.glass-dash.dash-3 { transform: rotateY(8deg); }

.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(0, 122, 255, 0.3), rgba(0, 122, 255, 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(0, 122, 255, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(138, 43, 226, 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;
    }
}
