:root {
    /* Premium Dark Theme Core Constants */
    --bg-deep: #040914;
    --bg-surface: #0B132B;
    --bg-surface-elevated: rgba(16, 27, 56, 0.6);
    
    /* Accents */
    --brand-cyan: #38bdf8;
    --brand-blue: #3b82f6;
    --brand-gold: #eab308;
    --brand-gold-glow: rgba(234, 179, 8, 0.3);
    --brand-cyan-glow: rgba(56, 189, 248, 0.15);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    /* UI Elements */
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(11, 19, 43, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Dynamic Tokens */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Abstract Premium Backgrounds */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-deep);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--brand-cyan-glow);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(59, 130, 246, 0.1);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--brand-gold-glow);
    animation-duration: 25s;
    filter: blur(150px);
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(3%, 5%) scale(1.05);
    }
    100% {
        transform: translate(-3%, -2%) scale(0.95);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Floating Nav */
.glass-nav-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 700px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--bg-deep);
    background: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.mobile-nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 130px;
    position: relative;
}

.hero-minimal {
    min-height: 50vh;
    padding-top: 160px;
    padding-bottom: 60px;
}

.hero-logo-frame {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 30px auto 40px;
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-glare {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--brand-cyan), transparent 40%);
    animation: spin 2s linear infinite;
}

.hero-logo {
    position: absolute;
    inset: 2px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-logo img {
    width: 105%;
    height: 105%;
    object-fit: contain;
    transform: translateY(2px);
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
}

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

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(to right bottom, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-deep);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(255, 255, 255, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #fcd34d, #d97706);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -5px var(--brand-gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(234, 179, 8, 0.5);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Section Headlines */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--brand-cyan);
    padding: 6px 16px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Bento Box Features Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding-bottom: 120px;
}

.bento-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

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

.bento-card-medium {
    grid-column: span 4;
}

.bento-card-half {
    grid-column: span 6;
}

@media (max-width: 1024px) {
    .bento-card-large,
    .bento-card-medium,
    .bento-card-half {
        grid-column: span 12;
    }
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.card-icon.gold {
    color: var(--brand-gold);
    background: var(--brand-gold-glow);
    border-color: rgba(234, 179, 8, 0.3);
}

.card-icon.cyan {
    color: var(--brand-cyan);
    background: var(--brand-cyan-glow);
    border-color: rgba(56, 189, 248, 0.3);
}

.card-icon.blue {
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.bento-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

/* Glass Information Panel for internal pages (Terms, Privacy) */
.glass-panel {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(20px);
    margin-bottom: 60px;
}

.glass-panel h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--brand-cyan);
    margin-bottom: 24px;
    margin-top: 40px;
}

.glass-panel h2:first-child {
    margin-top: 0;
}

.glass-panel h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-panel h3 i {
    color: var(--brand-gold);
}

.glass-panel p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.glass-panel ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.glass-panel li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.glass-panel strong {
    color: var(--text-primary);
}

.glass-panel a {
    color: var(--brand-cyan);
    text-decoration: none;
}

.glass-panel a:hover {
    text-decoration: underline;
}

/* Gold Premium Section */
.premium-dashboard {
    margin: 60px 0 120px;
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.1) 0%, rgba(30, 58, 138, 0.2) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 40px;
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-dashboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.5), transparent);
}

.premium-motto {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(to bottom right, #fff, #fef08a, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.premium-dashboard p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.stat-ring {
    background: rgba(11, 19, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 32px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-ring:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(20, 30, 60, 0.8);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer & Contact */
.footer-cta {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 64px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    margin-top: 40px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .glass-nav-wrapper {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 24px);
        padding: 0;
    }

    .glass-nav {
        padding: 4px;
        overflow-x: auto;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        border-radius: 100px;
    }
    
    .glass-nav::-webkit-scrollbar {
        display: none; /* WebKit */
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero-minimal {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .glass-panel {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .glass-panel h2 {
        font-size: 2rem;
    }

    .premium-dashboard {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .stat-ring {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
    
    .bento-card {
        padding: 32px 24px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 40px;
    }
}
