:root {
    /* Midnight Aurora Theme - Premium Update */
    --bg-body: #020617; /* Deep Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-surface-hover: #1e293b; /* Slate 800 */
    
    /* Glassmorphism */
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-strong: rgba(2, 6, 23, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-tertiary: #64748b; /* Slate 500 */

    /* Vibrancy */
    --accent-primary: #2DD4BF; /* Teal 400 */
    --accent-secondary: #D946EF; /* Fuchsia 500 */
    --accent-tertiary: #8B5CF6; /* Violet 500 */
    
    --glow-primary: rgba(45, 212, 191, 0.25);
    --glow-secondary: rgba(217, 70, 239, 0.25);

    --border: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.12);

    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --ease-out: cubic-bezier(0.21, 1.02, 0.48, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--accent-secondary);
    color: white;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #fff;
}

.display-text {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout */
.container {
    max-width: 1280px; /* Tighter container for better readout */
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Enhanced Background - Aurora */
.aurora-bg {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes aurora-shift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -5%);
    }
}

/* Navbar (Glass) */
.nav-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.nav-landing.scrolled {
    background: rgba(2, 6, 23, 0.85);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 8px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 999px;
}

.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
    opacity: 0; 
    /* Will be animated by JS */
    animation: fadeUp 1s var(--ease-out) forwards;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-primary);
    width: fit-content;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.1);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
    position: relative;
    height: 600px;
    perspective: 2000px;
}

/* 3D Floating Cards Effect */
.floating-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
}

.float-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-highlight);
    background: var(--bg-surface);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-1 {
    width: 300px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(50px);
    z-index: 3;
}

.card-2 {
    width: 260px;
    height: 350px;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%) translateZ(0px) rotate(-15deg);
    z-index: 2;
    opacity: 0.8;
}

.card-3 {
    width: 260px;
    height: 350px;
    top: 60%;
    left: 70%;
    transform: translate(-50%, -50%) translateZ(-50px) rotate(15deg);
    z-index: 1;
    opacity: 0.6;
}

.hero-wrapper:hover .card-2 {
    transform: translate(-60%, -50%) translateZ(20px) rotate(-20deg);
}

.hero-wrapper:hover .card-3 {
    transform: translate(-40%, -50%) translateZ(-30px) rotate(20deg);
}

/* CTA Buttons */
.cta-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn-aurora {
    position: relative;
    padding: 16px 36px;
    background: white;
    color: black;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-aurora::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-primary), #38bdf8, var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.btn-aurora span {
    position: relative;
    z-index: 1;
}

.btn-aurora:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--glow-primary);
}

.btn-aurora:hover::before {
    opacity: 1;
}

.btn-glass {
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

/* Infinite Marquee - Smoother */
.marquee-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(5px);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-item {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--glow-primary);
    transform: translateY(-2px);
}

.marquee-item span {
    color: var(--accent-primary);
    font-weight: 700;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Bento Grid Features - Spotlight */
.features-section {
    padding: 160px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 340px); /* Taller cards */
    gap: 24px;
}

.bento-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    /* Spotlight needs overflow: hidden */
}

/* Spotlight Effect Layer */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.03), rgba(15, 23, 42, 0.8));
}

.bento-card > div {
    position: relative;
    z-index: 2; /* Bring content above spotlight */
}

.bento-icon {
    font-size: 32px;
    color: white;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    width: fit-content;
    display: block;
}

.bento-card h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Code Preview in Bento */
.code-preview {
    background: #000;
    padding: 20px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 24px;
    border: 1px solid var(--border);
}

.token-1 {
    color: var(--aurora-2);
}

.token-2 {
    color: var(--aurora-1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-visual {
        display: none;
        /* Hide 3D cards on tablet/mobile for simplicity */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }
}

/* Footer (Simple) */
.footer-minimal {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    margin-bottom: 24px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Typography */
    .display-text {
        font-size: 2.75rem;
        /* Smaller for mobile */
    }

    .subtitle {
        font-size: 1.1rem;
    }

    /* Navbar */
    .nav-landing {
        padding: 16px 0;
        backdrop-filter: blur(10px);
        /* Ensure readability */
        background: rgba(5, 5, 5, 0.8);
        /* Semi-transparent black background */
        position: fixed;
        /* Stick to top */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-inner {
        padding: 0 4px;
        /* Slight squeeze */
    }

    .brand {
        font-size: 1.25rem;
    }

    .brand img {
        height: 28px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-item {
        display: none;
        /* Hide links on mobile, keep CTA */
    }

    /* Keep CTA visible */
    .nav-links .btn-glass {
        display: block;
        padding: 8px 14px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
    }

    /* Hero */
    .hero-wrapper {
        padding-top: 120px;
        /* More space for fixed nav if needed, or just visual balance */
        min-height: auto;
        /* Allow content to dictate height */
        padding-bottom: 80px;
    }

    .hero-split {
        gap: 40px;
    }

    .cta-row {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-aurora,
    .btn-glass {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    /* Features */
    .features-section {
        padding: 80px 0;
    }

    .bento-card {
        padding: 24px;
        min-height: auto;
    }

    .bento-icon {
        font-size: 28px;
    }

    .bento-card h3 {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .display-text {
        font-size: 2.25rem;
    }
}

/* Pro Tip Styles */
.pro-tip-container {
    margin-bottom: 24px;
}

.pro-tip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--aurora-1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(45, 212, 191, 0.2);
    line-height: 1.4;
}

.pro-tip i {
    font-size: 1rem;
}

/* Image Marquee Styles */
.mobile-marquee {
    display: none;
    /* Hidden by default */
}

.marquee-image-item {
    width: 180px;
    /* Fixed width for images */
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    position: relative;
}

.marquee-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Mobile Media Query Enhancements */
@media (max-width: 768px) {
    .desktop-marquee {
        display: none;
    }

    .mobile-marquee {
        display: block;
        padding: 20px 0;
    }

    .image-marquee-content {
        gap: 16px;
        animation-duration: 20s;
        /* Faster on mobile for flow */
    }

    /* Enhance Pro Tip on Mobile */
    .pro-tip {
        display: flex;
        width: 100%;
        text-align: left;
        background: rgba(45, 212, 191, 0.08);
        padding: 12px;
    }
}
/* Animation Utility Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

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

/* Float Card Hover Enhancement */
.float-card {
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.float-card:hover {
    z-index: 10;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

