@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --bg-soft: #f8f7fc;
    --bg-alt: #f3f0fa;
    --surface: #ffffff;
    --surface-2: #faf8ff;
    --ink: #1a1033;
    --ink-secondary: #4a3d6b;
    --muted: #6e6494;
    --line: #e8e2f4;
    --line-light: #f0ecf8;
    --brand: #7A2B8E;
    --brand-dark: #561D65;
    --brand-light: #9B3FB8;
    --brand-pale: #f5eaff;
    --brand-bg: rgba(122, 43, 142, 0.06);
    --accent: #ac4fd4;
    --accent-2: #c47de0;
    --green: #22c55e;
    --radius: 16px;
    --radius-sm: 10px;
    --max: 1160px;
    --shadow-sm: 0 1px 3px rgba(122, 43, 142, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(122, 43, 142, 0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(122, 43, 142, 0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 60px rgba(122, 43, 142, 0.15), 0 8px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
.screenshot-item:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}
.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
h1, h2, h3 { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 0.8rem; color: var(--ink); }
section { padding: 5.5rem 0; position: relative; }

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--ink);
}

.brand img {
    border-radius: 10px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: var(--muted);
    font-weight: 500;
}

.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--brand); }

.nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    padding: 0.56rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(122, 43, 142, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(122, 43, 142, 0.4);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---- HERO ---- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(122, 43, 142, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.06), transparent 50%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-pale);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 1rem + 3vw, 3.4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    color: var(--ink-secondary);
    max-width: 52ch;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 0.84rem 1.4rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 8px 28px rgba(122, 43, 142, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(122, 43, 142, 0.4);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--brand);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--brand);
    background: var(--brand-pale);
}

.hero-points {
    margin-top: 1.6rem;
    list-style: none;
    color: var(--ink-secondary);
    font-size: 0.92rem;
}

.hero-points li {
    margin-top: 0.5rem;
    padding-left: 1.4rem;
    position: relative;
}

.hero-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* ---- HERO SCREENSHOT CAROUSEL ---- */
.hero-screenshot {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.hero-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
    background: var(--surface);
    border-top: 1px solid var(--line-light);
}

.screenshot-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.screenshot-dots button.active {
    background: var(--brand);
    transform: scale(1.2);
}

.screenshot-dots button:hover {
    background: var(--accent-2);
}

/* ---- FEATURES / PROOF ---- */
.proof {
    background: var(--bg);
}

.section-lead {
    color: var(--muted);
    max-width: 70ch;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-pale), #ede4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand);
    font-size: 1.3rem;
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

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

/* ---- APP SCREENSHOTS GALLERY ---- */
.screenshots {
    background: var(--bg-soft);
    overflow: hidden;
}

.screenshots h2 {
    text-align: center;
}

.screenshots .section-lead {
    text-align: center;
    margin-inline: auto;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--surface);
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-item figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-secondary);
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--line-light);
}

/* ---- HOW IT WORKS / WORKFLOW ---- */
.workflow {
    background: var(--bg);
}

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

.steps article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.steps span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.steps h3 {
    margin-bottom: 0.4rem;
}

.steps p {
    color: var(--muted);
    font-size: 0.93rem;
}

/* ---- PLATFORM ---- */
.platform {
    background: var(--bg-soft);
}

.platform-box {
    background: linear-gradient(135deg, rgba(122, 43, 142, 0.04), rgba(168, 85, 247, 0.06));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
}

.platform p, .platform li {
    color: var(--ink-secondary);
}

.platform ul { list-style: none; margin-top: 1rem; }

.platform li {
    margin-top: 0.5rem;
    padding-left: 1.4rem;
    position: relative;
}

.platform li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

/* ---- USE CASES / FORUM ---- */
.use-cases {
    background: var(--bg);
}

.use-cases h2 {
    text-align: center;
}

.use-cases .section-lead {
    text-align: center;
    margin-inline: auto;
}

.forum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.forum-post {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.forum-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-2);
}

.forum-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-pale);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.forum-post h3 {
    font-size: 1.05rem;
    color: var(--ink);
}

.forum-post p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

.forum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line-light);
}

.forum-meta span {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-secondary);
    background: var(--bg-alt);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}

/* ---- FAQ ---- */
.faq {
    background: var(--bg-soft);
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin-top: 0.7rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.faq details[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-2);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--brand);
    font-weight: 400;
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq p {
    margin-top: 0.7rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- DOWNLOAD CTA ---- */
.download {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.download-box {
    text-align: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
    border: none;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}

.download-box h2 {
    color: #fff;
    position: relative;
}

.download-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    position: relative;
}

.download-box .btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.download-box .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.footer-wrap {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---- ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-screenshot { max-width: 600px; margin-inline: auto; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); }
    .forum-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    section { padding: 3.5rem 0; }
    .hero { min-height: auto; padding-top: 2rem; padding-bottom: 2rem; }
    .menu-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 74px;
        right: 1.1rem;
        left: 1.1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.6rem 0.75rem; border-radius: 8px; }
    .site-nav a:hover { background: var(--brand-pale); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .grid-3, .steps { grid-template-columns: 1fr; }
    .screenshot-gallery { grid-template-columns: 1fr; }
    .forum-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(1.8rem, 1rem + 3vw, 2.6rem); }

    .footer-wrap {
        min-height: auto;
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .download-box {
        padding: 2.5rem 1.5rem;
    }
}

/* ---- INNER PAGE HERO ---- */
.page-hero {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(122, 43, 142, 0.08), transparent 50%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

.page-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--ink-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 60ch;
}

.page-hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

/* ---- GAMES GRID (hub page) ---- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-2);
}

.game-card-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-pale);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.game-card h3 {
    font-size: 1.08rem;
    color: var(--ink);
    font-family: 'Sora', sans-serif;
}

.game-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.game-card-arrow {
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 600;
    margin-top: 0.4rem;
}

/* ---- WHY SECTION ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.why-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.why-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

@media (max-width: 1000px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .games-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 2.5rem 0 2rem; }
}
