/* 
   AI Pilot - The AI Sovereign
   Futuristic Minimalism + Neo-Tech Aesthetic
*/

:root {
    /* Colors */
    --bg-dark: #050510;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;

    /* Neon Sovereign Palette */
    --accent-primary: #00eaff;
    /* Neon Cyan */
    --accent-secondary: #087cff;
    /* Electric Blue */
    --accent-glow: rgba(0, 234, 255, 0.3);

    /* Gradients */
    --gradient-cta: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(90deg, #fff 0%, #a0a0b0 100%);
    --gradient-title: linear-gradient(90deg, #fff 20%, var(--accent-primary) 100%);

    /* Fonts */
    --font-display: 'Unbounded', 'Space Grotesk', sans-serif;
    --font-sub: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-bg: rgba(5, 5, 16, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --blur: blur(20px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --glow-text: 0 0 20px rgba(0, 234, 255, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: #050510 !important;
    /* Force Dark */
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Nebula Canvas - Strict Layering */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: all;
}

/* Content Layering */
.navbar,
.hero,
section,
footer {
    position: relative;
    z-index: 2;
    background: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: var(--glow-text);
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 234, 255, 0.2);
}

.text-gradient {
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Unbounded', sans-serif;
    text-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: var(--blur);
    border-bottom: var(--glass-border);
    transition: transform 0.3s ease-in-out, background 0.3s ease;
    z-index: 1000;
}

.navbar--hidden {
    transform: translateY(-100%);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
}

.navbar__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__link {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: relative;
}

.navbar__link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.navbar__link--cta {
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.navbar__link--cta:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Navbar Toggle */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transform: scale(1.3);
}

.navbar__toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: var(--transition);
}

.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.navbar__toggle-icon::before {
    top: -8px;
}


.navbar__toggle-icon::after {
    top: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: visible;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

.hero__logo-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero__logo-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.hero__logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero__subtitle {
    font-family: var(--font-sub);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero__text-block {
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-sub);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 48px;
}

.btn--primary {
    background: var(--gradient-cta);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 234, 255, 0.6);
    color: #fff;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 234, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.2);
    transform: translateY(-2px);
}

/* Services Timeline - Compact & Structured */
.section {
    padding: 6rem 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle {
    font-family: var(--font-sub);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Timeline Services */
.timeline-services {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-card {
    display: flex;
    justify-content: center;
    padding-bottom: 4rem;
    position: relative;
    width: 100%;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-card:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-card:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-primary);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Demos Grid */
.demos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-block {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.demo-block:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.demo-preview {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.demo-block:hover .play-btn {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: #000;
}

.demo-info {
    padding: 1.5rem;
}

.demo-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.demo-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-cta);
}

.pricing__body {
    margin-bottom: 2rem;
}

.pricing__desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.pricing__start {
    margin-bottom: 1rem;
}

.pricing__label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.pricing__amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
}

.pricing__note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.contact__body {
    margin-bottom: 2rem;
}

.contact__desc {
    font-size: 1.1rem;
    color: #fff;
}

/* About Section */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__img {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Founder Card */
.founder-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
}

.founder-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.founder-img-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.founder-card:hover .founder-img {
    transform: scale(1.05);
}

.founder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #050510, transparent);
}

.founder-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-top: -5rem;
    text-align: center;
}

.founder-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.founder-role {
    color: var(--accent-primary);
    font-family: var(--font-sub);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: block;
}

.founder-tagline {
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 16, 0.5);
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar__menu.active {
        transform: translateX(0);
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__toggle.active .navbar__toggle-icon {
        background: transparent;
    }

    .navbar__toggle.active .navbar__toggle-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .navbar__toggle.active .navbar__toggle-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero__title {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .about__container {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-card {
        flex-direction: column;
        padding-left: 50px;
        align-items: flex-start;
    }

    .timeline-card:nth-child(odd) .timeline-content,
    .timeline-card:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .pricing__amount {
        font-size: 3rem;
    }

    /* Mobile Fixes for Overflow */
    .section__title {
        font-size: 1.8rem;
        word-wrap: break-word;
        padding: 0 10px;
        overflow-wrap: break-word;
    }

    .pricing-card {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pricing__amount {
        font-size: 2.5rem;
    }

    .founder-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .founder-info {
        padding: 1.5rem 1rem;
        margin-top: -3rem;
    }

    .founder-name {
        font-size: 1.5rem;
    }

    .founder-img-wrapper {
        height: 500px;
    }

    .container {
        width: 100%;
        padding: 0 20px;
        overflow-x: hidden;
    }

    .about__content {
        width: 100%;
        overflow-wrap: break-word;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal__content {
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 234, 255, 0.2);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal__close:hover {
    background: var(--accent-primary);
    color: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}