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

:root {
    /* Base Colors */
    --bg-primary: #0e1117;
    --bg-secondary: #151a22;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(212, 175, 55, 0.2);
    
    /* Accent Colors */
    --accent-gold: #d4af37;
    --accent-gold-hover: #ebd570;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-muted: #8b9bb4;
    
    /* Typography */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --container-max: 1320px;
    --spacing-desktop: 110px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--spacing-desktop) 0;
    position: relative;
}

/* Ambient Background Shimmer */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(14,17,23,0) 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(40px);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(14, 17, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   UI COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8942b 100%);
    color: #0e1117;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ebd570 0%, #d4af37 100%);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Glass Cards */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 30%);
}

.hero-visual img {
    width: 100%;
    height: auto;
    transform: scale(1.02);
    transition: transform 10s ease;
}

.hero-visual:hover img {
    transform: scale(1.05);
}

/* =========================================
   FEATURES & CONTENT GRIDS
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* =========================================
   LEGAL & TEXT PAGES
   ========================================= */
.page-header {
    text-align: center;
    padding: calc(var(--spacing-desktop) + 80px) 0 var(--spacing-tablet);
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.75rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--accent-gold);
}

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

.responsible-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-weight: 500;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIRST SCALING)
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --spacing-desktop: var(--spacing-tablet);
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual::after {
        background: linear-gradient(to top, var(--bg-primary) 0%, transparent 30%);
    }

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

@media (max-width: 768px) {
    :root {
        --spacing-desktop: var(--spacing-mobile);
    }
    
    .container {
        padding: 0 24px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        padding: 1.5rem 24px;
        border-bottom: 1px solid var(--border);
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
}