:root {
    --bg: #f2eeea;
    --bg-soft: #ede4d8;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #643a16;
    --text-soft: #8c5e3c;
    --line: rgba(100, 58, 22, 0.14);
    --line-strong: rgba(100, 58, 22, 0.24);
    --accent: #9b6236;
    --accent-2: #d0a16e;
    --shadow: 0 22px 55px rgba(73, 40, 15, 0.12);
    --radius: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 90% 12%, rgba(208, 161, 110, 0.22), transparent 40%),
        radial-gradient(circle at 5% 28%, rgba(155, 98, 54, 0.1), transparent 45%),
        linear-gradient(180deg, #f4f1ec 0%, #efe8df 45%, #f6f3ef 100%);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

.container {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 241, 236, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(100, 58, 22, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.2rem;
}

.brand-nx {
    color: var(--text);
}

.brand-games {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-soft);
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #7d4a23, #b87d48);
    box-shadow: 0 12px 22px rgba(125, 74, 35, 0.22);
}

.btn-secondary {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(100, 58, 22, 0.38);
    background: rgba(255, 255, 255, 0.9);
}

.hero {
    position: relative;
    padding: 4.5rem 0 2rem;
    overflow: clip;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(208, 161, 110, 0.16), transparent 48%),
        radial-gradient(circle at 82% 18%, rgba(100, 58, 22, 0.1), transparent 42%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
}

.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: rgba(100, 58, 22, 0.35);
}

.hero-copy h1 {
    display: grid;
    gap: 0.6rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-copy h1 .serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-copy h1 .subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: var(--text-soft);
    font-weight: 400;
    line-height: 1.35;
    max-width: 28ch;
}

.hero-copy p {
    color: var(--text-soft);
    max-width: 58ch;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-highlights li {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text-soft);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 244, 239, 0.76));
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.hero-logo {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(100, 58, 22, 0.06);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
}

.hero-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-panel p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.panel-pills {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.panel-pills span {
    font-size: 0.8rem;
    color: var(--text);
    background: rgba(229, 216, 198, 0.75);
    border: 1px solid rgba(100, 58, 22, 0.08);
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
}

.section {
    padding: 4.5rem 0;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1;
    margin-bottom: 0.7rem;
}

.section-heading p {
    color: var(--text-soft);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.module-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: 0 12px 30px rgba(80, 51, 22, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 58, 22, 0.25);
    box-shadow: 0 18px 38px rgba(80, 51, 22, 0.09);
}

.module-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(229, 216, 198, 0.85);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.module-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.module-card p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.accent-card {
    background:
        linear-gradient(180deg, rgba(185, 125, 72, 0.08), rgba(255, 255, 255, 0.78)),
        var(--surface);
    border-color: rgba(155, 98, 54, 0.18);
}

.benefits {
    padding-top: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.4rem;
    align-items: start;
}

.benefits-copy {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.3rem;
    position: sticky;
    top: 86px;
}

.benefits-copy h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    line-height: 1;
    margin-bottom: 0.7rem;
}

.benefits-copy p {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.benefits-list {
    display: grid;
    gap: 0.9rem;
}

.benefit-item {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 10px 22px rgba(80, 51, 22, 0.05);
}

.benefit-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.benefit-item p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.workflow .section-heading {
    margin-bottom: 1.6rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.timeline-item {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

.step {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #8f5b31, #c7925d);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.timeline-item h3 {
    margin-bottom: 0.35rem;
}

.timeline-item p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.cta {
    padding-top: 2rem;
    padding-bottom: 5.5rem;
}

.cta-card {
    border: 1px solid rgba(100, 58, 22, 0.14);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 20% 20%, rgba(208, 161, 110, 0.15), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 232, 0.95));
    box-shadow: var(--shadow);
    padding: 1.3rem;
    display: grid;
    grid-template-columns: 1.25fr auto;
    gap: 1rem;
    align-items: center;
}

.cta-copy h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.cta-copy p {
    color: var(--text-soft);
    max-width: 62ch;
}

.cta-actions {
    display: grid;
    gap: 0.7rem;
    min-width: 230px;
}

.footer {
    border-top: 1px solid rgba(100, 58, 22, 0.08);
    background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(100, 58, 22, 0.08);
    background: rgba(255, 255, 255, 0.7);
    object-fit: cover;
}

.footer-brand strong {
    display: block;
    line-height: 1.1;
}

.footer-brand span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-link {
    color: var(--text-soft);
    font-weight: 500;
}

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

/* Reuse the root script's fade-in behavior */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 980px) {
    .hero-grid,
    .benefits-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .modules-grid,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-copy {
        position: static;
    }

    .cta-actions {
        min-width: 0;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(1180px, calc(100% - 1.2rem));
    }

    .nav-links {
        display: none;
    }

    .hero-copy h1 .subtitle {
        max-width: none;
    }

    .modules-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 0.85rem;
    }

    .section {
        padding: 3.4rem 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
