@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* UNIFIED LOGO SPECTRUM - Infinite Performance Edition */
    --bg: #030305;
    --surface: rgba(10, 10, 15, 0.9);
    --surface-glass: rgba(10, 10, 15, 0.6);

    /* Spectral Colors */
    --logo-blue: #0066FF;
    --logo-teal: #00D1FF;
    --logo-lime: #A0D633;
    --logo-orange: #FF8A00;
    --logo-purple: #7C3AED;

    --primary: var(--logo-blue);
    --secondary: var(--logo-lime);
    --accent: var(--logo-orange);

    --text: #FFFFFF;
    --text-dim: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);

    /* Design Tokens */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --container-width: 1400px;
    --section-spacing: clamp(60px, 10vw, 150px);

    /* High-Vibrancy Glows */
    --gradient-brand: linear-gradient(135deg, var(--logo-blue), var(--logo-teal), var(--logo-lime));
    --glare: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(160, 214, 51, 0.1) 100%);
    --bg-gradient: radial-gradient(circle at top right, #0a0a1a 0%, #030305 100%);
    --overlay: linear-gradient(rgba(3, 3, 5, 0.4), rgba(3, 3, 5, 0.9));

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --trans: 0.5s var(--ease);
}

/* Global Light Mode */
body.light-mode {
    --bg: #f3f4f6;
    --bg-gradient: radial-gradient(circle at top right, #e5e7eb 0%, #f3f4f6 100%);
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --text: #111827;
    --text-dim: #4b5563;
    --border: rgba(0, 0, 0, 0.08);

    --logo-blue: #0055d4;
    --logo-lime: #638a1e;
    --logo-orange: #c86b05;
    --overlay: linear-gradient(rgba(255, 255, 255, 0.2), rgba(243, 244, 246, 0.8));
}

.theme-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    font-size: 14px;
    flex-shrink: 0;
}

.theme-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Components */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* Navbar - Ultra Responsive */
.navbar {
    position: fixed;
    top: clamp(10px, 3vw, 24px);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px clamp(15px, 4vw, 32px);
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: var(--surface);
    padding: 10px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-brand span {
    background-image: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--logo-blue);
    font-weight: 900;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 12px;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Glass Morphism Engine */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease), border-color 0.4s ease;
    will-change: transform;
}

.glass:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

/* Hero Section - Infinite Fluidity */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 0 60px;
}

.hero h1 {
    font-size: clamp(40px, 12vw, 130px);
    font-weight: 950;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 25px;
    background: linear-gradient(180deg, var(--text) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform;
}

.hero h1 span {
    display: block;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.3));
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: clamp(300px, 80%, 650px);
    color: var(--text-dim);
    line-height: 1.6;
}

/* Tagline */
.tagline {
    font-size: clamp(10px, 1.5vw, 14px);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Bento Grid System - World Record Responsiveness */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: clamp(16px, 2vw, 24px);
    margin: 60px 0;
}

.bento-item {
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.item-main {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.item-wide {
    grid-column: span 2;
}

.item-stat {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-main,
    .item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .item-main,
    .item-wide,
    .item-stat {
        grid-column: span 1;
    }

    .item-main {
        height: 350px;
    }
}

/* Performance Buttons */
.btn {
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 36px);
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    /* Removed underline */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease);
    font-size: clamp(13px, 1.5vw, 15px);
    cursor: pointer;
    will-change: transform;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

/* Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}