:root {
    --morandi-accent: #94A6AB;
    --morandi-green: #8CB399;
    --morandi-blue: #8CA6BF;
    --morandi-purple: #A68CB3;
    --morandi-orange: #D9B38C;
    --morandi-red: #BF8C8C;
    --morandi-teal: #7ABFB0;
    --morandi-text: #3A3A3A;
    --morandi-secondary: #8C8C8C;
    --morandi-bg: #F7F6F4;
    --morandi-card: #FFFFFF;
    --morandi-border: #E8E6E3;
    --gradient-primary: linear-gradient(135deg, #94A6AB 0%, #8CA6BF 50%, #A68CB3 100%);
    --gradient-hero: linear-gradient(160deg, #2C3E50 0%, #34495E 40%, #3D566E 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

*,
*::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;
    color: var(--morandi-text);
    background: var(--morandi-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ========== Hero ========== */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(148, 166, 171, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(140, 166, 191, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon-img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Inline Premium tag (used in body sections) */
.tag-premium {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(217, 179, 140, 0.18);
    color: #B07F3F;
    border: 1px solid rgba(217, 179, 140, 0.5);
    vertical-align: middle;
    margin-left: 6px;
}

/* App Store Badge */
.appstore-link {
    display: inline-block;
    margin-top: 40px;
    transition: opacity 0.2s ease;
}

.appstore-link:hover {
    opacity: 0.8;
}

.appstore-link img {
    height: 48px;
}

.hero-meta {
    margin-top: 22px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta b {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* ========== Container & Section ========== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding: 72px 0;
}

.eyebrow {
    text-align: center;
    color: var(--morandi-accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--morandi-secondary);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Highlights ========== */
.highlights {
    background: var(--morandi-card);
    border-top: 1px solid var(--morandi-border);
    border-bottom: 1px solid var(--morandi-border);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.highlight-item {
    padding: 12px;
}

.highlight-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--morandi-secondary);
    margin-top: 4px;
}

/* ========== Feature Cards ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--morandi-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--morandi-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1;
}

.feature-icon--compress {
    background: linear-gradient(135deg, var(--morandi-accent), var(--morandi-blue));
}

.feature-icon--convert {
    background: linear-gradient(135deg, var(--morandi-green), var(--morandi-teal));
}

.feature-icon--pdf {
    background: linear-gradient(135deg, var(--morandi-red), var(--morandi-orange));
}

.feature-icon--private {
    background: linear-gradient(135deg, var(--morandi-purple), var(--morandi-blue));
}

.feature-icon--batch {
    background: linear-gradient(135deg, var(--morandi-blue), var(--morandi-teal));
}

.feature-icon--macos {
    background: linear-gradient(135deg, var(--morandi-orange), var(--morandi-green));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--morandi-secondary);
    line-height: 1.65;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.feature-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--morandi-bg);
    color: var(--morandi-secondary);
}

.feature-tag--pro {
    background: var(--morandi-orange);
    color: #fff;
}

/* ========== Two-column split ========== */
.section--alt-bg {
    background: var(--morandi-card);
    border-top: 1px solid var(--morandi-border);
    border-bottom: 1px solid var(--morandi-border);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ========== Format boxes ========== */
.format-box {
    background: var(--morandi-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--morandi-border);
}

.format-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.format-box > p {
    font-size: 0.9rem;
    color: var(--morandi-secondary);
    margin-bottom: 18px;
}

.format-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--morandi-bg);
    border: 1px solid var(--morandi-border);
    color: var(--morandi-text);
}

.format-pill--keep {
    background: rgba(140, 179, 153, 0.16);
    border-color: rgba(140, 179, 153, 0.4);
    color: #4f7a5c;
}

.format-note {
    font-size: 0.8rem;
    color: var(--morandi-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

/* ========== Engine table ========== */
.engine-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--morandi-border);
    border-radius: var(--radius);
    background: var(--morandi-card);
    box-shadow: var(--shadow-sm);
}

.engine-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    min-width: 640px;
}

.engine-table th,
.engine-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--morandi-border);
    vertical-align: top;
}

.engine-table th {
    color: var(--morandi-secondary);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--morandi-bg);
}

.engine-table tr:last-child td {
    border-bottom: none;
}

.engine-table td b {
    color: var(--morandi-text);
    font-weight: 600;
}

.engine-table td:nth-child(2) {
    color: var(--morandi-secondary);
}

.mode-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.mode-pill--lossless {
    background: rgba(140, 179, 153, 0.18);
    color: #4f7a5c;
}

.mode-pill--lossy {
    background: rgba(217, 179, 140, 0.22);
    color: #9c6f33;
}

.mode-pill--both {
    background: rgba(122, 191, 176, 0.2);
    color: #3f8576;
}

.section-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--morandi-secondary);
    margin-top: 20px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Check lists ========== */
.checks {
    list-style: none;
    display: grid;
    gap: 14px;
}

.checks li {
    position: relative;
    padding-left: 30px;
    font-size: 0.92rem;
    color: var(--morandi-secondary);
    line-height: 1.6;
}

.checks li b {
    color: var(--morandi-text);
    font-weight: 600;
}

.checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--morandi-green);
    font-weight: 700;
}

.checks code {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.82rem;
    background: var(--morandi-bg);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--morandi-text);
}

/* ========== Pricing ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--morandi-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--morandi-border);
    text-align: center;
    position: relative;
}

.pricing-card--pro {
    border-color: var(--morandi-orange);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--morandi-orange);
}

.pricing-card--pro::before {
    content: 'One-Time Unlock';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--morandi-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
}

.pricing-tier {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--morandi-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.pricing-tier--pro {
    color: var(--morandi-orange);
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.82rem;
    color: var(--morandi-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    font-size: 0.88rem;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--morandi-text);
}

.pricing-features li::before {
    content: '✓';
    font-weight: 700;
    color: var(--morandi-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--morandi-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-features li.disabled::before {
    content: '✗';
    color: var(--morandi-red);
    text-decoration: none;
}

.pricing-features .pro-highlight {
    color: #B07F3F;
}

/* ========== FAQ ========== */
.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    background: var(--morandi-card);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    padding: 0 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.faq summary {
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq summary::after {
    content: '+';
    color: var(--morandi-accent);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq details[open] summary::after {
    content: '–';
}

.faq details p {
    margin: 0 0 20px;
    color: var(--morandi-secondary);
    font-size: 0.92rem;
}

/* ========== Final CTA ========== */
.cta-final {
    text-align: center;
}

.cta-final .section-title {
    margin-bottom: 16px;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--morandi-secondary);
    font-size: 0.82rem;
    border-top: 1px solid var(--morandi-border);
}

.footer a {
    color: var(--morandi-accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-credits {
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 0.76rem;
    color: var(--morandi-secondary);
    opacity: 0.85;
    line-height: 1.6;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero {
        padding: 72px 20px 56px;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .highlight-number {
        font-size: 1.7rem;
    }

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

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

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badges {
        gap: 8px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.3s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.4s;
}

.animate-in:nth-child(6) {
    animation-delay: 0.5s;
}
