@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --lp-accent: #2563eb;
    --lp-accent-hover: #1d4ed8;
    --lp-text: #0f172a;
    --lp-text-secondary: #475569;
    --lp-text-muted: #64748b;
    --lp-bg: #ffffff;
    --lp-bg-alt: #f8fafc;
    --lp-bg-page: #ffffff;
    --lp-border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
    :root:not(.light) {
        --lp-accent: #3b82f6;
        --lp-accent-hover: #60a5fa;
        --lp-text: #f1f5f9;
        --lp-text-secondary: #94a3b8;
        --lp-text-muted: #64748b;
        --lp-bg: #1e293b;
        --lp-bg-alt: #0f172a;
        --lp-bg-page: #0f172a;
        --lp-border: #334155;
    }
}

.dark-landing {
    --lp-accent: #3b82f6;
    --lp-accent-hover: #60a5fa;
    --lp-text: #f1f5f9;
    --lp-text-secondary: #94a3b8;
    --lp-text-muted: #64748b;
    --lp-bg: #1e293b;
    --lp-bg-alt: #0f172a;
    --lp-bg-page: #0f172a;
    --lp-border: #334155;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lp-text);
    background: var(--lp-bg-page);
    -webkit-font-smoothing: antialiased;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.lp-reveal {
    opacity: 1;
    transform: none;
}

.lp-reveal-enabled .lp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-reveal-enabled .lp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.lp-reveal-delay-1 { transition-delay: 0.1s; }
.lp-reveal-delay-2 { transition-delay: 0.2s; }
.lp-reveal-delay-3 { transition-delay: 0.3s; }
.lp-reveal-delay-4 { transition-delay: 0.35s; }
.lp-reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .lp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== NAV ===== */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
}

@media (prefers-color-scheme: dark) {
    .lp-nav {
        background: rgba(15,23,42,0.92);
    }
}
.dark-landing .lp-nav {
    background: rgba(15,23,42,0.92);
}

.lp-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.4px;
}

.lp-brand-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lp-nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--lp-text-secondary);
    transition: color 0.15s;
}

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

.lp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.lp-mobile-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--lp-text);
}


/* ===== BUTTONS ===== */
.lp-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--lp-accent);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.lp-btn-solid:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-1px);
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: transparent;
    color: var(--lp-text-secondary) !important;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-btn-ghost:hover {
    background: var(--lp-bg-alt);
    border-color: #cbd5e1;
    color: var(--lp-text) !important;
}

.lp-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.lp-btn-white {
    background: #fff;
    color: var(--lp-accent) !important;
}

.lp-btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* ===== HERO ===== */
.lp-hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}

@media (prefers-color-scheme: dark) {
    .lp-hero {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
}
.dark-landing .lp-hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.lp-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.lp-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37,99,235,0.08);
    color: var(--lp-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.lp-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: var(--lp-text);
}

.lp-hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--lp-text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
}

.lp-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.lp-hero-proof {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.lp-proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lp-text-muted);
    font-weight: 500;
}

.lp-proof-item svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
}

/* ===== HERO MOCKUP ===== */
.lp-hero-mockup {
    max-width: 900px;
    margin: 48px auto 0;
    perspective: 1000px;
}

.lp-mockup-frame {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}

.lp-mockup-frame:hover {
    transform: rotateX(0deg);
}

.dark-landing .lp-mockup-frame {
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
}

.lp-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--lp-bg-alt);
    border-bottom: 1px solid var(--lp-border);
}

.lp-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.dark-landing .lp-mockup-dot { background: #475569; }
.lp-mockup-dot:first-child { background: #f87171; }
.lp-mockup-dot:nth-child(2) { background: #fbbf24; }
.lp-mockup-dot:nth-child(3) { background: #34d399; }

.lp-mockup-content {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    min-height: 340px;
}

.lp-mockup-sidebar {
    padding: 0 0 16px;
    border-right: 1px solid #334155;
    background: #0f172a;
    color: #94a3b8;
}

.lp-mockup-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #334155;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.lp-mockup-sidebar-brand svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lp-mockup-sidebar-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 4px;
    padding: 12px 12px 0;
}

.lp-mockup-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin: 1px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.lp-mockup-sidebar-item.active {
    background: rgba(96,165,250,0.12);
    color: #60a5fa;
}

.lp-mockup-sidebar-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.lp-mockup-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-mockup-main-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 4px;
}

.lp-mockup-clause {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--lp-border);
    background: var(--lp-bg);
}

.lp-mockup-clause-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.lp-mockup-clause-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-mockup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
}

.lp-mockup-badge.green { background: #dcfce7; color: #16a34a; }
.lp-mockup-badge.amber { background: #fef3c7; color: #d97706; }
.lp-mockup-badge.red { background: #fee2e2; color: #dc2626; }

.dark-landing .lp-mockup-badge.green { background: rgba(22,163,74,0.15); }
.dark-landing .lp-mockup-badge.amber { background: rgba(217,119,6,0.15); }
.dark-landing .lp-mockup-badge.red { background: rgba(220,38,38,0.15); }

.lp-mockup-clause-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--lp-text-secondary);
}

.lp-mockup-clause-text .diff-add { background: #dcfce7; color: #16a34a; padding: 0 2px; border-radius: 2px; }
.lp-mockup-clause-text .diff-del { background: #fee2e2; color: #dc2626; text-decoration: line-through; padding: 0 2px; border-radius: 2px; }

.dark-landing .lp-mockup-clause-text .diff-add { background: rgba(22,163,74,0.15); }
.dark-landing .lp-mockup-clause-text .diff-del { background: rgba(220,38,38,0.15); }

.lp-mockup-panel {
    border-left: 1px solid var(--lp-border);
    background: var(--lp-bg-alt);
    display: flex;
    flex-direction: column;
}

.lp-mockup-panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-mockup-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-mockup-panel-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--lp-border);
    padding: 0 14px;
}

.lp-mockup-tab {
    font-size: 11px;
    font-weight: 500;
    color: var(--lp-text-muted);
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
    cursor: default;
}

.lp-mockup-tab.active {
    color: var(--lp-accent);
    border-bottom-color: var(--lp-accent);
    font-weight: 600;
}

.lp-mockup-panel-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-mockup-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-mockup-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-mockup-donut {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(#16a34a 0% 72%, #e2e8f0 72% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark-landing .lp-mockup-donut { background: conic-gradient(#34d399 0% 72%, #334155 72% 100%); }

.lp-mockup-donut-inner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lp-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
}

.lp-mockup-score-label {
    font-size: 11px;
    color: var(--lp-text-secondary);
    line-height: 1.4;
}

.lp-mockup-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid var(--lp-border);
    font-size: 11px;
}

.lp-mockup-stat-row:last-child { border-bottom: none; }

.lp-mockup-stat-label { color: var(--lp-text-secondary); flex: 1; }
.lp-mockup-stat-value { font-weight: 600; color: var(--lp-text); }

/* ===== SECTIONS ===== */
.lp-section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.lp-section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(37,99,235,0.06);
    color: var(--lp-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.lp-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.lp-section-header p {
    font-size: 17px;
    color: var(--lp-text-secondary);
}

/* ===== FEATURES ===== */
.lp-features {
    padding: 96px 24px;
    background: var(--lp-bg-alt);
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-feature-card {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.dark-landing .lp-feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.lp-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.lp-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lp-text-secondary);
}

/* ===== HOW IT WORKS ===== */
.lp-how {
    padding: 96px 24px;
}

.lp-steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}

.lp-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
}

.lp-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lp-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lp-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.lp-step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lp-text-secondary);
}

.lp-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 44px;
}

.lp-step-arrow svg {
    width: 28px;
    height: 28px;
    color: #cbd5e1;
}

/* ===== CTA ===== */
.lp-cta-section {
    padding: 0 24px 96px;
}

.lp-cta-box {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}

.lp-cta-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.lp-cta-box p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.lp-footer {
    border-top: 1px solid var(--lp-border);
    padding: 56px 24px 40px;
    background: var(--lp-bg-alt);
}

.lp-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.lp-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--lp-text);
}

.lp-footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: var(--lp-text-muted);
}

.lp-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-text);
    margin-bottom: 14px;
}

.lp-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--lp-text-secondary);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.lp-footer-col a:hover {
    color: var(--lp-accent);
}

.lp-footer-bottom {
    max-width: 1140px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--lp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--lp-text-muted);
}

.lp-footer-bottom a {
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.lp-footer-bottom a:hover {
    color: var(--lp-accent);
}

/* ===== MOBILE MENU ANIMATION ===== */
.lp-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.dark-landing .lp-mobile-menu {
    background: rgba(15,23,42,0.98);
}

.lp-mobile-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lp-mobile-menu a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--lp-text-secondary);
    padding: 12px 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.lp-mobile-menu a:hover,
.lp-mobile-menu a:active {
    background: var(--lp-bg-alt);
    color: var(--lp-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-mobile-toggle { display: block; }
    .lp-nav-inner { height: 56px; padding: 0 16px; }

    .lp-hero { padding: 100px 16px 48px; }
    .lp-hero h1 { font-size: 32px; letter-spacing: -0.8px; }
    .lp-hero-sub { font-size: 15px; margin-bottom: 28px; }
    .lp-hero-badge { font-size: 12px; padding: 5px 14px; margin-bottom: 18px; }

    .lp-hero-cta { flex-direction: column; gap: 10px; align-items: stretch; }
    .lp-hero-cta .lp-btn-lg { width: 100%; justify-content: center; padding: 14px 24px; }

    .lp-hero-mockup { margin-top: 32px; }
    .lp-mockup-content { grid-template-columns: 1fr; }
    .lp-mockup-sidebar, .lp-mockup-panel { display: none; }
    .lp-mockup-main { min-height: 200px; }

    .lp-features { padding: 64px 16px; }
    .lp-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .lp-feature-card { padding: 24px 20px; }
    .lp-feature-card:hover { transform: none; box-shadow: none; }

    .lp-how { padding: 64px 16px; }
    .lp-steps { flex-direction: column; align-items: center; gap: 0; }
    .lp-step { padding: 24px 16px; }
    .lp-step-arrow { display: none; }

    .lp-section-header { margin-bottom: 36px; }
    .lp-section-header h2 { font-size: 24px; }
    .lp-section-header p { font-size: 15px; }

    .lp-cta-section { padding: 0 16px 64px; }
    .lp-cta-box { padding: 36px 20px; border-radius: 16px; }
    .lp-cta-box h2 { font-size: 22px; }
    .lp-cta-box p { font-size: 15px; margin-bottom: 24px; }

    .lp-footer { padding: 40px 16px 32px; }
    .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .lp-footer-brand-col { grid-column: 1 / -1; }
    .lp-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .lp-hero h1 { font-size: 26px; letter-spacing: -0.5px; }
    .lp-hero-sub { font-size: 14px; }
    .lp-hero-proof { flex-direction: column; align-items: center; gap: 8px; }

    .lp-section-header h2 { font-size: 22px; }
    .lp-feature-card { padding: 20px 16px; }
    .lp-feature-icon { width: 40px; height: 40px; margin-bottom: 14px; }
    .lp-feature-icon svg { width: 20px; height: 20px; }
    .lp-feature-card h3 { font-size: 15px; }
    .lp-feature-card p { font-size: 13px; }

    .lp-step-num { width: 40px; height: 40px; font-size: 18px; margin-bottom: 14px; }
    .lp-step h3 { font-size: 15px; }
    .lp-step p { font-size: 13px; }

    .lp-cta-box h2 { font-size: 20px; }

    .lp-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Ensure touch targets are large enough */
@media (pointer: coarse) {
    .lp-btn-solid, .lp-btn-ghost { min-height: 44px; }
    .lp-mobile-menu a { min-height: 44px; display: flex; align-items: center; }
    .lp-nav-inner { height: 56px; }
}
