/*
  Teqkila B2B Premium Scroll-Story Homepage Stylesheet
  Theme: Liquid Glass & Cinematic Mesh
  Fonts: Space Grotesk (Titles) / Inter (Body)
  Primary: #FFFFFF, Accent: #E11D48 (Crimson Red)
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Theme Colors */
    --color-bg: #020617;
    --color-bg-alt: #090d16;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;
    --color-accent: #e11d48;
    --color-accent-glow: rgba(225, 29, 72, 0.18);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-glass-bg: rgba(255, 255, 255, 0.02);
    
    /* Layout Constants */
    --header-height: 80px;
    --space-unit: 1rem;
}

/* --- RESET & BASIC DEFAULTS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.has-custom-cursor {
    cursor: none; /* Hide default cursor for custom cursor */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

/* --- FILM GRAIN & PERSPECTIVE GRID --- */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
    background: 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");
}

.grid-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg) translateY(-200px);
    transform-origin: top;
    opacity: 0.25;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

/* --- CUSTOM GLASS LENS CURSOR --- */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.custom-cursor-circle {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(225, 29, 72, 0.45);
    background-color: rgba(225, 29, 72, 0.01);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Cursor states on hover */
body.cursor-hover .custom-cursor-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(225, 29, 72, 0.08);
    border-color: var(--color-accent);
}

/* --- GENERAL LAYOUTS & UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Premium Liquid Glass Cards */
.glass-panel {
    background: var(--color-glass-bg);
    backdrop-filter: blur(14px) saturate(190%);
    -webkit-backdrop-filter: blur(14px) saturate(190%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Ambient Radial Glows */
.ambient-glow-red {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* Shimmer Button */
.shimmer-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent) 0%, #be123c 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 24px rgba(225, 29, 72, 0.35);
}

.shimmer-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(225, 29, 72, 0.55);
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% { left: -60%; }
    100% { left: 140%; }
}

/* --- HEADER / NAVIGATION (FLOATING PILL REFRESH) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem 0;
}

.header-container {
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.5rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90% !important;
    max-width: 1100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.header-container:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* --- SCENE PIN CONTAINER & SCENE SECTIONS --- */
.scenes-container {
    position: relative;
    width: 100%;
}

.scene-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 20;
    padding: 80px 0;
}

/* --- SCENE 1: HERO --- */
#scene-hero {
    background: #000000;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 20px;
}

#hero-shader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let pointer events pass to canvas */
}

/* Trust Badge */
.trust-badge-container {
    margin-bottom: 1.25rem;
    z-index: 10;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(249, 115, 22, 0.1); /* orange-500/10 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 186, 116, 0.3); /* orange-300/30 */
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #ffedd5; /* orange-100 */
}

.trust-badge-icons {
    display: flex;
    gap: 0.25rem;
    color: #fde047; /* yellow-300 */
}

/* Gradient Titles */
.hero-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-title-1 {
    font-size: clamp(2.2rem, 5.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-title-1 .word {
    background: linear-gradient(to right, #fdba74, #facc15, #fcd34d); /* orange-300 via yellow-400 to amber-300 */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
}

.hero-title-2 {
    font-size: clamp(2.2rem, 5.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-title-2 .word {
    background: linear-gradient(to right, #fde047, #fb923c, #f87171); /* yellow-300 via orange-400 to red-400 */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
}

.hero-sub-animated {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: rgba(255, 237, 213, 0.9); /* orange-100/90 */
    max-width: 768px;
    margin: 0.75rem auto 1.5rem auto;
    line-height: 1.6;
    font-weight: 300;
    pointer-events: auto;
}

.cta-group-animated {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: auto;
}

.hero-content .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
}

/* Custom styles for Hero buttons matching the React component */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    background: linear-gradient(to right, #f97316, #eab308); /* orange-500 to yellow-500 */
    color: #000000 !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.hero-btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #ea580c, #ca8a04); /* orange-600 to yellow-600 */
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    background: rgba(249, 115, 22, 0.1); /* orange-500/10 */
    border: 1px solid rgba(253, 186, 116, 0.3); /* orange-300/30 */
    color: #ffedd5 !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(253, 186, 116, 0.5);
    transform: scale(1.05);
}

/* Keyframes */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SCENE 2: REVENUE JOURNEY (FLOW ART STORY SCROLL) --- */
.flow-art-container-main {
    position: relative;
    width: 100%;
    background: #020617;
    overflow: hidden;
}

.flow-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flow-art-container {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 3vh 4vw;
    will-change: transform;
    box-sizing: border-box;
}

.flow-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    margin: 0;
}

.flow-divider {
    margin: 1.5vh 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    width: 100%;
}

.flow-heading-wrap {
    display: block;
    margin: 0.75rem 0;
}

.flow-title {
    font-size: clamp(2rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-family: var(--font-heading);
    margin: 0;
}

.flow-desc {
    margin-top: auto;
    max-width: 55ch;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
    font-family: var(--font-body);
}

.flow-example-label {
    color: #fdba74; /* Soft orange highlight for examples */
    font-weight: 700;
}

@media (max-width: 768px) {
    .flow-art-container {
        padding: 4vh 5vw !important;
        gap: 1rem;
        height: 100vh !important;
        height: 100dvh !important;
    }
    .flow-section {
        height: 100vh !important;
        height: 100dvh !important;
    }
    .flow-title {
        font-size: 1.8rem !important;
        line-height: 1.05 !important;
    }
    .flow-desc {
        font-size: 0.95rem !important;
        margin-top: 1rem !important;
    }
}/* --- SCENE 3: WHAT A PERFECT WEBSITE LOOKS LIKE (SPLIT SCREEN ADVENTURE) --- */
.perfect-site-main {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.perfect-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    visibility: hidden;
}

.perfect-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    will-change: transform;
}

.perfect-left {
    left: 0;
    transform-origin: bottom left;
}

.perfect-right {
    left: 50%;
    transform-origin: top right;
}

.perfect-content {
    max-width: 80%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.perfect-step {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
}

.perfect-title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin: 0;
}

.perfect-desc {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    margin: 0;
}

@media (max-width: 768px) {
    .perfect-site-main {
        height: auto;
        overflow: visible;
    }
    
    .perfect-slide {
        position: relative;
        height: auto;
        flex-direction: column;
        visibility: visible !important;
        display: flex !important;
    }
    
    .perfect-panel {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        height: 40vh !important;
        transform: none !important;
    }
    
    .perfect-left, .perfect-right {
        left: 0 !important;
        transform: none !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .perfect-panel[style*="background-color"] {
        height: auto !important;
        padding: 4rem 1.5rem !important;
    }
    
    .perfect-content {
        max-width: 100%;
        padding: 0;
    }
    
    .perfect-title {
        font-size: 2rem;
    }
}

/* --- SCENE 4: OUR SERVICES (DOUBLE IMAGE STACK GRID) --- */
#scene-our-services {
    background-color: var(--color-bg-alt);
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 120px 0;
}

.services-double-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
}

.services-double-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 360px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.services-double-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
}

.services-double-img-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    overflow: visible;
}

.services-img-back, .services-img-front {
    position: absolute;
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.services-img-back {
    transform: rotate(-6deg) translateX(-10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1;
}

.services-img-front {
    transform: rotate(3deg) translateX(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Hover effects for images */
.services-double-card:hover .services-img-back {
    transform: rotate(-10deg) translateX(-15px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.services-double-card:hover .services-img-front {
    transform: rotate(5deg) translateX(15px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.services-double-title {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 600;
    color: #ffffff;
    font-family: var(--font-heading);
    margin: 0;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 768px) {
    .services-double-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-double-card {
        height: 300px;
        padding: 1.5rem;
    }
    
    .services-img-back, .services-img-front {
        width: 150px;
        height: 100px;
    }
}





/* --- SCENE 5: SOLUTION BENTO GRID --- */
#scene-services {
    background-color: var(--color-bg-alt);
}

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.bento-card {
    position: relative;
    padding: 3rem 2.2rem;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-5px);
}

/* Spotlight Follow Effect Hover Background */
.bento-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(225, 29, 72, 0.14), transparent 80%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* Animated Border Beams */
.bento-border-beam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.bento-border-beam rect {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: url(#border-gradient);
    stroke-width: 2.5;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.bento-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* --- SCENE 6: CLIMAX CTA --- */
#scene-climax {
    background: radial-gradient(circle, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.climax-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.climax-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    max-width: 850px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 800;
}

.climax-desc {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Secondary Action Button */
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    padding: 6rem 0 3.5rem 0;
    position: relative;
    z-index: 100;
}

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

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1.2rem;
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2.2rem;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.04);
    border-top: 3px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

@media (max-width: 768px) {
    body {
        cursor: default; /* Restore cursor on mobile */
    }

    /* Mobile Floating Pill Header Optimization */
    .header-container {
        padding: 0.4rem 1rem;
        width: 95% !important;
        position: relative;
    }
    
    .logo {
        font-size: 1.15rem;
    }

    /* Mobile Menu Hamburger Toggle */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }
    
    .hamburger-bar {
        width: 100%;
        height: 2.5px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    /* Hamburger Active State transforms to X */
    .nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Navigation Links Drawer */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: auto;
        background: rgba(3, 7, 18, 0.96);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border: 1px solid var(--color-border);
        border-radius: 24px;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9999;
    }
    
    .nav-links.active {
        right: 2.5%;
    }
    
    .nav-links li {
        width: 100%;
        display: block !important;
    }
    
    .nav-links li a {
        font-size: 1.05rem;
        display: block;
        padding: 0.5rem 0;
        color: var(--color-text-muted);
        text-align: center;
    }

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

    .nav-links li:last-child a, .nav-links li a.shimmer-btn, .nav-links li a.ghost-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 9999px !important;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Bento Card Padding Override on Mobile */
    .bento-card {
        padding: 2rem 1.5rem !important;
    }

    /* Hero Content Padding Override on Mobile */
    .hero-content {
        padding-top: 90px !important;
        justify-content: flex-start !important;
        height: auto !important;
    }

    .hero-title-1, .hero-title-2 {
        font-size: 1.75rem !important;
    }

    .hero-sub-animated {
        font-size: 0.95rem !important;
        margin: 0.75rem auto 1.25rem auto !important;
    }

    .trust-badge-container {
        margin-bottom: 0.75rem !important;
    }

    .custom-cursor-dot, .custom-cursor-circle {
        display: none;
    }

    .scene-section {
        height: auto;
        min-height: 100vh;
        padding: 7rem 0;
    }
    
    .hero-headline {
        font-size: 2.6rem;
    }
    
    .hero-sub {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .journey-timeline-container {
        height: auto;
        padding: 0;
        margin-top: 30px;
    }

    .journey-line-bg, .journey-beam-svg, .journey-dot-container, .crack-svg {
        display: none;
    }

    .journey-row {
        position: static;
        width: 100%;
        margin-bottom: 3rem;
        padding: 0 !important;
        justify-content: flex-start !important;
    }

    .journey-row .node-content {
        opacity: 1 !important;
        transform: none !important;
        text-align: left !important;
        padding: 0 !important;
        max-width: 100%;
    }

    .calculator-section-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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



    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .shimmer-btn, .ghost-btn {
        width: 100%;
    }

    #scene-hero, #scene-climax {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }
}
