:root {
    --bg: #020408;
    --primary: #38bdf8;
    /* Sky Blue */
    --secondary: #818cf8;
    /* Indigo */
    --accent: #f472b6;
    /* Pink - subtle pops */

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(15, 23, 42, 0.4);

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background: var(--bg);
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------
 * AURORA BACKGROUND
 * ------------------------------------------------------------------ */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(circle at 50% -20%, #1e1b4b, #020408);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -2s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    opacity: 0.2;
    animation-duration: 30s;
}

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

    100% {
        transform: translate(40px, -40px) scale(1.1);
    }
}

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

/* ------------------------------------------------------------------
 * FLOATING NAV ISLAND
 * ------------------------------------------------------------------ */
.nav-island {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 8px 8px 8px 24px;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.nav-island:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--glass-shine);
    transform: translateX(-50%) translateY(2px);
}

.brand-type {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
    margin-right: 16px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 8px;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* ------------------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    perspective: 1000px;
    overflow: hidden;
}

/* Video Background blended */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: screen;
    /* Magic blending */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 99px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    opacity: 0;
    /* Animated in */
    animation: slideUpFade 0.8s var(--ease-out) 0.1s forwards;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 96px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 20px;
    color: #94a3b8;
    max-width: 500px;
    line-height: 1.6;
    margin: 0 auto 40px;
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out) 0.3s forwards;
}

.hero-actions {
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out) 0.4s forwards;
}

.btn-glow {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 48px;
    border-radius: 99px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    transform: scale(1.02);
}

/* ------------------------------------------------------------------
 * GLASS CARDS SECTION
 * ------------------------------------------------------------------ */
.feature-section {
    position: relative;
    z-index: 10;
    padding: 120px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.bento-card {
    grid-column: span 4;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    /* Controlled by Intersection Observer */
    transform: translateY(40px);
}

.bento-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-shine);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.bento-card.wide {
    grid-column: span 8;
}

.card-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.card-content p {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.6;
}

.card-visual {
    margin-top: 40px;
    height: 240px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.bento-card:hover .card-img {
    transform: scale(1.1);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 8, 0.8), transparent);
    pointer-events: none;
}

/* Icons for cards without images */
.card-visual .iconify {
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------------
 * VIDEO CONTROLS
 * ------------------------------------------------------------------ */
.video-controls {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px 8px 8px;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out) 1s forwards;
}

.unmute-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.unmute-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transition: width 0.3s, background 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.video-controls:hover .volume-slider {
    width: 80px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* ------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .bento-card {
        grid-column: span 6;
    }

    .bento-card.wide {
        grid-column: span 12;
    }

    .hero-title {
        font-size: 64px;
    }
}

@media (max-width: 768px) {
    .bento-card {
        grid-column: span 12;
    }

    .hero-title {
        font-size: 48px;
    }

    .nav-island {
        width: 90%;
        justify-content: space-between;
        padding-right: 8px;
        padding-left: 16px;
        white-space: nowrap;
    }

    .nav-links-group {
        display: none;
    }

    .brand-type {
        font-size: 14px;
        margin-right: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }


    /* Hide middle links on mobile */
}

/* ------------------------------------------------------------------
 * CONTENT SECTIONS (NEW)
 * ------------------------------------------------------------------ */
.section-block {
    position: relative;
    z-index: 10;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.headline-lg {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.copy-text {
    font-size: 20px;
    line-height: 1.6;
    color: #94a3b8;
    /* text-muted */
    margin-bottom: 32px;
}

.copy-text p {
    margin-bottom: 16px;
}

/* 3-Column Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* Generic Glass Panel (Replaces Bento Card for specific sections) */
.glass-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: all 0.3s var(--ease-out);
}

.glass-panel:hover {
    border-color: var(--glass-shine);
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.6);
}

.glass-panel h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.glass-panel p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Trust Chips */
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    font-size: 14px;
    color: #cbd5e1;
    transition: all 0.2s;
}

.trust-chip:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .headline-lg {
        font-size: 36px;
    }

    .copy-text {
        font-size: 18px;
    }
}