/* SudokuQuest Landing Page Styles */
:root {
    --bg: #0f172a;
    --bg-alt: #111827;
    --card: rgba(15, 23, 42, 0.75);
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.15);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --shadow: rgba(15, 23, 42, 0.45);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.22), rgba(15, 23, 42, 1));
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2.5rem 3rem;
    gap: 3rem;
}

.hero__content {
    flex: 1.1;
}

.hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.hero__body h1 {
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__body p {
    font-size: 1.05rem;
    max-width: 480px;
    color: var(--text-muted);
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin: 2.2rem 0 2.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.btn--primary {
    background: linear-gradient(130deg, #6366f1, #8b5cf6);
    color: var(--white);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px rgba(99, 102, 241, 0.35);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: rgba(148, 163, 184, 0.65);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 420px;
}

.hero__stats div {
    background: var(--card);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.35);
}

.hero__stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--white);
}

.hero__stats span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero__image {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.hero__image img {
    width: min(420px, 100%);
    filter: drop-shadow(0 25px 50px rgba(15, 23, 42, 0.65));
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

.section h2 {
    font-size: clamp(2.2rem, 3.2vw, 2.8rem);
    margin-bottom: 0.9rem;
}

.section__lead {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.4rem;
}

.features {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 28px;
    margin-top: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.feature-grid article {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 20px;
    padding: 1.6rem;
    min-height: 160px;
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
}

.feature-grid h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.feature-grid p {
    color: var(--text-muted);
}

.premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.4rem;
    align-items: center;
}

.premium__list {
    margin: 1.6rem 0;
    list-style: none;
}

.premium__list li {
    margin-bottom: 0.6rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-muted);
}

.premium__list li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.download {
    text-align: center;
}

.support {
    text-align: center;
    color: var(--text-muted);
}

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.pricing-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 90;
}

.pricing-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.pricing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.pricing-modal__dialog {
    position: relative;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    max-width: 720px;
    width: min(90vw, 720px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.65);
    color: var(--text);
}

.pricing-modal__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.pricing-modal__lead {
    color: var(--text-muted);
    margin: 0.8rem 0 2rem;
}

.pricing-modal__tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.tier {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.8rem;
}

.tier--highlight {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.12);
}

.tier__price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.tier__price span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier ul {
    list-style: none;
    color: var(--text-muted);
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-left: 0;
}

.tier li {
    position: relative;
    padding-left: 1.4rem;
}

.tier li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.pricing-modal__cta {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.pricing-modal__cta .btn {
    min-width: 140px;
}

@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero__top {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero__body p {
        margin: 0 auto;
    }

    .hero__stats {
        margin: 0 auto;
    }

    .hero__image {
        order: -1;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
