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

:root {
    --bg-primary: #0d0600;
    --bg-secondary: #1a0c00;
    --text-primary: #fffdfa;
    --text-secondary: #ffdeb3;
    --text-muted: #b3855c;
    
    --orange-start: #ff7b00;
    --orange-end: #ffaa00;
    
    --grad-orange: linear-gradient(135deg, var(--orange-start), var(--orange-end));
    
    --glow-orange: rgba(255, 123, 0, 0.45);
    
    --glass-bg: rgba(255, 150, 0, 0.05);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    
    --container-max: 1280px;
    --z-nav: 1000;
    --z-header: 900;
    --z-modal: 2000;
}

/* 1. RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient-orange {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 3. LAYOUT & SYSTEM CLASSES */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacing {
    padding: 120px 0;
}

/* Transparent Glossy System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 
                inset 0 2px 4px var(--glass-highlight),
                inset 0 -2px 10px rgba(255, 150, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent 40%, rgba(255,123,0,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 4. BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-orange {
    background: var(--grad-orange);
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-orange), inset 0 2px 2px rgba(255,255,255,0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-orange), inset 0 2px 2px rgba(255,255,255,0.6);
}

.btn-orange:active {
    transform: translateY(1px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* 5. TOP HEADER & FLOATING NAV */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
    pointer-events: none;
}

.top-header > * {
    pointer-events: auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    fill: url(#orange-grad);
    filter: drop-shadow(0 0 8px var(--glow-orange));
}

/* New Side Bar Style (Glossy Orange Pill on Right) */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    left: auto;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 123, 0, 0.05));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: var(--z-nav);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 
                inset 0 2px 5px rgba(255, 255, 255, 0.4),
                inset 0 -2px 10px rgba(255, 123, 0, 0.2);
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    margin-right: 15px;
    background: rgba(26, 12, 0, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #fff;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 123, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--glow-orange), inset 0 2px 4px rgba(255,255,255,0.3);
}

.nav-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-item.active {
    background: var(--grad-orange);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px var(--glow-orange), inset 0 2px 4px rgba(255,255,255,0.4);
}

/* 6. CINEMATIC HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1a0c00 0%, #0d0600 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Ocean Fog / Mist Animation */
.hero-fog {
    position: absolute;
    inset: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,123,0,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255,170,0,0.05) 0%, transparent 40%);
    animation: fogDrift 30s infinite alternate linear;
    z-index: 1;
    filter: blur(40px);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(rgba(255, 123, 0, 0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0;
    animation: particleFloat 40s linear infinite;
    opacity: 0.4;
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 24px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.8);
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

.legal-badge {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 100px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeUp 1s ease-out 0.6s backwards;
}

/* 7. GAME SECTION (CENTERPIECE) */
.game-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, #0d0600, #1a0c00);
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.game-title {
    font-size: 2.5rem;
}

.game-controls {
    display: flex;
    gap: 15px;
}

.ctrl-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.ctrl-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--orange-start);
    color: var(--orange-start);
    transform: translateY(-2px);
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.iframe-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255,123,0,0.6), rgba(255,170,0,0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.iframe-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(255,123,0,0.25), 0 0 0 1px rgba(255,255,255,0.3);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 8. FEATURES SECTION */
.features-section {
    position: relative;
    z-index: 10;
    background: #1a0c00;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                inset 0 2px 10px rgba(255, 255, 255, 0.5),
                inset 0 -2px 10px rgba(255, 150, 0, 0.2);
}

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

.feature-card.small {
    grid-column: span 4;
}

.feature-card.medium {
    grid-column: span 6;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--orange-start);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -2px 10px rgba(255,123,0,0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 9. INNER PAGES (About, Legal) */
.inner-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top center, #1a0c00 0%, #0d0600 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.content-section {
    padding: 80px 0;
}

.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--orange-start);
}

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

.prose ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
}

.prose li::before {
    content: '⚓';
    position: absolute;
    left: -25px;
    font-size: 0.9em;
    color: var(--orange-start);
}

.thin-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 0, 0.4), transparent);
    margin: 60px 0;
    border: none;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--orange-start);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 15px rgba(255,123,0,0.2), inset 0 2px 4px rgba(0,0,0,0.5);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 10. FOOTER */
.main-footer {
    background: #080400;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 400px;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--orange-start);
}

.footer-legal {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.warning-box {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.4);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

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

@keyframes fogDrift {
    0% { transform: translate(-5%, -5%) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(5deg); }
}

@keyframes particleFloat {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* 12. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .feature-card.large, .feature-card.small, .feature-card.medium {
        grid-column: span 12;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-max: 100%;
    }
    .section-spacing {
        padding: 80px 0;
    }
    .top-header {
        padding: 15px 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-ctas {
        flex-direction: column;
    }
    /* Mobile Bottom Nav */
    .floating-nav {
        top: auto;
        bottom: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 12px 24px;
        width: 90%;
        justify-content: space-between;
        border-radius: 40px;
    }
    .nav-item::after {
        display: none; 
    }
    .nav-item {
        border-radius: 50%;
    }
    .game-wrapper {
        padding: 20px;
    }
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-spacing {
        padding: 60px 0;
    }
    .iframe-container {
        border-radius: 12px;
    }
}