:root {
    --bg: #f4efe4;
    --paper: rgba(255, 251, 243, 0.88);
    --ink: #17211f;
    --muted: #5e6963;
    --line: rgba(23, 33, 31, 0.12);
    --brand: #0f766e;
    --brand-strong: #0b5e58;
    --accent: #d96c3f;
    --accent-soft: #f5d7c8;
    --shadow: 0 22px 70px rgba(35, 34, 28, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(217, 108, 63, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.15), transparent 28%),
        linear-gradient(180deg, #f7f1e7 0%, #efe5d4 100%);
}

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 249, 240, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
}

.topnav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.topnav a,
.footer-links a,
.text-btn {
    color: var(--ink);
    text-decoration: none;
}

.top-actions,
.hero-actions,
.download-actions,
.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.solid-btn,
.outline-btn,
.ghost-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.solid-btn {
    color: white;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

.outline-btn,
.ghost-btn {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
}

.wide {
    width: 100%;
}

.hero-section,
.feature-section,
.packages-section,
.download-section,
.contact-section {
    margin-top: 28px;
    padding: 40px;
    border-radius: 36px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 28px;
    min-height: 620px;
    align-items: stretch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-copy h1,
.section-heading h2,
.download-section h2,
.contact-section h2 {
    margin: 10px 0 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 0.96;
}

.hero-text,
.feature-grid p,
.package-card p,
.download-section p,
.site-footer p,
.form-note {
    color: var(--muted);
    line-height: 1.7;
}

.mini-stats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-stats div,
.package-card,
.feature-grid article,
.spotlight-card {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.mini-stats div {
    padding: 18px;
}

.mini-stats strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.mini-stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-card {
    display: flex;
    align-items: stretch;
}

.spotlight-card {
    width: 100%;
    padding: 28px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.88));
}

.spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8b3e21;
    font-size: 0.78rem;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.spotlight-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-top: 24px;
}

.spotlight-card ul,
.package-card ul {
    margin: 20px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.section-heading.left {
    text-align: left;
}

.feature-grid,
.package-grid {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.package-card {
    padding: 24px;
}

.package-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.package-card.featured {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.9));
    transform: translateY(-8px);
}

.package-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.08);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.download-section,
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 10px 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(6px);
}

.auth-panel {
    position: relative;
    width: min(560px, calc(100vw - 24px));
    margin: 5vh auto 0;
    padding: 26px;
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.close-auth {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.auth-tab {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-tab.active {
    background: var(--ink);
    color: white;
}

.selected-plan {
    color: var(--accent);
    font-weight: 800;
}

.selected-plan.hidden,
.auth-form,
.auth-modal.hidden {
    display: none;
}

.auth-form.active {
    display: grid;
    gap: 10px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.14);
    background: white;
    font: inherit;
}

.form-message {
    min-height: 20px;
    font-size: 0.92rem;
}

.form-message.error {
    color: #b42318;
}

.form-message.success {
    color: #0f766e;
}

.solid-btn:hover,
.outline-btn:hover,
.ghost-btn:hover,
.auth-tab:hover {
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .topbar,
    .hero-section,
    .download-section,
    .contact-section,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .feature-grid,
    .package-grid,
    .mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topnav {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 14px;
    }

    .hero-section,
    .feature-section,
    .packages-section,
    .download-section,
    .contact-section {
        padding: 24px;
        border-radius: 24px;
    }

    .feature-grid,
    .package-grid,
    .mini-stats {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .section-heading h2,
    .download-section h2,
    .contact-section h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .top-actions {
        width: 100%;
    }

    .top-actions a,
    .top-actions button,
    .hero-actions a,
    .hero-actions button,
    .download-actions a,
    .download-actions button,
    .contact-actions a,
    .contact-actions button {
        width: 100%;
    }
}
