/* ─── MaaSify ON DEMAND — Landing Page ─────────────── */
/* Dark Glassmorphism Theme                               */

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

:root {
    --bg-dark: #0d0d1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(231, 92, 11, 0.3);
    --orange: #E75C0B;
    --orange-light: #FF7A2F;
    --orange-glow: rgba(231, 92, 11, 0.25);
    --text: #f0f0f5;
    --text-dim: rgba(240, 240, 245, 0.55);
    --text-mid: rgba(240, 240, 245, 0.75);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Background Effects ─────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: glowFloat 12s ease-in-out infinite;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo-icon {
    width: 48px;
    height: 48px;
}

.nav-logo-text {
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nav-logo-text span {
    color: var(--orange);
    font-weight: 800;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.7;
}

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

.nav-cta {
    background: var(--orange) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-login .material-symbols-outlined {
    font-size: 22px;
}

.nav-login:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(231, 92, 11, 0.08);
}

/* ─── Logged-in nav ──────────────────────────────────── */
.nav-dashboard {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-dashboard .material-symbols-outlined {
    font-size: 18px;
}

.nav-dashboard:hover,
.nav-dashboard.active {
    color: var(--orange);
    border-color: var(--orange);
    background: rgba(231, 92, 11, 0.06);
}

.nav-user-menu {
    position: relative;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nav-avatar:hover {
    box-shadow: 0 0 0 3px rgba(231, 92, 11, 0.25);
    transform: scale(1.05);
}

.nav-avatar.has-img {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
    padding: 6px 0;
}

.nav-user-menu:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 12px 16px;
}

.nav-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.nav-dropdown-header span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown a .material-symbols-outlined {
    font-size: 18px;
}

.nav-dropdown a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-logout:hover {
    color: #ef4444 !important;
}

/* ─── Sections ───────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--orange);
    background: rgba(231, 92, 11, 0.05);
}

/* ─── Code Preview ────────────────────────────────────── */
.hero-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-header span {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.code-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-mid);
    overflow-x: auto;
}

.code-body .key { color: #7dd3fc; }
.code-body .string { color: #86efac; }
.code-body .number { color: var(--orange-light); }
.code-body .comment { color: rgba(255,255,255,0.25); font-style: italic; }

/* ─── Features ────────────────────────────────────────── */
.features {
    padding-top: 40px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(231, 92, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--orange);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ─── How It Works ────────────────────────────────────── */
.how-it-works {
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.3;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px var(--orange-glow);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.step p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 260px;
}

/* ─── Pricing ─────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card.featured {
    border-color: var(--orange);
    background: rgba(231, 92, 11, 0.06);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-card .price-detail {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--orange);
    font-weight: 700;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-brand a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ─── Animations ──────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Widget Showcase ─────────────────────────────────── */
.widget-showcase {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 32px 20px;
    gap: 24px;
    flex-wrap: wrap;
}

.showcase-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.showcase-title h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.showcase-title p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

.showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.showcase-features span {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
}

.showcase-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 560px;
}

.showcase-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.showcase-preset {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.showcase-preset:hover {
    background: rgba(231, 92, 11, 0.1);
    border-color: rgba(231, 92, 11, 0.3);
    color: var(--text-mid);
}

.showcase-preset.active {
    background: rgba(231, 92, 11, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

.showcase-widget-frame {
    height: 450px;
    margin: 0 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.showcase-cta {
    display: flex;
    gap: 16px;
    padding: 24px 32px;
    flex-wrap: wrap;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 120px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    section { padding: 60px 20px; }
    .nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; gap: 20px; text-align: center; }
}
