@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Manrope:wght@200..800&display=swap');

/* Base Variables */
:root {
    --primary: #543fca;
    --primary-light: #6b56e6;
    --background-light: #f6f6f8;
    --background-dark: #15131f;
    --surface-light: #ffffff;
    --surface-dark: #1e1c2e;
    --text-slate-900: #0f172a;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-400: #94a3b8;
    --text-slate-300: #cbd5e1;
    --text-white: #ffffff;

    /* Tag Colors */
    --color-rose: #f43f5e;
    --color-teal: #14b8a6;
    --color-amber: #f59e0b;
    --color-indigo: #6366f1;
    --color-cyan: #06b6d4;
    --color-green: #16a34a;
    --color-purple: #a855f7;

    --font-display: 'Manrope', 'Lato', sans-serif;

    --shadow-default: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    color: var(--text-slate-900);
    background-color: var(--background-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1280px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Header */
.main-header {
    top: 0;
    z-index: 40;
    width: 100%;
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: background-color 0.3s;
    padding: 1.2rem 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 38%);
}

.header-container {
    display: flex;
    align-items: center;
    /* Removed justify-content: space-between */
    height: 4rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    /* Pushes everything else to the right */
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.nav-logo-image {
    height: 3.75rem;
    width: auto;
    display: block;
}

.desktop-nav {
    display: none;
    margin-right: 60px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .desktop-nav a {
        font-size: 1.2rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
    }

    .desktop-nav a:hover {
        color: white;
    }

    .desktop-nav a.active {
        color: white;
        /* 'Games' was darker in example */
        font-weight: 600;
    }
}

.disabled-nav-item {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: white;
    color: var(--primary);
    padding: 0.425rem 0.675rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Invert button in header */
.header-actions .btn-primary {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 1rem;
}

.header-actions .btn-primary:hover {
    background-color: #f8fafc;
    box-shadow: var(--shadow-lg);
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(84, 63, 202, 0.2);
}

.btn-primary:hover {
    background-color: rgba(84, 63, 202, 0.9);
    box-shadow: var(--shadow-lg);
}

.d-none-mobile {
    display: none;
}

@media (min-width: 640px) {
    .d-none-mobile {
        display: flex;
    }
}

.d-md-none {
    display: block;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none;
    }
}

.menu-btn {
    color: white;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-nav {
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: absolute;
    top: 100%;
    width: 100%;
}

.mobile-nav.active {
    display: flex;
    gap: 1rem;
}

.mobile-nav a {
    padding: 0.5rem;
    font-weight: 500;
    color: var(--text-slate-600);
}

.mobile-nav .btn-primary {
    color: white;
}

.mobile-nav .nav-badge {
    background-color: rgba(84, 63, 202, 0.1);
}

/* Hero Section */
.hero-section {
    z-index: -1;
    position: relative;
    background-color: var(--surface-dark);
    padding: 5rem 0;
    overflow: hidden;
    text-align: center;
    color: white;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 14rem 0;
    }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(84, 63, 202, 0.3), var(--background-dark));
    z-index: 10;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('duplo28.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 20;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-slate-300);
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

#typing-text {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgb(0 0 0), 0 0 20px rgb(84 63 202);
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: white;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 4px;
    margin-bottom: 0.1em;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Game Sections / Cards */
.bg-light {
    background-color: var(--surface-light);
    border-bottom: 1px solid #f1f5f9;
}

.bg-dark-alt {
    background-color: var(--background-light);
    border-bottom: 1px solid #e2e8f0;
}

.game-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .game-section {
        padding: 6rem 0;
    }
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .game-card {
        flex-direction: row;
        gap: 4rem;
    }

    .game-card.reverse {
        flex-direction: row-reverse;
    }
}

.game-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .game-image-wrapper {
        width: 50%;
    }
}

.game-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s;
}

.game-image-wrapper:hover .game-image {
    transform: scale(1.05);
}

.game-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-teal {
    background-color: var(--color-teal);
}

.bg-rose {
    background-color: var(--color-rose);
}

.bg-amber {
    background-color: var(--color-amber);
}

.bg-indigo {
    background-color: var(--color-indigo);
}

.bg-cyan {
    background-color: var(--color-cyan);
}

.bg-green {
    background-color: var(--color-green);
}

.bg-purple {
    background-color: var(--color-purple);
}

.game-info {
    width: 100%;
    text-align: left;
}

@media (min-width: 768px) {
    .game-info {
        width: 50%;
    }
}

.game-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text-slate-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .game-title {
        font-size: 2.25rem;
    }
}

.game-desc {
    font-size: 1.125rem;
    color: var(--text-slate-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-dark-store {
    background-color: var(--text-slate-900);
    color: white;
    padding: 0.75rem 1.25rem;
}

.btn-dark-store:hover {
    background-color: rgb(30, 41, 59);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-light-store {
    background-color: white;
    color: var(--text-slate-900);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
}

.btn-light-store:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.store-subtitle {
    font-size: 0.625rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.store-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.material-symbols-outlined {
    font-size: 1.5rem;
}

.material-symbols-outlined.text-2xl {
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.logo-icon-sm {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-sm {
    font-size: 0.875rem;
}

.brand-desc {
    font-size: 0.875rem;
    color: var(--text-slate-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-slate-400);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-links h4 {
    font-weight: 700;
    color: var(--text-slate-900);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-slate-500);
}

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

.footer-newsletter h4 {
    font-weight: 700;
    color: var(--text-slate-900);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-newsletter p {
    font-size: 0.875rem;
    color: var(--text-slate-500);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-slate-900);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.newsletter-form button:hover {
    background-color: rgba(84, 63, 202, 0.9);
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    color: var(--text-slate-400);
    font-size: 0.75rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-slate-400);
    font-size: 0.75rem;
}

.legal-links a:hover {
    color: var(--text-slate-600);
}

/* Margin Utility */
.mb-4 {
    margin-bottom: 1rem;
}

/* Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pillar Icon Hover Effect */
.pillar-icon-box {
    transition: all 0.3s ease;
}

.group:hover .pillar-icon-box {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}