/* ===================================================
   MantelZicht - Landing Page Stylesheet
   =================================================== */

/* Reuse base tokens from app.css via inline fallbacks */
:root {
    --brand-primary: #6366f1;
    --brand-primary-hover: #4f46e5;
    --brand-secondary: #8b5cf6;
    --brand-accent: #06b6d4;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-family); color: #0f172a; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==== NAV ==== */
.landing-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .3s, box-shadow .3s;
}
.landing-nav.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-container {
    max-width: 1220px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 64px;
}

.nav-brand {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
    color: #0f172a;
}
.nav-brand i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: .875rem; font-weight: 500; color: #475569;
    transition: color .2s;
}
.nav-links a:hover { color: #6366f1; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-login {
    font-size: .875rem; font-weight: 500; color: #475569;
    padding: .5rem 1rem; border-radius: 8px; transition: all .2s;
}
.nav-login:hover { color: #6366f1; background: rgba(99,102,241,.06); }

.nav-register {
    font-size: .875rem; font-weight: 600; color: #fff;
    padding: .5rem 1.25rem; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
    transition: all .2s;
}
.nav-register:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }

.nav-toggle { display: none; cursor: pointer; background: none; border: none; font-size: 1.4rem; color: #475569; }

/* ==== HERO ==== */
.hero {
    padding: 8rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 60%; height: 150%;
    background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem; margin-bottom: 1.5rem;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    border-radius: 100px;
    font-size: .8rem; font-weight: 600;
    border: 1px solid rgba(99,102,241,.15);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem; color: #64748b;
    max-width: 560px; margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; font-size: 1rem; font-weight: 600;
    color: #fff; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
    transition: all .25s;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,.35); }

.hero-btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; font-size: 1rem; font-weight: 600;
    color: #475569; border-radius: 12px;
    background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: all .25s;
}
.hero-btn-secondary:hover { border-color: #6366f1; color: #6366f1; }

.hero-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    margin-bottom: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat .stat-value { font-size: 1.5rem; font-weight: 800; color: #0f172a; display: block; }
.hero-stat .stat-label { font-size: .8rem; color: #64748b; }

.hero-preview {
    max-width: 900px; margin: 0 auto;
    background: #1e293b; border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}
.preview-toolbar {
    display: flex; align-items: center; gap: .5rem;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid #334155;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.preview-title { font-size: .75rem; color: #64748b; }

.preview-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-bottom: 1rem;
}
.preview-kpi {
    background: #293548;
    border-radius: 8px;
    padding: .85rem;
}
.preview-kpi .kpi-label { font-size: .65rem; color: #64748b; display: block; }
.preview-kpi .kpi-val { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; }
.preview-kpi .kpi-val.green { color: #10b981; }
.preview-kpi .kpi-val.red { color: #ef4444; }

.preview-chart {
    background: #293548;
    border-radius: 8px;
    padding: 1rem;
    height: 140px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.5s ease forwards;
    transform-origin: bottom;
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ==== SECTIONS ==== */
.section {
    padding: 5rem 2rem;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-badge {
    display: inline-flex; padding: .35rem .9rem;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    border-radius: 100px;
    font-size: .75rem; font-weight: 600;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.section-header p { color: #64748b; font-size: 1rem; }

.section-alt { background: #f8fafc; }

/* ==== FEATURES ==== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all .3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: rgba(99,102,241,.2);
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: #64748b; line-height: 1.6; }

/* ==== SECURITY ==== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.security-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.security-icon {
    width: 40px; height: 40px;
    background: rgba(16,185,129,.1);
    color: #10b981;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.security-item h4 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.security-item p { font-size: .8rem; color: #64748b; }

/* ==== PRICING ==== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all .3s;
}
.pricing-card.featured {
    border-color: #6366f1;
    box-shadow: 0 8px 32px rgba(99,102,241,.15);
}
.pricing-card.coming-soon { opacity: .7; }

.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: .3rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: .7rem; font-weight: 600;
    border-radius: 100px;
}

.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: #64748b; }

.pricing-features { list-style: none; text-align: left; margin: 1.5rem 0; }
.pricing-features li {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem 0; font-size: .9rem; color: #334155;
}
.pricing-features li i { color: #10b981; font-size: .8rem; }

.pricing-btn {
    display: block; width: 100%;
    padding: .8rem;
    border-radius: 10px;
    font-size: .95rem; font-weight: 600;
    text-align: center;
    transition: all .2s;
    border: none; cursor: pointer;
}
.pricing-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.pricing-btn-primary:hover { box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.pricing-btn-disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

/* ==== ABOUT ==== */
.about-content { max-width: 700px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.05rem; color: #475569; line-height: 1.8; margin-bottom: 1rem; }
.about-highlight {
    font-style: italic; font-weight: 500; color: #6366f1;
    font-size: 1.1rem; margin-top: 1rem;
}

/* ==== CTA ==== */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* ==== CONTAINER ==== */
.container { max-width: 1100px; margin: 0 auto; }
.hero-content { max-width: 900px; margin: 0 auto; }

/* ==== STEPS / HOW IT WORKS ==== */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    position: relative;
    transition: all .3s;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: rgba(99,102,241,.2);
}
.step-number {
    position: absolute;
    top: -16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.step-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: .5rem auto 1rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p { font-size: .85rem; color: #64748b; line-height: 1.6; }

.step-arrow {
    color: #cbd5e1;
    font-size: 1.25rem;
}

/* ==== CTA (button) ==== */
.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: .75rem;
}
.cta-section p { font-size: 1.05rem; opacity: .9; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1rem 2.5rem;
    background: #fff; color: #6366f1;
    border-radius: 12px;
    font-size: 1rem; font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transition: all .25s;
    border: none; cursor: pointer;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }

/* ==== FOOTER ==== */
.landing-footer {
    padding: 4rem 2rem 2rem;
    background: #0f172a;
    color: #94a3b8;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.footer-brand i {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 1rem; }

.footer-col h4 { color: #e2e8f0; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .85rem; color: #64748b; transition: color .2s; }
.footer-links a:hover { color: #6366f1; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    max-width: 1100px; margin: 0 auto;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; width: 100%;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        padding: 1rem 2rem; gap: .5rem;
    }
    .nav-links.mobile-open .nav-actions { flex-direction: column; width: 100%; gap: .5rem; margin-top: .5rem; }
    .nav-links.mobile-open .nav-login,
    .nav-links.mobile-open .nav-register { text-align: center; width: 100%; }
    .hero { padding: 7rem 1.5rem 3rem; }
    .preview-dashboard { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .step-arrow { display: none; }
    .steps-grid { flex-direction: column; }
    .step-card { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .preview-dashboard { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
