/* ============================================
   MERISE Studio — Landing page (waitlist + pricing)
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #dbeafe;
    --accent: #d97706;
    --accent-soft: #fef3c7;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.18);
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 17px;
}
.brand svg { width: 28px; height: 28px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #f1f5f9; }
.btn[disabled] {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    border-color: transparent;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(217, 119, 6, 0.10), transparent 60%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(1.4); }
}
.hero h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pitch {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}
.pitch strong { color: var(--text); font-weight: 600; }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.cta-note {
    font-size: 13px;
    color: var(--text-light);
}
.cta-note .soon {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Mockup ---------- */
.mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
    transition: transform .35s ease;
}
.mockup:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}
.mockup-bar .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.mockup-bar .dot.r { background: #ef4444; }
.mockup-bar .dot.y { background: #eab308; }
.mockup-bar .dot.g { background: #22c55e; }
.mockup-bar .url {
    margin-left: 12px;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    max-width: 360px;
}
.mockup-canvas {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(#f8fafc, #f1f5f9),
        repeating-linear-gradient(0deg, transparent 0 23px, rgba(15,23,42,.05) 23px 24px),
        repeating-linear-gradient(90deg, transparent 0 23px, rgba(15,23,42,.05) 23px 24px);
    background-blend-mode: normal, multiply, multiply;
    position: relative;
}
.mockup-canvas svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 12px;
}
section .lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px;
    font-size: 17px;
}

/* ---------- Features ---------- */
.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.feature-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 10px;
    margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
    font-size: 17px;
    margin-bottom: 8px;
}
.feature p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    text-align: center;
    padding: 24px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing {
    background: var(--bg-dark);
    color: #e2e8f0;
}
.pricing h2 { color: #fff; }
.pricing .lead { color: #94a3b8; }

/* Plan principal — carte mise en avant */
.pricing-main {
    max-width: 460px;
    margin: 0 auto 64px;
}
.pricing-card {
    position: relative;
    padding: 36px 32px;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
}
.pricing-card-main {
    border: 2px solid var(--primary);
}
.pricing-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text);
}
.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.price-period {
    color: var(--text-muted);
    font-weight: 500;
}
.price-yearly {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.features-list {
    list-style: none;
    margin-bottom: 28px;
}
.features-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
.features-list li.trial {
    color: var(--accent);
    font-weight: 600;
}
.features-list li.trial::before {
    content: "★";
    background: var(--accent-soft);
    color: var(--accent);
}

/* Add-ons */
.addons-header {
    text-align: center;
    margin-bottom: 32px;
}
.addons-header h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}
.addons-header p {
    color: #94a3b8;
    font-size: 15px;
}
.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.addon-card {
    position: relative;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.addon-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(37, 99, 235, 0.5);
}
.addon-card-featured {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.4);
}
.addon-card-soon {
    background: transparent;
    border-style: dashed;
}
.addon-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.addon-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    margin-bottom: 14px;
}
.addon-icon svg { width: 22px; height: 22px; }
.addon-card h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}
.addon-card p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.addon-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.addon-price span {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}
.addon-vote a {
    font-size: 15px;
    color: var(--accent-soft);
    border-bottom: 1px dashed var(--accent-soft);
    padding-bottom: 2px;
}
.addon-vote a:hover { color: #fff; text-decoration: none; }

.pricing-foot {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 14px;
}
.pricing-foot strong { color: #e2e8f0; }

/* ---------- Waitlist form ---------- */
.waitlist {
    text-align: center;
}
.waitlist-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.waitlist-form {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}
.waitlist-form input[type="email"] {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.waitlist-form input[type="email"]:disabled { opacity: .6; }
.waitlist-privacy {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-light);
}
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}
.form-message.show { display: block; }
.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- Footer ---------- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { padding: 56px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .mockup { transform: none; }
    .features-grid, .steps { grid-template-columns: 1fr; }
    .addons-grid { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
    .nav-links a:not(.btn) { display: none; }
    .waitlist-form { flex-direction: column; }
    .waitlist-card { padding: 28px; }
    .pricing-card { padding: 28px; }
    .price-amount { font-size: 40px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .addons-grid { grid-template-columns: repeat(2, 1fr); }
}
