:root {
    --red: #e93124;
    --red-hover: #c7281d;
    --red-light: #fef2f2;
    --dark: #1c1c1c;
    --dark-mid: #2e2e2e;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #888;
    --bg-page: #f5f5f5;
    --bg-card: #ffffff;
    --border: #ddd;
    --border-light: #eee;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1140px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
    --transition-fast: 0.15s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-primary);
    background: var(--bg-card);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ─── Container & Section ─── */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--gray {
    background: var(--bg-page);
}

.section--dark {
    background: var(--dark);
    color: #fff;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-stack);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
    background: var(--red);
    color: #fff;
}

.btn--primary:hover {
    background: var(--red-hover);
}

.btn--outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn--outline:hover {
    background: var(--red);
    color: #fff;
}

.btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn--white {
    background: #fff;
    color: var(--red);
}

.btn--white:hover {
    background: rgba(255,255,255,0.9);
}

/* ─── Cards ─── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-card);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* ─── Navbar ─── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand svg {
    width: 22px;
    height: 22px;
    stroke: var(--red);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.navbar-links a:hover {
    color: var(--red);
}

.navbar-links a.btn--primary {
    color: #fff;
}

.navbar-links a.btn--primary:hover {
    color: #fff;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ─── Hero ─── */

.hero {
    padding: 8rem 0 5rem;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-screenshot {
    width: 100%;
    max-width: 900px;
    margin: 3.5rem auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* ─── Pain Points ─── */

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ─── Feature Pillars ─── */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ─── Feature Details ─── */

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail--flipped .feature-detail-text {
    order: 2;
}

.feature-detail--flipped .feature-detail-image {
    order: 1;
}

.feature-detail-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.feature-detail-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.feature-detail-text > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.feature-list li svg {
    width: 18px;
    height: 18px;
    stroke: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-screenshot {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
}

.hero-screenshot {
    cursor: pointer;
}

/* ─── Lightbox ─── */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ─── Manifest Intelligence (AI) ─── */

.ai-header {
    margin-bottom: 3rem;
}

.ai-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    background: var(--red-light);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ai-card {
    position: relative;
}

.ai-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #f97316, #facc15);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.ai-card:hover::before {
    opacity: 1;
}

/* ─── Integrations ─── */

.integrations-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.integration-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--bg-page);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.integration-item:hover .integration-icon {
    border-color: var(--red);
}

.integration-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-secondary);
}

/* ─── Why Manifest (Legacy vs Modern) ─── */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
}

.why-item svg {
    width: 32px;
    height: 32px;
    stroke: var(--red);
    margin-bottom: 1rem;
}

.why-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.trust-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
}

.trust-cards--single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.trust-card {
    background: var(--dark-mid);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: left;
}

.trust-card blockquote {
    font-size: 1rem;
    font-style: italic;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.trust-card cite {
    font-size: 0.85rem;
    color: #888;
    font-style: normal;
}

/* ─── Final CTA ─── */

.cta-final {
    background: var(--red);
    color: #fff;
    padding: 5rem 0;
}

.cta-final h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ─── Footer ─── */

.footer {
    background: var(--dark);
    color: #aaa;
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .navbar-brand {
    font-size: 1.1rem;
    color: #fff;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: #777;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: #888;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--dark-mid);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
}

/* ─── Scroll Animations ─── */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive: Tablet ─── */

@media (max-width: 1024px) {
    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-detail {
        gap: 2.5rem;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Responsive: Mobile ─── */

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .navbar-links.open {
        display: flex;
    }

    .hero {
        padding: 6.5rem 0 3rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .pain-grid,
    .pillar-grid,
    .why-grid,
    .ai-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-detail--flipped .feature-detail-text,
    .feature-detail--flipped .feature-detail-image {
        order: unset;
    }

    .trust-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-final h2 {
        font-size: 1.5rem;
    }

    .integrations-grid {
        gap: 2rem;
    }
}
