/* ===========================
   DOFUS LANDING PAGE - STYLES
   =========================== */

:root {
    /* Primary Colors */
    --color-primary: #FF6B35;
    --color-primary-dark: #E55a28;
    --color-secondary: #6C5B9E;
    --color-accent: #FFD700;
    --color-accent-dark: #FFA500;

    /* Neutrals */
    --color-bg: #0f0f0f;
    --color-bg-light: #1a1a1a;
    --color-bg-lighter: #2a2a2a;
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-text-dim: #808080;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #6C5B9E 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(255, 107, 53, 0.2);
}

/* ===========================
   RESET & BASE
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--color-primary);
    z-index: 100;
    padding: var(--spacing-md);
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background-color: var(--color-primary);
    color: white;
}

.cookie-accept:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
}

.cookie-decline {
    background-color: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-text-dim);
}

.cookie-decline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.header {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    z-index: 50;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-right: var(--spacing-xl);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    flex: 1;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

.header-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .header-container {
        padding: 0 var(--spacing-md);
    }
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-play {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-play:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.play-icon {
    font-size: 1.2em;
    margin-right: 0.25rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem var(--spacing-lg) 4rem;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.hero-ctas .btn {
    width: fit-content;
}

.trust-signal {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    margin: 0;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.hero-graphic svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 107, 53, 0.2));
}

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

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem var(--spacing-lg) 2rem;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
    }
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem var(--spacing-lg);
    background: var(--gradient-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.feature-card h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===========================
   GAMEPLAY SECTION
   =========================== */

.gameplay {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem var(--spacing-lg);
}

.gameplay-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.gameplay-item {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(108, 91, 158, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.gameplay-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.gameplay-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.gameplay-item p {
    margin-bottom: var(--spacing-md);
}

.gameplay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag:hover {
    background: rgba(255, 107, 53, 0.25);
}

/* ===========================
   COMMUNITY SECTION
   =========================== */

.community {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem var(--spacing-lg);
}

.community-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.community-text h2 {
    margin-bottom: var(--spacing-lg);
}

.community-text > p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.community-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-graphic {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.community-graphic svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(255, 107, 53, 0.15));
}

@media (max-width: 968px) {
    .community-container {
        grid-template-columns: 1fr;
    }

    .community-stats {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   TRUST SECTION
   =========================== */

.trust {
    background: var(--gradient-dark);
    padding: 4rem var(--spacing-lg);
    text-align: center;
}

.trust h2 {
    margin-bottom: 3rem;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    background: var(--color-bg-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.badge:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

.badge p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ===========================
   FINAL CTA SECTION
   =========================== */

.final-cta {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem var(--spacing-lg);
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.final-cta .btn {
    margin-bottom: 1.5rem;
}

.cta-subtext {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.platform-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.platform-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.platform-link:hover {
    border-color: var(--color-primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--color-bg-light);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    padding: 4rem var(--spacing-lg) 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    padding-top: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .hero {
        padding: 3rem var(--spacing-md) 2rem;
    }

    .features,
    .gameplay,
    .community,
    .final-cta {
        padding: 3rem var(--spacing-md);
    }

    .features-grid,
    .gameplay-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cookie-banner {
        padding: var(--spacing-md);
    }

    .cookie-content {
        gap: var(--spacing-md);
    }

    .btn-xl {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

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

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll support */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .footer {
        display: none;
    }
}
