:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #6b7280;
    /* gray-500 */
    --border: #e5e7eb;
    /* gray-200 */
    --surface: #f8f9fa;
    --accent: #ff8c00;
    --accent-darker: #de7c04;
    --accent-600: #e67c00;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

section {
    scroll-margin-top: 72px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo img {
    width: 28px;
    height: 28px;
}

nav {
    display: flex;
    gap: 28px;
}

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

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

.cta-button {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    background: transparent;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 auto 20px;
    color: var(--text);
    max-width: 20ch;
}

.hero .subhead {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--accent-darker);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform .05s ease, background .2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent-600);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
    font-size: 18px;
    color: var(--muted);
    font-style: italic;
    background: linear-gradient(180deg, #fafafa, #f5f7fa);
}

/* Hero visual overlay */
.hero-visual {
    position: relative;
    margin: 0 auto;
    max-width: min(100%, 1000px);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafafa, #f5f7fa);
    /* Tweakable overlay distances in design points (JS scales to px) */
    --overlay-start: 270;
    /* pts relative to base image 1x */
    --overlay-end: 20;
    /* pts relative to base image 1x */
    /* Particle system defaults (design points for position/size; JS scales to px) */
    --particles-x: 1164;
    /* rect origin (design pts, 1x) */
    --particles-y: 577;
    --particles-w: 323;
    --particles-h: 103;
    --particles-color: #0079FF;
    /* star color */
    --particles-rate: 2.0;
    /* spawns per second */
    --particles-min-speed: 40;
    /* px/s before scaling */
    --particles-max-speed: 140;
    /* px/s before scaling */
    --particles-life: 1400;
    /* ms */
    --particles-size: 16;
    /* initial px before scaling */
    --particles-scale-end: 0.3;
    /* end scale factor */
    --particles-max-count: 80;
    /* max particles alive */
    --particles-icon: url('images/star.svg');
    --particles-enabled: 1;
    /* 0 disables entirely */
    --particles-respect-reduced-motion: 1;
    /* 1 honors prefers-reduced-motion, 0 ignores */
    --particles-anchor: base;
    /* 'base' or 'overlay' */
    --particles-offset-x: 0;
    /* additional px offset applied after scaling */
    --particles-offset-y: 0;
    --particles-design-scale: 1;
    /* set to 2 if your coords are from @2x mocks */
    --particles-debug: none;
    /* temporarily enable debug rectangle */
}

.hero-visual img {
    display: block;
    --base-design-width: 0;
    /* 1x design width of hero image (px). If >0, used for exact scaling */
    --base-design-height: 0;
    /* optional; usually not needed if aspect ratio preserved */
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.hero-visual .hero-base {
    position: relative;
    z-index: 1;
}

.hero-visual .hero-overlay {
    position: absolute;
    inset: 0 auto auto 0;
    /* top:0; left:0 */
    transform: translateX(var(--overlay-offset, 270px));
    z-index: 2;
    will-change: transform;
    /* Ensure smooth sub-pixel rendering */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Particle overlay layer */
.hero-visual .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-visual .hero-particles::before {
    content: '';
    position: absolute;
    left: var(--dbg-x, -9999px);
    top: var(--dbg-y, -9999px);
    width: var(--dbg-w, 0px);
    height: var(--dbg-h, 0px);
    border-radius: 4px;
    display: var(--particles-debug, none);
}

.hero-visual .hero-particles .particle {
    position: absolute;
    width: var(--size, 16px);
    height: var(--size, 16px);
    opacity: var(--opacity, 1);
    transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--scale, 1)) rotate(var(--rotation, 0deg));
    will-change: transform, opacity;
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--surface);
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.feature p {
    color: var(--muted);
    line-height: 1.55;
}

/* New three‑pillar feature list styling */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.features-list .feature-group {
    position: relative;
    background: linear-gradient(180deg, var(--bg), rgba(255, 255, 255, 0.65));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 14px -4px rgba(0, 0, 0, 0.05);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    overflow: hidden;
}

.features-list .feature-group::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 10% 0%, rgba(255, 140, 0, 0.12), transparent 70%);
    pointer-events: none;
    opacity: .85;
}

.features-list .feature-group:hover {
    border-color: rgba(255, 140, 0, 0.55);
    box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.features-list .feature-group h3 {
    position: relative;
    z-index: 1;
    font-size: 17px;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.features-list .feature-group h3::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.35), transparent 70%);
    margin-left: 8px;
}

.features-list .feature-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.features-list .feature-group li {
    position: relative;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--muted);
}

.features-list .feature-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .features-list {
        gap: 20px;
    }

    .features-list .feature-group {
        padding: 20px 18px 18px;
    }

    .features-list .feature-group li {
        font-size: 14px;
    }
}

/* How it works */
.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text);
}

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

.step {
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    color: var(--muted);
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--surface);
}

.pricing h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text);
}

.pricing-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.price {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.pricing-details {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* Download */
.download {
    padding: 64px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.download h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

.download-note {
    text-align: center;
    color: var(--muted);
    margin-bottom: 20px;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

/* Enhanced Pricing Styles for Dynamic Products */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-plan {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pricing-plan.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-plan.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.pricing-plan h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.pricing-plan .price {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    line-height: 1;
}

.pricing-plan .price .period {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text);
    font-size: 16px;
}

.checkout-button {
    width: 100%;
    margin-top: 32px;
}

/* Loading states */
.pricing-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pricing-loading p {
    color: var(--muted);
    font-size: 16px;
}

.pricing-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #fef3cd;
    border: 1px solid #fde047;
    border-radius: 8px;
    margin-bottom: 24px;
}

.pricing-error p {
    color: #92400e;
    font-weight: 500;
}

/* Mobile responsiveness for enhanced pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-plan {
        padding: 32px 24px;
    }

    .pricing-plan.featured {
        transform: none;
    }

    .pricing-plan.featured:hover {
        transform: translateY(-4px);
    }

    .pricing-plan .price {
        font-size: 36px;
    }
}

/* New pricing cards */
.pricing-intro {
    text-align: center;
    margin: 0 auto 44px;
    max-width: 720px;
    color: var(--muted);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: stretch;
    max-width: 860px;
    margin: 0 auto 36px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--bg), rgba(255, 255, 255, 0.75));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 20px -6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: box-shadow .35s ease, border-color .35s ease, transform .3s ease;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 140, 0, .10), transparent 70%);
    opacity: .9;
    pointer-events: none;
    z-index: 0;
}

.plan-card:hover {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.plan-card--featured {
    border: 1px solid rgba(255, 140, 0, 0.55);
    background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 230, 200, 0.55) 140%);
    box-shadow: 0 4px 22px -4px rgba(255, 140, 0, 0.45), 0 2px 8px rgba(0, 0, 0, .08);
}

.plan-card--featured::before {
    background: radial-gradient(120% 100% at 15% 0%, rgba(255, 140, 0, .25), transparent 70%);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px -2px rgba(255, 140, 0, .55), 0 0 0 1px rgba(255, 255, 255, .4) inset;
}

.plan-head {
    margin-bottom: 14px;
}

.plan-title {
    font-size: 20px;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.plan-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 18px;
}

.plan-price-amount {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.plan-price-period {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

.plan-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14.5px;
    color: var(--muted);
}

.plan-features li {
    position: relative;
    padding-left: 0;
    line-height: 1.4;
}

.plan-features li::before {
    content: none;
}

.plan-cta {
    margin-top: auto;
    width: 100%;
}

.pricing-extras {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.pricing-extras .guarantee {
    font-weight: 600;
    letter-spacing: .3px;
    margin: 0;
    color: var(--text);
}

.pricing-extras .license-note {
    margin: 0;
}

@media (max-width:760px) {
    .pricing-plans {
        gap: 24px;
    }

    .plan-card {
        padding: 24px 22px 22px;
    }

    .plan-price-amount {
        font-size: 40px;
    }

    .plan-badge {
        transform: translate(-50%, -40%);
    }
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text);
}

.faq-item {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    color: var(--muted);
    font-size: 16px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
}

footer .container {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--muted);
    text-decoration: underline;
}

/* Common utility used on legal pages */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.prose {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20pt;
}

h1,
h2,
h3 {
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 24px 0 12px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

p {
    margin: 12px 0;
    color: var(--text);
}

code {
    padding: .1em .3em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(0, 0, 0, .03);
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 14px;
    }

    nav {
        order: 2;
    }

    .hero {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subhead {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0c0f;
        --text: #e5e7eb;
        --muted: #9aa3af;
        --border: #1f2937;
        --surface: #111318;
    }

    header {
        background: rgba(11, 12, 15, 0.6);
    }

    .cta-button:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    /* Success page dark mode styles */

    .license-card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .status-item.active {
        background: #155724;
        color: #d4edda;
    }

    .status-item.active .status-dot {
        background: #d4edda;
    }

    .download-highlight {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        box-shadow: 0 8px 24px rgba(255, 140, 0, 0.15);
    }

    .hero-image {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    }

    .hero-visual {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    }

    .features-list .feature-group {
        background: linear-gradient(180deg, #14171d, #111318 70%);
        box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    }

    .features-list .feature-group::before {
        background: radial-gradient(120% 90% at 10% 0%, rgba(255, 140, 0, 0.18), transparent 70%);
        opacity: 1;
    }

    .features-list .feature-group li::before {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Dark pricing cards */
    .plan-card {
        background: linear-gradient(180deg, #14171d, #101216 85%);
        border: 1px solid #262f3d;
        box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    }

    .plan-card::before {
        background: radial-gradient(130% 100% at 0% 0%, rgba(255, 140, 0, .18), transparent 70%);
    }

    .plan-card--featured {
        background: linear-gradient(180deg, #181d24, #14171d 85%);
        border-color: rgba(255, 140, 0, .65);
        box-shadow: 0 4px 26px -6px rgba(255, 140, 0, .5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }

    .plan-card--featured::before {
        background: radial-gradient(120% 100% at 15% 0%, rgba(255, 140, 0, .35), transparent 70%);
    }

    .plan-features li::before {
        box-shadow: none;
    }

    .pricing-extras .guarantee {
        color: var(--text);
    }
}