:root {
    /* Colors */
    --primary-blue: #0B5394;
    --dark-navy: #0A2540;
    --light-blue: #E8F4FD;
    --white: #FFFFFF;
    --warm-accent: #D4A84B;

    /* Typography */
    --font-heading: 'Amarante', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-unit: 8px;
    --max-width: 1200px;
    --content-width: 700px;
}

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

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--dark-navy);
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 3);
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(135deg, #0A2540 0%, #0B5394 50%, #1a6bb8 100%);
    animation: gradientShift 70s ease-in-out infinite;
    z-index: -2;
}

.blueprint-grid-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }

    25% {
        transform: translate(-2%, 3%) rotate(1deg) scale(1.05);
        filter: hue-rotate(5deg);
    }

    50% {
        transform: translate(3%, -2%) rotate(-1deg) scale(1.03);
        filter: hue-rotate(-3deg);
    }

    75% {
        transform: translate(-1%, -3%) rotate(0.5deg) scale(1.04);
        filter: hue-rotate(4deg);
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: calc(var(--spacing-unit) * 6);
    animation: fadeInUp 1.2s ease-out;
}

.main-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.hero-text {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

/* About Section */
.about {
    background: var(--white);
    padding: calc(var(--spacing-unit) * 15) calc(var(--spacing-unit) * 3);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about h2,
.brewing h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.about-content p {
    margin-bottom: calc(var(--spacing-unit) * 4);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-content p:nth-child(1) {
    animation-delay: 0.1s;
}

.about-content p:nth-child(2) {
    animation-delay: 0.2s;
}

.about-content p:nth-child(3) {
    animation-delay: 0.3s;
    margin-bottom: 0;
}

/* Currently Brewing Section */
.brewing {
    position: relative;
    background: var(--light-blue);
    padding: calc(var(--spacing-unit) * 15) calc(var(--spacing-unit) * 3);
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(11, 83, 148, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 83, 148, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.game-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 6);
    box-shadow: 0 8px 32px rgba(10, 37, 64, 0.12);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(10, 37, 64, 0.18);
}

.coming-soon-badge {
    position: absolute;
    top: calc(var(--spacing-unit) * 3);
    right: calc(var(--spacing-unit) * 3);
    background: var(--warm-accent);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-visual {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.potion-icon {
    width: 120px;
    height: auto;
}

.card-text {
    text-align: center;
    color: var(--dark-navy);
    font-size: 16px;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-navy);
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 3);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-text p {
    margin: calc(var(--spacing-unit) * 0.5) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 2);
    }

    .main-logo {
        max-width: 400px;
    }

    .about,
    .brewing {
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 2);
    }

    .about h2,
    .brewing h2 {
        margin-bottom: calc(var(--spacing-unit) * 6);
    }

    body {
        font-size: 16px;
    }

    .game-card {
        padding: calc(var(--spacing-unit) * 4);
    }

    .potion-icon {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 320px;
    }

    .about,
    .brewing {
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
    }

    .game-card {
        padding: calc(var(--spacing-unit) * 3);
    }
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {

    .about h2,
    .about-content p,
    .brewing h2,
    .game-card {
        animation-play-state: paused;
    }

    .about h2.visible,
    .about-content p.visible,
    .brewing h2.visible,
    .game-card.visible {
        animation-play-state: running;
    }
}

/* Utility class for scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}