@charset "UTF-8";

/* ==========================================================================
   CREWCORNR - ARABIAN CYBER SULTANATE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* 🌌 BASE COLORS */
    --bg-primary: #050816;
    --bg-secondary: #0f1729;
    --bg-layer: #1a1027;

    /* 🪟 GLASS PANELS */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-blur: 24px;

    /* 👑 ACCENTS */
    --gold-gradient: linear-gradient(135deg, #f6c453, #d99a1d);
    --gold-glow: rgba(246, 196, 83, 0.45);
    
    --purple-gradient: linear-gradient(135deg, #7c3aed, #c084fc);
    --purple-glow: rgba(124, 58, 237, 0.40);
    
    --ember-gradient: linear-gradient(135deg, #f97316, #ef4444);
    --ember-glow: rgba(249, 115, 22, 0.35);

    --premium-blend: linear-gradient(135deg, #f6c453, #7c3aed, #f97316);

    /* ✨ TYPOGRAPHY */
    --text-primary: #f8fafc;
    --text-secondary: #d6d8e1;
    --text-muted: #7c8597;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* 🧱 LAYOUT */
    --container-max: 1360px;
    --game-max: 1240px;
    --nav-height: 80px;
    --space-desktop: 140px;
    --space-tablet: 90px;
    --space-mobile: 60px;
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --radius-pill: 100px;
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(246, 196, 83, 0.05), transparent 25%);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

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

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

.section-padding {
    padding: var(--space-desktop) 0;
}

/* ==========================================================================
   HEADER - FLOATING SULTAN CONTROL PANEL
   ========================================================================== */
.header-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.floating-header {
    pointer-events: auto;
    width: 90%;
    max-width: 1200px;
    height: var(--nav-height);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 32px;
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(246, 196, 83, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.floating-header:hover {
    border-color: rgba(246, 196, 83, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    position: relative;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--gold-gradient);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') center/contain no-repeat;
    animation: pulseGlow 3s infinite alternate;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-layer);
    border: 2px solid rgba(246, 196, 83, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 8px #10b981;
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/images/arabian-desert-palace-night.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,8,22,0.4) 0%, rgba(5,8,22,0.8) 60%, var(--bg-primary) 100%);
}

.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--gold-glow) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: drift 20s linear infinite;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-pill);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--purple-glow);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-legal span {
    display: block;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   GAME SECTION - ARABIAN NIGHTS IFRAME
   ========================================================================== */
.game-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: var(--space-desktop);
}

.game-container {
    max-width: var(--game-max);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 8px;
    background: linear-gradient(135deg, rgba(246,196,83,0.2), rgba(124,58,237,0.1), rgba(249,115,22,0.1));
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px var(--gold-glow);
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.game-container:hover {
    transform: scale(1.01) translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px var(--gold-glow);
}

.game-wrapper {
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.game-overlay-ui {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.game-widget {
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.game-widget i {
    color: #f6c453;
}

/* ==========================================================================
   FEATURES / SAAS LAYOUT CARDS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(246, 196, 83, 0.3);
}

.fc-large {
    grid-column: span 8;
    background: linear-gradient(135deg, rgba(15,23,41,0.8), rgba(26,16,39,0.8));
}

.fc-small {
    grid-column: span 4;
    background: linear-gradient(135deg, rgba(26,16,39,0.8), rgba(15,23,41,0.8));
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
}

.img-placeholder {
    margin-top: 24px;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    background: url('assets/images/futuristic-arabian-ui.jpg') center/cover;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   CONTENT PAGES (LEGAL, ABOUT, ETC)
   ========================================================================== */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(124,58,237,0.15) 0%, var(--bg-primary) 70%);
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-desktop) 24px;
}

.legal-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.legal-card h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p, .legal-card ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-card ul {
    padding-left: 24px;
    list-style-type: disc;
}

.legal-card ul li {
    margin-bottom: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 196, 83, 0.5), transparent);
}

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

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

.footer-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: #f6c453;
    padding-left: 5px;
}

.company-info {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.company-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    color: #ef4444;
    font-weight: 800;
    font-size: 1rem;
}

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

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 5px rgba(246, 196, 83, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(246, 196, 83, 0.8)); }
}

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

/* ==========================================================================
   MOBILE & RESPONSIVE
   ========================================================================== */
.mobile-nav-bottom {
    display: none;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .fc-large, .fc-small { grid-column: span 12; }
}

@media (max-width: 768px) {
    .header-wrapper { display: none; } /* Hide desktop header */
    
    .mobile-nav-bottom {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(15, 23, 41, 0.85);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(246, 196, 83, 0.2);
        border-radius: var(--radius-pill);
        padding: 12px 24px;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    }

    .mobile-nav-item {
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 0.75rem;
    }

    .mobile-nav-item.active {
        color: #f6c453;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    
    .game-section { padding: 0 16px; margin-top: -60px; }
    .game-overlay-ui { display: none; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
    
    .page-header { padding: 100px 24px 60px; }
    .page-header h1 { font-size: 2.5rem; }
    .legal-card { padding: 24px; }
    
    body { padding-bottom: 80px; } /* Space for bottom nav */
}