:root {
    --primary: #0F5EE6;
    --primary-hover: #0a46b3;
    --primary-glow: rgba(15, 94, 230, 0.3);
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --text-main: #0F172A;
    --text-dim: #475569;
    --accent: #FFC700;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --feint-yellow:#fcf1c5
}

body.dark-mode {
    --bg: #0B0F19;
    --surface: #131B2F;
    --surface-hover: #1A243F;
    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(11, 15, 25, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

/* ─── Navbar ──────────────────────────────────────────────────────── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: padding 0.35s ease, box-shadow 0.35s ease;
}

/* Subtle blue wash behind the logo area */
nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 94, 230, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Gradient bottom border — replaces the plain 1px line */
nav::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(15, 94, 230, 0.5) 28%,
        rgba(255, 199, 0, 0.45) 62%,
        transparent 100%
    );
}

/* Ensure nav children sit above the decorative pseudo-elements */
nav > * {
    position: relative;
    z-index: 1;
}

nav.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 4px;
}

/* Mobile-only theme button hidden on desktop */
.theme-btn-mobile {
    display: none;
}

.mobile-menu-btn {
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.mobile-menu-btn i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    color: var(--primary);
    background: var(--surface-hover);
}

/* ─── Hero Section (Merged Split Layout) ─────────────────────────── */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-content {
    flex: 0 0 50%;
    padding: 5rem 3rem 5rem 5%;
    z-index: 2;
    position: relative;
}

/* Preselling badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(15, 94, 230, 0.07);
    border: 1px solid rgba(15, 94, 230, 0.22);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.38rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulseDot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(1.5); }
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.14;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-link-btn {
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.85rem 0.25rem;
    transition: color 0.2s ease;
}

.hero-link-btn:hover {
    color: var(--primary);
}

/* Hero Image Panel — fades from transparent (left/text side) to opaque */
.hero-image-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 65%;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 42%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 42%);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-dots {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
    flex-shrink: 0;
}

.dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ─── Primary Button ──────────────────────────────────────────────── */
.primary-btn {
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-hover), #6366F1);
}

/* ─── Features Section ────────────────────────────────────────────── */
.features {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

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

/* ─── Pricing Section — Horizontal Scroll ────────────────────────── */
.pricing {
    padding: 8rem 0 4rem;
}

.section-header {
    text-align: center;
    padding: 0 5%;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.pricing-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0.75rem 5% 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.pricing-grid::-webkit-scrollbar {
    height: 4px;
}

.pricing-grid::-webkit-scrollbar-track {
    background: transparent;
}

.pricing-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

/* Popular plan highlight */
.pricing-card.is-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 94, 230, 0.12), 0 8px 24px rgba(15, 94, 230, 0.1);
}

.pricing-card.is-popular::before {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.28rem 0.85rem;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(15, 94, 230, 0.35);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.plan-price span {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 0.5rem;
}

.plan-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 2.85rem;
}

.plan-meta {
    background: rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-features li i.check {
    color: #10B981;
    font-size: 1.1rem;
    margin-top: 2px;
}

.plan-features li i.cross {
    color: #EF4444;
    font-size: 1.1rem;
    margin-top: 2px;
    opacity: 0.7;
}

.plan-features li.excluded {
    color: var(--text-dim);
    text-decoration: line-through;
    opacity: 0.7;
}

.buy-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card:hover .buy-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.why-upgrade {
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 3rem;
    margin: 4rem 5% 0;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1100px) {
    .why-upgrade {
        margin-left: auto;
        margin-right: auto;
    }
}

.why-upgrade h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.why-upgrade ul {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.why-upgrade li {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.why-upgrade li i {
    color: var(--accent);
}

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.02);
    margin-top: 4rem;
}

/* ─── Modal & Stepper ─────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-dim);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: var(--text-main);
}

.stepper-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.stepper-header::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-hover);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dim);
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-indicator.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--border-hover);
}

.radio-label input:checked+span {
    color: var(--primary);
    font-weight: 600;
}

.location-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-loc-btn {
    background: transparent;
    border: 1px dashed var(--border-hover);
    color: var(--text-dim);
    padding: 0.8rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.add-loc-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.stepper-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

#successMessage {
    display: none;
    text-align: center;
    padding: 2rem;
}

#successMessage i {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1rem;
}

#otherServiceType {
    display: none;
    margin-top: 1rem;
}

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

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-mobile-actions {
        display: flex;
    }

    .theme-btn-mobile {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 5%;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .primary-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero stacks on mobile */
    .hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: 70px;
    }

    .hero-content {
        flex: none;
        width: 100%;
        padding: 3rem 5% 2rem;
        order: 2;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-image-panel {
        position: relative;
        width: 100%;
        height: 58vw;
        min-height: 240px;
        -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        order: 1;
    }

    .hero-dots {
        bottom: 1rem;
        right: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-link-btn {
        justify-content: center;
        text-align: center;
    }

    .pricing {
        padding: 4rem 0;
    }

    /* Vertical stack on mobile */
    .pricing-grid {
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0 5% 1rem;
    }

    .pricing-card {
        flex: none;
        width: 100%;
    }

    .radio-grid {
        grid-template-columns: 1fr;
    }

    .why-upgrade {
        margin: 3rem 5% 0;
    }
}
