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

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --accent: #06b6d4;
    --accent-light: #ecfeff;
    --bg: #f8fafc;
    --bg-subtle: #f1f5f9;
    --card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;
    --success: #059669;
    --success-light: #ecfdf5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Landing : Navigation ── */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link-cta {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link-cta:hover {
    background: rgba(255,255,255,0.25);
}

.nav-user {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Landing : Hero ── */

.landing-hero {
    position: relative;
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 30%, #4f46e5 70%, #6366f1 100%);
    color: white;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
    animation: fadeDown 0.6s ease-out;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.landing-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.landing-hero h1 .gradient-text {
    background: linear-gradient(135deg, #67e8f9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    max-width: 620px;
    margin: 0 auto 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.landing-hero p {
    font-size: 1.05rem;
    opacity: 0.75;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out 0.25s both;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,255,255,0);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 0 2px rgba(255,255,255,0.1);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── Landing : Avant / Après (hover reveal) ── */

.compare-section {
    padding: 4rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.compare-reveal {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 85% at center, black 60%, transparent 100%);
}

.compare-reveal img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compare-img-before {
    z-index: 1;
    opacity: 1;
    transition: opacity 1.2s ease;
}

.compare-img-after {
    z-index: 2;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.compare-reveal:hover .compare-img-before {
    opacity: 0;
}

.compare-reveal:hover .compare-img-after {
    opacity: 1;
}

.compare-label {
    position: absolute;
    top: 16px;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 5;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.compare-label-before {
    left: 16px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.compare-label-after {
    right: 16px;
    background: rgba(5, 150, 105, 0.9);
    color: white;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.compare-reveal:hover .compare-label-before {
    opacity: 0;
}

.compare-reveal:hover .compare-label-after {
    opacity: 1;
}

.compare-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.compare-hint span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    animation: pulseHint 2.5s ease-in-out infinite;
}

.compare-reveal:hover .compare-hint {
    opacity: 0;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

.compare-bottom-text {
    text-align: center;
    margin-top: 1.5rem;
}

.compare-bottom-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .compare-reveal {
        aspect-ratio: 4 / 3;
    }
    .compare-section {
        padding: 3rem 1rem 1.5rem;
    }
}

/* ── Landing : Stats bar ── */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    background: var(--card);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.5s ease-out 0.4s both;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ── Landing : Section titles ── */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .overline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Landing : Features ── */

.features-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-glow);
    transform: translateY(-2px);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.icon-blue { background: #eef2ff; color: #4f46e5; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-cyan { background: #ecfeff; color: #0891b2; }
.icon-green { background: #ecfdf5; color: #059669; }
.icon-orange { background: #fff7ed; color: #ea580c; }
.icon-pink { background: #fdf2f8; color: #db2777; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}

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

/* ── Landing : How it works ── */

.how-section {
    background: var(--bg-subtle);
    padding: 4rem 1.5rem;
}

.how-steps {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.how-step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
}

.how-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.how-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.how-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Landing : Pricing ── */

.pricing-section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-equivalent {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.pricing-argument {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 2.5em;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.pricing-btn-primary {
    background: var(--primary);
    color: white;
}

.pricing-btn-primary:hover {
    background: var(--primary-hover);
}

.pricing-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.pricing-btn-outline:hover {
    background: var(--primary-light);
}

.pricing-trial-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Landing : CTA bottom ── */

.cta-section {
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-box {
    max-width: 650px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
}

.cta-box .btn-cta {
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
}

/* ── Landing : Footer ── */

.landing-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}

.landing-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}
.landing-footer a:hover {
    color: var(--primary);
}

/* ── Formulaires (inscription, etc.) ── */

.form-page {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: var(--bg-subtle);
}

.form-container {
    width: 100%;
    max-width: 560px;
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: fadeUp 0.5s ease-out;
}

.form-container h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.form-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--card);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group { flex: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }

.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.form-footer a:hover { text-decoration: underline; }

.required::after {
    content: ' *';
    color: var(--danger);
}

/* ── Animations ── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Hamburger menu mobile (CSS-only) ── */

.menu-toggle-input {
    display: none;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    transition: var(--transition);
    z-index: 20;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-light span {
    background: white;
}

.hamburger-btn:hover {
    background: rgba(0,0,0,0.05);
}

.hamburger-light:hover {
    background: rgba(255,255,255,0.15);
}

/* Responsive */

@media (max-width: 768px) {
    .landing-hero { padding: 6rem 1.25rem 4rem; }
    .landing-hero h1 { font-size: 2.25rem; }
    .landing-hero p { font-size: 1.05rem; }
    .stats-bar { flex-direction: column; gap: 0.75rem; align-items: center; margin-top: -1.5rem; }
    .stat { padding: 1rem 2rem; }
    .how-steps { flex-direction: column; gap: 1.5rem; }
    .features { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .form-container { padding: 1.5rem; }
    .nav { padding: 1rem; flex-wrap: wrap; }
    .hero-actions { flex-direction: column; align-items: center; }

    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
        padding-top: 1rem;
        order: 3;
    }

    .menu-toggle-input:checked ~ .nav-links {
        display: flex;
    }

    .menu-toggle-input:checked ~ .hamburger-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle-input:checked ~ .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-input:checked ~ .hamburger-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        padding: 0.6rem 1rem;
        border-radius: var(--radius);
    }

    .nav-user {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-hero h1 { font-size: 1.85rem; }
    .section-title h2 { font-size: 1.5rem; }
}

/* ── Article / SEO pages ── */

.nav-dark {
    position: relative;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.nav-dark .nav-logo {
    color: var(--text);
}

.nav-dark .nav-link {
    color: var(--text-secondary);
}

.nav-dark .nav-link:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.nav-dark .nav-link-cta {
    background: var(--primary);
    color: white;
    border: none;
}

.nav-dark .nav-link-cta:hover {
    background: var(--primary-hover);
}

.nav-dark .hamburger-btn span {
    background: var(--text);
}

.article-header {
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4f46e5 100%);
    color: white;
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 700px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.article-header .article-meta {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

.article-body {
    max-width: 760px;
    margin: -2rem auto 0;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 2;
}

.article-content {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 2.5rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.75rem 0 0.5rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.article-content strong {
    color: var(--text);
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    background: var(--primary-light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-example {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-example .example-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.article-example p {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.article-example ul {
    margin: 0.5rem 0 0 1rem;
}

.article-cta {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.article-cta h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    border: none;
    padding: 0;
    color: white;
}

.article-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-cta .btn-cta {
    font-size: 0.92rem;
    padding: 0.8rem 1.75rem;
    position: relative;
}

.article-related {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.article-related h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.related-link:hover {
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.related-link .related-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.related-link .related-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.landing-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.landing-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.landing-footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .article-header { padding: 3.5rem 1.25rem 2.5rem; }
    .article-header h1 { font-size: 1.75rem; }
    .article-content { padding: 1.75rem; }
    .article-content h2 { font-size: 1.3rem; }
    .article-cta { padding: 2rem 1.5rem; }
    .article-cta h2 { font-size: 1.2rem; }
}
