/* =========================================
   1. VARIABLES & RESET (MODERN LUXURY)
   ========================================= */
:root {
    /* Palette: Modern Luxury - Aurora Gradients, Deep Charcoal, White */
    --color-bg: #F8FAFC;
    /* Cool light gray/white */
    --color-text-main: #0F172A;
    /* Slate 900 */
    --color-text-muted: #64748B;
    /* Slate 500 */
    --color-text-inverse: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    /* Indigo to Cyan */
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    --gradient-text: linear-gradient(135deg, #1E293B 0%, #475569 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --glass-blur: blur(12px);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1240px;
    --header-height: 90px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* --- Ambient Background Lights --- */
.ambient-light-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float-ambient 20s infinite alternate ease-in-out;
}

.light-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent 70%);
}

.light-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    animation-delay: -5s;
}

.light-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
    /* Subtle pink popup */
    animation-delay: -10s;
}

@keyframes float-ambient {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.logo,
.btn {
    font-family: var(--font-heading);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
    /* Slightly darker hover gradient */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.3);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* --- Loaders --- */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   2. HEADER
   ========================================= */
.announcement-bar {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 0.6rem 0;
    text-align: center;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-smooth);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
}

.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
}

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

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

.header-cta {
    margin-left: 2rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    position: relative;
    transition: background-color 0s 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Menu Open State */
.mobile-menu-open .hamburger {
    background-color: transparent;
}

.mobile-menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* (Reuse logic from previous script, CSS structure remains similar but cleaner) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-link {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
    color: var(--color-text-main);
}

/* =========================================
   3. HERO SECTION (MODERN SPLIT)
   ========================================= */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem 0;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-background-shapes {
    display: none;
    /* Replaced by ambient */
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--color-text-main);
    background: linear-gradient(135deg, #1e293b 20%, #6366f1 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item svg {
    color: #4F46E5;
}

.trusted-by-row {
    padding-top: 5rem;
    text-align: center;
    opacity: 0.6;
}

.trusted-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.trusted-industries {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #94a3b8;
}

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

.service-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: all var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #4F46E5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-features {
    padding-left: 1.2rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.service-features li {
    margin-bottom: 0.5rem;
}

/* =========================================
   5. RESULTS (CLEAN)
   ========================================= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.result-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

/* =========================================
   6. PROCESS
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #6366f1;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 0 8px #f8fafc;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.timeline-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* =========================================
   7. ABOUT (ASYMMETRIC)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.founder-role {
    color: #6366f1;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.abstract-visual-box {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.2));
    clip-path: polygon(0 100%, 0 80%, 25% 60%, 50% 70%, 75% 30%, 100% 10%, 100% 100%);
}

/* =========================================
   8. CONTACT
   ========================================= */
.contact-section {
    background: #0F172A;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 4rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.text-light {
    color: #fff;
    font-size: 2.5rem;
}

.text-light-muted {
    color: #94a3b8;
    font-size: 1.2rem;
}

.contact-link {
    color: #fff;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    color: #22d3ee;
    border-color: #22d3ee;
}

.address-text {
    color: #e2e8f0;
    font-size: 1.1rem;
}

.contact-form-container {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

input,
select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: #334155;
}

input:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    color: #64748B;
}

.footer-logo {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* =========================================
   10. TOAST & ANIMATIONS
   ========================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-radius: 50px;
    opacity: 0;
    transition: 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.reveal-text,
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 3rem;
    }

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

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

@media (max-width: 768px) {

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}