/* ============================================
   Historical Conquest - Landing Page Styles
   Epic, Historical, Premium Card Game Theme
   ============================================ */

/* CSS Variables */
:root {
    --color-bg-dark: #0a0a0f;
    --color-bg-medium: #12121a;
    --color-bg-light: #1a1a25;
    --color-gold: #d4af37;
    --color-gold-light: #f4cf57;
    --color-gold-dark: #a48520;
    --color-accent: #8b4513;
    --color-text: #e8e8e8;
    --color-text-muted: #888;
    --color-white: #ffffff;
    --color-red: #c41e3a;
    --color-blue: #1e90ff;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4cf57 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a25 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10,10,15,0.8) 0%, rgba(10,10,15,0.4) 50%, rgba(10,10,15,0.9) 100%);
    --font-display: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--color-gold);
    text-shadow: var(--shadow-gold);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

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

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

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 40px rgba(212, 175, 55, 0.5);
}

.btn-icon {
    font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
        var(--gradient-dark);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

/* Floating Cards Animation */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 170px;
    background: linear-gradient(145deg, #2a2a35 0%, #1a1a25 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    opacity: 0.6;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 60%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-radius: 6px;
}

.floating-card::after {
    content: '&#9876;';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: rgba(212, 175, 55, 0.5);
}

.card-1 {
    top: 15%;
    left: 10%;
    animation: float1 8s ease-in-out infinite;
    transform: rotate(-15deg);
}

.card-2 {
    top: 25%;
    right: 12%;
    animation: float2 10s ease-in-out infinite;
    transform: rotate(20deg);
}

.card-3 {
    bottom: 20%;
    left: 15%;
    animation: float3 9s ease-in-out infinite;
    transform: rotate(-8deg);
}

@keyframes float1 {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-20px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(20deg) translateY(0); }
    50% { transform: rotate(17deg) translateY(-25px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-15px); }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white);
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.title-line.accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: var(--shadow-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Game Introduction
   ============================================ */
.game-intro {
    padding: 120px 20px;
    text-align: center;
    background: var(--color-bg-medium);
    position: relative;
}

.game-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.intro-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 30px;
}

.section-title .highlight {
    color: var(--color-gold);
}

.intro-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

.intro-text strong {
    color: var(--color-gold);
}

.intro-text em {
    color: var(--color-white);
    font-style: normal;
}

/* ============================================
   Features Grid
   ============================================ */
.features {
    padding: 100px 20px;
    background: var(--color-bg-dark);
}

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

.feature-card {
    background: linear-gradient(145deg, var(--color-bg-light) 0%, var(--color-bg-medium) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    color: var(--color-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

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

/* ============================================
   How to Play
   ============================================ */
.how-to-play {
    padding: 120px 20px;
    background: var(--color-bg-medium);
    position: relative;
}

.how-to-play::before,
.how-to-play::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.how-to-play::before { top: 0; }
.how-to-play::after { bottom: 0; }

.how-to-play .section-title {
    text-align: center;
    margin-bottom: 80px;
}

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

.step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-gold);
    line-height: 1;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   Cards Showcase
   ============================================ */
.cards-showcase {
    padding: 120px 20px;
    background: var(--color-bg-dark);
    text-align: center;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.card-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.card-type {
    background: var(--color-bg-light);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.card-type:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-gold);
}

.card-type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-type-icon.warriors { background: linear-gradient(135deg, #c41e3a, #8b0000); }
.card-type-icon.explorers { background: linear-gradient(135deg, #2e8b57, #006400); }
.card-type-icon.politicians { background: linear-gradient(135deg, #4169e1, #191970); }
.card-type-icon.scientists { background: linear-gradient(135deg, #9932cc, #4b0082); }
.card-type-icon.events { background: linear-gradient(135deg, #ff8c00, #b8860b); }
.card-type-icon.lands { background: linear-gradient(135deg, #8b4513, #654321); }

.card-type h4 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.card-type p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    position: relative;
    padding: 150px 20px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%),
        var(--color-bg-medium);
    z-index: -1;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

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

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

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

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .step {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .step-number {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .floating-cards {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
