:root {
    --deep-bg: #140F1F;
    --primary-purple: #9C27B0;
    --lavender: #C084FC;
    --light-lavender: #E9D5FF;
    --soft-white: #F8F5FF;
    --dark-text: #1F2937;
    --section-bg: #FAFAFF;
    --border-color: #E5E7EB;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* ── Container ── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark-text);
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.nav-logo-text .brand-accent {
    color: var(--primary-purple);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-link-disabled {
    color: #C0C4CC;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--primary-purple);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: #7B1FA2;
    text-decoration: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    margin: 5px 0;
    transition: 0.2s;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-purple);
    color: #fff;
}

.btn-primary:hover {
    background: #7B1FA2;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--lavender);
    color: var(--primary-purple);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ── Hero ── */

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--light-lavender);
    color: var(--primary-purple);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-purple);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.25rem;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    letter-spacing: -0.02em;
    color: var(--deep-bg);
}

.hero h1 .brand-accent {
    color: var(--primary-purple);
}

.hero-sub {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-visual {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--deep-bg);
    border-radius: 16px;
    border: 1px solid #2D2640;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual-placeholder {
    color: #6B7280;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-visual-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.hero-visual-placeholder span {
    color: #9CA3AF;
}

/* ── Section shared ── */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--deep-bg);
    letter-spacing: -0.01em;
}

.section-header p {
    color: #6B7280;
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Features ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
    border-color: var(--lavender);
    box-shadow: 0 4px 24px rgba(156, 39, 176, 0.06);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--light-lavender);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-purple);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--deep-bg);
}

.feature-card p {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.feature-notes {
    margin-top: 0.75rem;
}

.feature-notes details {
    font-size: 0.8125rem;
    color: #6B7280;
}

.feature-notes summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-purple);
    font-size: 0.8125rem;
}

.feature-notes summary:hover {
    text-decoration: underline;
}

.feature-notes ul {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.feature-notes li {
    line-height: 1.5;
}

.feature-notes code {
    background: var(--light-lavender);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ── Features — "Also included" pills ── */

.features-more {
    text-align: center;
    margin-top: 2.5rem;
}

.features-more-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.features-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
}

.feature-pill {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
}

/* ── Pricing ── */

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-tab {
    padding: 0.625rem 1.75rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pricing-tab:hover {
    color: var(--dark-text);
}

.pricing-tab.active {
    background: #fff;
    color: var(--dark-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pricing-panel {
    display: none;
}

.pricing-panel.active {
    display: block;
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 780px;
    margin: 0 auto;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 40px rgba(156, 39, 176, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--deep-bg);
}

.pricing-card .pricing-desc {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    margin-bottom: 0.25rem;
}

.pricing-amount .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-bg);
    letter-spacing: -0.02em;
}

.pricing-amount .period {
    color: #6B7280;
    font-size: 1rem;
}

.pricing-annual {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.pricing-savings {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0 0 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--light-lavender);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239C27B0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card-contact {
    border-style: dashed;
    display: flex;
    flex-direction: column;
}

.pricing-card-contact-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-card-contact-body p {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: #6B7280;
    font-size: 0.9375rem;
}

.pricing-note a {
    font-weight: 500;
}

/* ── Download ── */

.download-section {
    text-align: center;
}

.download-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--deep-bg);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    color: #fff;
}

.download-card h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.download-card p {
    color: #9CA3AF;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.download-card .btn-primary {
    background: var(--lavender);
    color: var(--deep-bg);
    font-weight: 700;
    margin-bottom: 2rem;
}

.download-card .btn-primary:hover {
    background: #D8B4FE;
}

.system-reqs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.system-req {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.system-req svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* ── Footer ── */

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    color: #6B7280;
    font-size: 0.875rem;
}

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

.footer-brand p {
    margin-top: 0.75rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #6B7280;
    font-size: 0.875rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    font-size: 0.75rem;
    color: #9CA3AF;
    max-width: 640px;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #9CA3AF;
    transition: color 0.15s;
}

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

.footer-socials svg {
    width: 20px;
    height: 20px;
}

/* ── Responsive ── */

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

    .pricing-grid-2,
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-sub {
        font-size: 1.0625rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .system-reqs {
        flex-direction: column;
        align-items: center;
    }
}

/* ── Legal pages ── */

.legal-page {
    padding: 4rem 0 5rem;
}

.legal-container {
    max-width: 780px;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--deep-bg);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.legal-meta {
    color: #6B7280;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-page h2 {
    font-size: 1.375rem;
    color: var(--deep-bg);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-page h3 {
    font-size: 1.0625rem;
    color: var(--dark-text);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-page p {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.legal-page li {
    margin-bottom: 0.25rem;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--section-bg);
    font-weight: 600;
    color: var(--dark-text);
}

.legal-table td {
    color: #374151;
}

.legal-rights {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #6B7280 !important;
    font-size: 0.875rem !important;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 2.5rem 0 3.5rem;
    }

    .legal-page h1 {
        font-size: 1.75rem;
    }

    .legal-page h2 {
        font-size: 1.1875rem;
    }
}

/* ── Error page ── */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--lavender);
}

.error-page p {
    color: #6B7280;
    margin: 1rem 0 2rem;
}
