:root {
    --bg-dark: #050816;
    --primary: #5a35ff;
    --primary-light: #7b5dff;
    --accent: #00e0ff;
    --text-main: #ffffff;
    --text-muted: #c5c7d4;
    --card-bg: #0b1020;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --success: #22c55e;
    --danger: #ef4444;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --transition-fast: 0.18s ease-out;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    scroll-behavior: smooth;
    background: radial-gradient(circle at top left, #1d1b40 0, #050816 42%, #02010b 100%);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Reusable Components --- */
.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2rem;
    font-size: 0.98rem;
}

/* --- Header & Nav --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: conic-gradient(from 180deg at 50% 50%, #5a35ff, #00e0ff, #ec4899, #5a35ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(90, 53, 255, 0.6);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

.logo-text-main {
    font-weight: 600;
    font-size: 0.95rem;
}

.logo-text-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links a {
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.85rem;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-weight: 500;
    cursor: pointer;
    background: radial-gradient(circle at top left, rgba(90, 53, 255, 0.5), rgba(15, 23, 42, 0.9));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 0.8rem;
}

.nav-cta:hover {
    border-color: var(--accent);
}

/* --- Mobile Menu Styles (FIXED) --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-cta {
        display: none;
    }

    /* Hide header CTA on mobile, rely on page CTAs */
}

/* --- Hero --- */
.hero {
    padding: 3.5rem 0 4.5rem;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

.hero-kicker {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.25rem 0.9rem 0.25rem 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    margin-bottom: 1.2rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 0.9rem;
}

.hero-title span.highlight {
    background: linear-gradient(90deg, #5a35ff, #00e0ff, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 1.6rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(120deg, #5a35ff, #7b5dff, #00e0ff);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(90, 53, 255, 0.65);
    transition: transform 0.1s ease-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* Avatar Card */
.avatar-card {
    position: relative;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem;
}

.avatar-video-frame {
    border-radius: 16px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.4);
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Placeholder for video */
.avatar-video-placeholder {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #1f2937;
}

.avatar-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.avatar-play-circle {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* --- Sections & Cards --- */
section {
    padding: 3.25rem 0;
}

.section-inner {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.88);
    padding: 2rem;
}

/* Grids */
.problem-grid,
.services-grid,
.case-studies-grid,
.timeline {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.problem-grid {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
}

.timeline {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {

    .problem-grid,
    .services-grid,
    .case-studies-grid,
    .timeline {
        grid-template-columns: 1fr;
    }
}

.problem-card,
.service-card,
.case-card,
.timeline-item {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
}

.service-list li {
    list-style: none;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
}

.service-list li::before {
    content: "✓";
    color: var(--accent);
}

/* --- FAQ Accordion (FIXED) --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 960px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    border-bottom: 1px solid rgba(30, 64, 175, 0.6);
    padding: 0.8rem 0;
    cursor: pointer;
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    transition: 0.2s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 0.5rem;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.6rem;
    border-radius: 8px;
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Video Gallery --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    overflow: hidden;
    padding: 0.5rem;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    padding: 1rem 0.5rem 0.5rem;
}

.video-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.video-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}