/* =========================================
   1. Core Variables & Reset
   ========================================= */
:root {
    --color-primary: #FFA500;
    --color-primary-dark: #cc8400;
    --color-bg: #000000;
    --color-bg-alt: #0a0a0a;
    --color-bg-card: #141414;
    --color-text: #ffffff;
    --color-text-muted: #a3a3a3;
    --color-border: #333333;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.text-primary {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-lead {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* =========================================
   3. Navigation
   ========================================= */
.navbar {
    position: relative;
    width: 100%;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    max-height: 70px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 63px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a:not(.btn) {
    position: relative;
    padding: 0.5rem 1.2rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 4px;
    /* Matches overlay roundness */
}

/* Ensure text is above overlay */
.nav-links a:not(.btn) span {
    position: relative;
    z-index: 2;
}

/* The Overlay */
.nav-links a:not(.btn)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 165, 0, 0.95);
    border-radius: 4px;
    z-index: 1;

    /* Transformation */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.btn):hover {
    color: #ffffff;
}

.nav-links a:not(.btn):hover::before {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero-section {
    position: relative;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    background: radial-gradient(circle at 50% 30%, rgba(255, 165, 0, 0.2), transparent 60%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* Hero Visual Stub */
.hero-visual {
    margin-top: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-bg-card);
    height: 300px;
    /* Placeholder height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-card {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 165, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-prefix {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
    font-family: serif;
    /* For "Imagine" feel */
}

.stat-highlight {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    text-align: center;
}

.stat-suffix {
    color: var(--color-text);
    font-size: 1rem;
}

/* =========================================
   5. About & Problem & Solution
   ========================================= */
.about-section {
    background-color: var(--color-bg-alt);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.mission-container {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(to right, rgba(255, 165, 0, 0.05), transparent);
    text-align: left;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.mission-container h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-container p {
    font-style: italic;
    color: var(--color-text);
    font-weight: 500;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.problem-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.problem-list li::before {
    content: "✖";
    color: red;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.chart-placeholder {
    height: 300px;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    border: 1px solid var(--color-border);
}

.bar {
    width: 40px;
    background-color: var(--color-primary);
    opacity: 0.3;
    border-radius: 4px 4px 0 0;
}

.bar-1 {
    height: 30%;
}

.bar-2 {
    height: 50%;
}

.bar-3 {
    height: 80%;
    opacity: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.step-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.1);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-bg-alt);
    -webkit-text-stroke: 1px var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

/* =========================================
   6. Services Section
   ========================================= */
.services-section {
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px -10px rgba(255, 165, 0, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

/* =========================================
   7. Proof & AI Section
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.video-card {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #000;
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.15);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.result-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.1);
    border-color: var(--color-primary);
}

.result-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.ai-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(to right, #050505 0%, #111 100%);
}

.cta-section {
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.05) 0%, rgba(0, 0, 0, 1) 100%);
    position: relative;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-features li::before {
    content: "✓";
    color: var(--color-primary);
}

.chat-ui-mockup {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    transition: var(--transition);
}

.chat-ui-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.15);
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.chat-msg.bot {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    align-self: flex-start;
}

.chat-msg.user {
    background-color: var(--color-primary);
    color: var(--color-bg);
    margin-left: auto;
    width: fit-content;
}

/* =========================================
   8. Contact & Footer
   ========================================= */
.contact-section {
    background-color: var(--color-bg-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    background-color: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.15);
}

.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--color-text-muted);
    margin-left: var(--spacing-md);
    font-size: 0.9rem;
}

/* =========================================
   9. Chatbot Widget
   ========================================= */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s;
}

.chatbot-btn:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-bg);
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 4px;
}

/* =========================================
   10. Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .logo-image {
        height: 120px;
    }

    .navbar {
        min-height: auto;
        padding: 1rem 0;
    }

    .grid-2-col,
    .steps-grid,
    .testimonials-grid,
    .results-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--color-bg-card);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        border-left: 1px solid var(--color-border);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* Above nav links */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* =========================================
   11. Animations
   ========================================= */
/* Only hide elements if JS and IntersectionObserver are supported */
.js-scroll-anim-enabled .fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.js-scroll-anim-enabled .fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.js-scroll-anim-enabled .delay-100 {
    transition-delay: 0.1s;
}

.js-scroll-anim-enabled .delay-200 {
    transition-delay: 0.2s;
}

.js-scroll-anim-enabled .delay-300 {
    transition-delay: 0.3s;
}