/* =========================================================
   THEME VARIABLES
   ========================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;

    --bg: #ffffff;
    --bg-muted: #f9fafb;

    --text: #1f2937;
    --text-muted: #6b7280;

    --border: #e5e7eb;
}

/* DARK MODE */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-muted: #020617;

    --text: #e5e7eb;
    --text-muted: #94a3b8;

    --border: #1e293b;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

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

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
}

.btn-outline:hover {
    border-color: #fff;
    background: var(--border);
}
.btn-hover:hover {
    background: var(--primary-dark);
}
.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* =========================================================
   HERO SECTION (WITH BACKGROUND)
   ========================================================= */
.hero {
    position: relative;
    padding: 120px 24px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.18), transparent 45%),
        radial-gradient(circle at bottom right, rgba(37,99,235,0.12), transparent 45%),
        linear-gradient(to right, var(--bg-muted), var(--bg));
}

.hero-content {
    max-width: 1200px;
    margin: auto;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    padding: 80px 24px;
}

.section-muted {
    background: var(--bg-muted);
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
}


/* =========================================================
   CARDSa
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
}

.testimonial strong {
    display: block;
    margin-top: 12px;
    color: var(--text);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
    background: var(--primary);
    color: #ffffff;
    padding: 60px 24px;
    border-radius: 16px;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #020617;
    color: #94a3b8;
    padding: 40px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.site-footer h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

/* =========================================================
   RESPONSIVE (MOBILE FRIENDLY)
   ========================================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {

    /* Header */
    .menu-toggle {
        display: block;
    }

    .nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        border-top: 1px solid var(--border);
        background: var(--bg);
    }

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

    /* Hero */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Sections */
    .section {
        padding: 60px 20px;
    }

    /* Cards */
    .cards {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   PRICING / LAUNCH PLANS
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.currency {
    font-size: 20px;
    vertical-align: top;
}

.duration {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
}

.pricing-btn {
    width: 100%;
}

/* Featured (Launch Highlight) */
.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.04);
}

.pricing-card.featured .price {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* =========================================================
   SERVICE BASED PRICING (SAAS)
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.pricing-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.price {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 22px;
}

.price span {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    font-size: 13px;
    margin-bottom: 8px;
}

.pricing-btn {
    width: 100%;
}

/* Featured */
.pricing-card.featured {
    border: 2px solid var(--primary);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}

/* Combo Note */
.pricing-note {
    margin-top: 40px;
    text-align: center;
    font-size: 15px;
}

.pricing-note span {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.desktop-only {
    display: inline-block;
}

.desktop-nav {
    display: flex;
}

.menu-toggle {
    display: none;
}

/* Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: var(--bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 1001;
    transition: right 0.3s ease;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar a {
    font-size: 16px;
    font-weight: 600;
}

.close-sidebar {
    align-self: flex-end;
    font-size: 26px;
    border: none;
    background: none;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
/* =========================================================
   SERVICES GRID – FINAL OVERRIDE (DO NOT DUPLICATE)
   ========================================================= */
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tablet */
@media (max-width: 1024px) {
    #services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    #services .services-grid {
        grid-template-columns: 1fr;
    }
}



.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================= MOBILE SIDEBAR ================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px; /* keeps it elegant on tablets */
    height: 100dvh; /* dynamic viewport height (modern browsers) */
    background: var(--bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* Fallback for older browsers */
@supports not (height: 100dvh) {
    .mobile-sidebar {
        height: 100vh;
    }
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar a {
    font-size: 16px;
    font-weight: 600;
}

/* Close button */
.close-sidebar {
    align-self: flex-end;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   FREE TRIAL SECTION
   ========================================================= */
.free-trial {
    background: linear-gradient(
        to right,
        rgba(37, 99, 235, 0.08),
        rgba(37, 99, 235, 0.03)
    );
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.free-trial-content {
    max-width: 700px;
    margin: auto;
}

.free-trial h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.free-trial p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.free-trial-features {
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
}

.free-trial-features li {
    font-size: 15px;
    margin-bottom: 10px;
}

.free-trial-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .free-trial {
        padding: 32px 20px;
    }

    .free-trial h2 {
        font-size: 26px;
    }

    .free-trial-actions {
        flex-direction: column;
    }
}

