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

:root {
    /* Core Palette - Deep Executive Slate */
    --bg-body: #0b1120;
    /* Darker Slate */
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Glassy Card */
    --bg-card-hover: rgba(51, 65, 85, 0.8);

    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    --accent: #38bdf8;
    /* Lighter Sky */
    --success: #10b981;
    /* Emerald 500 - Restored */

    /* Typography - Premium */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    /* Lighter for better readability */

    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --header-height: 160px;
    --container-width: 1200px;

    /* Effects - High End */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    background-color: var(--bg-body);
    overscroll-behavior: none;
    /* Prevent browser overscroll white flash */
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.7;
    /* More breathing room */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    background-color: transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    /* ensure no vertical or horizontal overscroll flashes */
    touch-action: pan-y;
}

/* Persistent, composited background layer to avoid white gaps during fast scroll */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, #1e293b 0%, #0b1120 40%);
    z-index: -9999;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fallback persistent element created by JS so we can nudge transform from script */
#persist-bg {
    position: fixed;
    inset: 0;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, #1e293b 0%, #0b1120 40%);
    z-index: -10000;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Force compositing of hero layers so they paint smoothly on mobile */
#bg-gradient,
#heroCanvas {
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    /* Slightly lighter for elegance */
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ===========================
      NAVIGATION
      =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 17, 32, 0.6);
    /* More transparent */
    backdrop-filter: blur(16px);
    /* Heavier blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(11, 17, 32, 0.9);
    box-shadow: var(--shadow-md);
    height: 70px;
    /* Shrink on scroll */
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 1001;
}

.logo img {
    height: 140px !important;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 60px !important;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.logo-suffix {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    /* Prevent text wrapping */
    min-width: max-content;
    /* Ensure button fits text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1002;
    /* Ensure it's above the menu wrapper */
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* Dropdown Styles (Desktop) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding-left: 1.25rem;
}

/* ===========================
      HERO SECTION
      =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 5rem);
    overflow: hidden;
}

.section.solution-header {
    padding-top: calc(var(--header-height) + 7rem);
    padding-bottom: 4rem;
}

#bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, #1e293b 0%, #0b1120 40%);
    z-index: -2;
    pointer-events: none;
}

#heroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-body) 90%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 4rem;
    /* Added padding to prevent cutoff */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    /* Pill shape */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    /* Bigger */
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 580px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.stat-card:nth-child(3) {
    grid-column: span 2;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===========================
      SECTIONS GENERAL
      =========================== */
.section {
    padding: 6rem 0;
}

.bg-darker {
    background: rgba(11, 17, 32, 0.3);
    /* Semi-transparent for canvas visibility */
    backdrop-filter: blur(8px);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ===========================
      SERVICES GRID
      =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-list {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.card-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-list li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 0;
}

/* ===========================
      EXPERTISE / ACCORDION
      =========================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.accordion {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item.active {
    border-color: var(--primary);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
    animation: slideDown 0.3s ease;
}

.accordion-item.active .accordion-body {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(38, 51, 77, 0.8));
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-icon-large {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
}

.visual-icon-large svg {
    width: 40px;
    height: 40px;
}

.check-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.check-list svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

/* ===========================
      PROCESS STEPS
      =========================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    position: relative;
    padding-top: 2rem;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.step::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 0;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================
      CONTACT SECTION
      =========================== */
.contact-section {
    background: transparent;
    /* Let canvas show through */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    /* Prevent overflow */
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-details h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.method-details a,
.method-details p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Affiliate Contact Styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

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

.btn-icon-right {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
}

/* ===========================
      FOOTER
      =========================== */
.footer {
    background: rgba(5, 9, 17, 0.8);
    backdrop-filter: blur(12px);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.logo-icon-sm {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===========================
      RESPONSIVE
      =========================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text-wrapper {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats-grid {
        max-width: 600px;
        margin: 0 auto;
    }

    .split-layout,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .visual-card {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }

    .logo img {
        height: 70px !important;
        max-width: 200px;
        object-fit: contain;
    }

    /* Mobile Menu Drawer */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        /* Reset left */
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: none;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        padding: 7rem 2rem 4rem;
        transform: translateX(100%);
        /* Slide from right */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 1999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Left align */
        overflow-y: auto;
    }

    .nav-menu-wrapper.active {
        transform: translateX(0);
    }

    /* Backdrop Overlay */
    .navbar.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .btn-nav {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 2000;
        /* Above drawer */
        position: relative;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Mobile Dropdown - Accordion Style */
    .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
    }

    .dropdown-toggle::after {
        content: '+' !important;
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        margin-left: 10px;
        font-size: 1.2rem;
        font-weight: 300;
        transition: transform 0.3s ease;
        border: none;
    }

    .dropdown.open .dropdown-toggle::after {
        content: '+' !important;
        transform: rotate(45deg);
    }

    /* Disable underline effect on mobile nav links */
    .nav-link::after {
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        padding-left: 1rem;
        /* Indent */
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        /* Hidden by default */
        flex-direction: column;
        width: 100%;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        min-width: unset;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
        /* Show when open */
    }

    .dropdown-menu li a {
        padding: 0.75rem 1rem;
        color: var(--text-muted);
        font-size: 0.95rem;
        text-align: left;
        border-radius: 0;
    }

    .dropdown-menu li a:hover {
        color: var(--primary-light);
        background: rgba(255, 255, 255, 0.03);
        padding-left: 1.5rem;
    }
}

/* ===========================
      MISSING UTILITIES & COMPONENTS
      =========================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.privacy-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.privacy-content p {
    margin-bottom: 1.5rem;
}

.privacy-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* ===========================
   AI AGENT PAGE - PREMIUM STYLING
   =========================== */

.ai-demo-section {
    padding-bottom: 4rem;
}

.ai-demo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    justify-items: center;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(20px);
    max-width: 1100px;
    margin: 0 auto;
}

.ai-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.ai-header p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Premium AI Widget Container */
.ai-widget-wrapper {
    position: relative;
    min-height: 600px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated gradient border */
.ai-widget-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--success), var(--primary));
    background-size: 300% 300%;
    animation: borderGlow 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Glowing pulse effect */
.ai-widget-wrapper::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 50%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Inner container for the actual widget */
.ai-widget-wrapper>div[data-chat-widget] {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    min-height: 550px;
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Corner accents */
.ai-widget-wrapper .corner-accent {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    z-index: 3;
    pointer-events: none;
}

.ai-widget-wrapper .corner-accent.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}

.ai-widget-wrapper .corner-accent.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 8px;
}

.ai-widget-wrapper .corner-accent.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 8px;
}

.ai-widget-wrapper .corner-accent.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

/* AI Status Indicator */
.ai-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Features Grid for AI Page */
.ai-demo-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Best Features two-column layout for AI page */
.best-features {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

/* Slightly denser card grid on medium screens */
@media (max-width: 1100px) {
    .ai-demo-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .best-features {
        grid-template-columns: 1fr;
    }

    .ai-demo-section .features-grid {
        grid-template-columns: 1fr;
    }
}

.ai-demo-section .feature-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.ai-demo-section .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.ai-demo-section .feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .ai-demo-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-demo-section .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Neon Phone Border Style */
.neon-phone-container {
    position: relative;
    border: 4px solid var(--primary);
    border-radius: 40px;
    box-shadow:
        0 0 15px var(--primary),
        0 0 30px rgba(59, 130, 246, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 15px;
    background: #0f172a;
    margin: 0 auto;
    overflow: hidden;
    width: 90%;
    max-width: 550px;
    /* Increased width for better desktop view */
    height: 850px;
    /* Increased height to match */
}

/* Notch */
.neon-phone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #0f172a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inner screen area */
.neon-phone-screen {
    border-radius: 32px;
    background: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Adjustments for the form iframe */
.neon-phone-screen iframe {
    width: 100%;
    border: none;
}

/* Adjustments for the chat widget wrapper */
.neon-phone-screen .ai-widget-wrapper {
    width: 100%;
}

/* ===========================
   CHAT WIDGET GLOBAL FIX
   =========================== */
chat-widget {
    display: block !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important;
    /* Max z-index */
    width: auto !important;
    height: auto !important;
    max-width: 450px !important;
    max-height: 800px !important;
    /* Neon glow animation */
    border-radius: 50px;
    animation: neonGlow 2s ease-in-out infinite;
}

/* Neon glow keyframes - cycles through blue tones */
@keyframes neonGlow {

    0%,
    100% {
        box-shadow:
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary-light);
    }

    50% {
        box-shadow:
            0 0 10px var(--accent),
            0 0 20px var(--accent),
            0 0 40px var(--accent),
            0 0 60px var(--primary);
    }
}

/* Ensure body doesn't create a new stacking context that traps fixed elements */
body.home-page chat-widget {
    transform: none !important;
    left: auto !important;
    top: auto !important;
}

@media (max-width: 768px) {
    chat-widget {
        bottom: 10px !important;
        right: 10px !important;
        max-width: 90vw !important;
    }
}

/* Disable glow on AI agent demo pages */
body.ai-agent-page chat-widget {
    animation: none !important;
    box-shadow: none !important;
}

/* Center the AI demo widget inside the phone screen */
.ai-demo-widget-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.ai-demo-widget-wrapper chat-widget {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    animation: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
    /* Lower than navbar (1000) so it goes behind header */
}