/* ------------------------- Global Variables ------------------------- */
:root {
    --color-bg-dark: #080808;
    --color-bg-alt: #111111;
    --color-text-main: #e0e0e0;
    --color-text-muted: #888888;
    --color-accent: #E97132;
    /* Brand Orange */
    --color-accent-subtle: #5a2810;
    --color-system: #00f0ff;
    /* Tech Blue/Cyan */
    --color-border: #333333;

    --font-heading: 'Montserrat', sans-serif;
    /* Clean Deep Tech Font */
    --font-body: 'Montserrat', sans-serif;
    /* Clean Deep Tech Font */

    --cubic-default: cubic-bezier(0.625, 0.05, 0, 1);
    --duration-default: 0.6s;

    --container-max: 1440px;
    --container-padding: 2rem;
}

/* ------------------------- Reset & Base ------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ------------------------- Typography ------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title-group {
    position: relative;
    /* padding-left removed since line is gone */
}

/* Accent line class can be kept for reference but is no longer used in HTML */
.hero-accent-line {
    display: none;
}

.h-hero {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 700;
    font-family: var(--font-body);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.h-hero-top {
    color: var(--color-accent);
    font-weight: 400;
    font-size: 0.55em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.1em;
}

.h-hero-accent {
    color: #ffffff;
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.h-large {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.h-medium {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.p-large {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--color-text-muted);
    font-weight: 300;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deco-square {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    display: inline-block;
}

/* ------------------------- Utility ------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 8rem 0;
    position: relative;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* ------------------------- Components ------------------------- */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--color-text-main);
    color: var(--color-bg-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-main);
}

.button-outline {
    display: inline-flex;
    padding: 1rem 2rem;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-main);
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-outline:hover {
    border-color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* ------------------------- Header ------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    padding: 1rem 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ------------------------- Hero Section ------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ------------------------- Intro Section ------------------------- */
.intro-text {
    /* Increased height for pin effect to feel spacious */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;

    /* Break out of container to Full Viewport Width */
    width: 100vw;
    margin-left: calc(50% - 50vw);

    position: relative;
    overflow: hidden;
}

.intro-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background-color: #000000;

    opacity: 1;
    
    mask-image: linear-gradient(to bottom, transparent 0%, black 9vh, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 9vh, black 100%);
}

.intro-stat-container {
    height: 160px;
    /* Expanded space for multiline deep tech text */
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.intro-stat {
    position: relative;
    width: 100%;
    height: 100%;
}

.anim-text {
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateY(20px);
    opacity: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Lighter weight for cleaner tech look */
    letter-spacing: -0.01em;
}

.anim-text-final {
    opacity: 0;
    transform: translateY(20px);
}

.intro-epic-light {
    position: absolute;
    top: 55%;
    /* Match image center */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    /* Large burst area */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    z-index: 1;
    /* Below image (z-index 2) */
    pointer-events: none;
    mix-blend-mode: screen;
    /* Additive lighting */
}

.anim-image-final {
    position: absolute;
    top: 55%;
    /* Slightly lower to clear any lingering text if any */
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 600px;
    opacity: 0;
    z-index: 2;
}

.anim-image-final img {
    width: 100%;
    height: auto;
}

.highlight {
    color: var(--color-text-main);
    font-weight: 600;
}

/* ------------------------- Product Showcas ------------------------- */
.product-section {
    background-color: transparent;
    position: relative;
    z-index: 3;
    overflow: visible;
    padding: 0;
}

.product-card {
    position: relative;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/Background Image NAS.jpg');
    background-size: cover;
    background-position: center right;
    z-index: 0;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 85%,
            transparent 100%);
}

.product-card::before {
    /* Pulled back the gradient even further to make space for the giant NAS image while keeping text readable */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.85) 15%, rgba(8, 8, 8, 0.3) 35%, transparent 100%);
    z-index: 1;
}

.product-grid {
    position: relative;
    z-index: 2;
    /* Sit above the gradient overlay */
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
    /* Vertically center content */
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.product-content {
    padding-bottom: 0;
}

/* Enhancing Product Content Typography for Deep Tech Feel */

.product-content .h-large {
    color: #ffffff;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    /* Matches hero title size */
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.product-content .p-large {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 3rem;
}

.product-image-container {
    position: absolute;
    right: -15vw; /* Pulled back to the left to avoid it being too far off-screen */
    bottom: -130px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 55vw;
    z-index: 2;
}

.product-img {
    width: 105%;
    max-width: 1500px;
    height: auto;
    aspect-ratio: 1456 / 816;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transform-origin: bottom center;
    display: block;
    will-change: transform;
}

.product-content h3 {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(233, 113, 50, 0.12) 0%, rgba(233, 113, 50, 0.03) 100%);
    border: 1px solid rgba(233, 113, 50, 0.3);
    box-shadow:
        inset 0 0 15px rgba(233, 113, 50, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(233, 113, 50, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-icon svg {
    filter: drop-shadow(0 0 8px rgba(233, 113, 50, 0.6));
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.feature-item p {
    font-size: 0.95rem !important;
    /* Overriding inline style */
    color: rgba(255, 255, 255, 0.55) !important;
    /* Overriding inline style */
    font-weight: 300;
    line-height: 1.5;
}

/* ------------------------- Features Grid (Bento) ------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.bento-card:hover {
    border-color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.bento-card.wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .bento-card.wide {
        grid-column: span 1;
    }
}

.card-icon {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--color-system);
}

.card-image {
    width: 100%;
    height: 150px;
    background: #222;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.bento-card:hover .card-image img {
    opacity: 1;
}

/* ------------------------- Card Swap (Core Tech) ------------------------- */
.card-swap-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.card-swap-container {
    position: relative;
    width: 320px;
    height: 480px;
    transform-style: preserve-3d;
    contain: layout style;
}

.card-swap-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform;
}

.card-swap-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--color-system);
}

.card-swap-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .card-swap-wrapper {
        min-height: 400px;
    }

    .card-swap-container {
        width: 280px;
        height: 400px;
    }
}

/* ------------------------- Marquee Partners ------------------------- */
.marquee-wrap {
    background: var(--color-bg-alt);
    padding: 3rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0 3rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--color-text-main);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ------------------------- News & Pilot ------------------------- */
.news-block {
    border-left: 2px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
    font-family: var(--font-heading);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ------------------------- Q&A Section ------------------------- */
#faq {
    padding: 0;
}

.faq-card {
    position: relative;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
}

.faq-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Use URL-encoded spaces (%20) and ampersand (%26) */
    background-image: url('../images/Background%20Image%20Q%26A.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
}

.faq-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Deep tech overlay to ensure text readability over the image */
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.6) 50%, rgba(8, 8, 8, 0.95) 100%);
    z-index: 1;
}

.qa-item-fancy {
    position: relative;
    /* Adjusted transparency to look great over the new background image */
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform;
}

.qa-item-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 113, 50, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qa-item-fancy:hover {
    border-color: rgba(255, 255, 255, 0.2);
    /* Increase glassmorphic contrast on hover */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7) 0%, rgba(10, 10, 10, 0.4) 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(233, 113, 50, 0.15);
}

.qa-item-fancy:hover::before {
    opacity: 1;
}

.qa-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(233, 113, 50, 0.15) 0%, transparent 70%);
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qa-item-fancy:hover .qa-glow {
    opacity: 1;
}

.qa-question {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.qa-answer {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 700px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* ------------------------- Footer ------------------------- */
.footer {
    background-color: var(--color-bg-alt);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover h4 {
    color: var(--color-text-main);
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------- Animations ------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

/* ------------------------- Intro Overlay ------------------------- */
.intro-overlay {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* initial state */
}

.intro-logo-container {
    position: relative;
    width: 280px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-logo {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    clip-path: inset(0% 100% 0% 0%);
}

/* ------------------------- Technology Section Background ------------------------- */
#technology {
    position: relative;
    overflow: visible;
    z-index: 2;
}

#technology::before {
    content: '';
    position: absolute;
    top: -15vh;
    left: 0;
    right: 0;
    bottom: -15vh;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15vh, black calc(100% - 15vh), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15vh, black calc(100% - 15vh), transparent 100%);
}


#technology>* {
    position: relative;
    z-index: 1;
}

/* ------------------------- Specs Grid ------------------------- */
.specs-label {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    /* Deep tech 1px separator lines via background peeking through the gap */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 0%;
    background: var(--color-accent);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spec-item:hover {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    box-shadow: inset 0 0 20px rgba(233, 113, 50, 0.05);
}

.spec-item:hover::before {
    opacity: 1;
    height: 100%;
}

.spec-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.spec-value {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-item:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .spec-item:nth-child(2n) {
        border-right: none;
    }
}

/* ------------------------- Pilot Card ------------------------- */
.pilot-section {
    background-color: transparent;
    overflow: visible;
    padding: 0 8px;
    /* Matches product section to align sizes perfectly */
    position: relative;
    z-index: 3;
}

.pilot-card {
    position: relative;
    min-height: 100vh;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#plasma-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
}

/* ------------------------- Pilot Form ------------------------- */
.pilot-form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.pilot-form-label .required {
    color: var(--color-accent);
    margin-left: 0.2rem;
}

.pilot-form-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0e0e0e;
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.pilot-form-input:hover {
    background: #161616;
    border-color: rgba(255, 255, 255, 0.25);
}

.pilot-form-input:focus {
    background: #111;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(233, 113, 50, 0.15);
}

.pilot-form-input.invalid {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
}

.form-error {
    position: absolute;
    bottom: -1.4rem;
    left: 0;
    font-size: 0.75rem;
    color: #ff4d4d;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.7;
}

select.pilot-form-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
}

select.pilot-form-input:invalid {
    color: var(--color-text-muted);
}

.pilot-form-btn {
    width: 100%;
    border-radius: 4px;
    padding: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--color-accent);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.pilot-form-btn:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* ------------------------- Card Swap ------------------------- */
.card-swap-container {
    position: absolute;
    top: 30%;
    right: 9%;
    transform: translateY(-55%);
    transform-origin: center right;

    perspective: 900px;
    overflow: visible;
    width: 650px;
    height: 430px;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 12px;
    border: 1px solid #fff;
    background-image: url('../images/Background%20Image%20Cards.jpg');
    background-size: cover;
    background-position: center;

    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    width: 650px;
    height: 430px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.6) 100%);
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
    filter: brightness(1.15);
}

.card:hover::before {
    opacity: 0.8;
}

/* Card header — title area at the very top */
.card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    min-height: 42px;
    background: transparent;
}

.card .card-header .card-icon {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
    top: 10px;
}

.card .card-header .card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.card .card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Card body — text area below separator */
.card .card-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.card .card-body p {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Grainient canvas covering whole card */
.grainient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.45;
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

/* ========================= NEW CSS CLASSES (from migrated inline styles) ========================= */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.tech-cards-col {
    height: 480px;
    position: relative;
}

.pilot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* ========================= HAMBURGER MENU ========================= */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 110;
    padding: 0;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when open */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================= RESPONSIVE: ≤ 1200px ========================= */
@media (max-width: 1200px) {
    .section {
        padding: 5rem 0;
    }

    /* Stack Technology grid earlier to prevent table/card overlap */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .tech-cards-col {
        height: 550px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 6rem;
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .card-swap-container {
        position: relative;
        width: 100%;
        max-width: 580px;
        height: 400px;
        transform: translateX(-90px);
        perspective: 1500px;
        margin: 0 auto;
    }

    .card {
        width: 100%;
        height: 100%;
        max-width: 580px;
    }

    .card .card-body {
        padding: 1.5rem 1.5rem;
    }

    .card .card-body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Pilot grid: reduce gap on narrower screens */
    .pilot-grid {
        gap: 4rem;
    }
}

/* ========================= RESPONSIVE: ≤ 900px ========================= */
@media (max-width: 900px) {
    :root {
        --container-padding: 1.5rem;
    }

    /* --- NAV: Hamburger + slide-down menu --- */
    .nav-hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem var(--container-padding);
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* --- Hero --- */
    .hero-content {
        max-width: 100%;
    }

    .intro-text {
        width: 100%;
        margin-left: 0;
    }

    /* --- Product --- */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        position: relative;
        width: 100%;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 2rem;
    }

    .product-img {
        width: 90%;
        max-width: 700px;
        margin: 0 auto;
    }

    .product-card::after {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .product-card::before {
        background: linear-gradient(180deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.7) 50%, rgba(8, 8, 8, 0.95) 100%);
    }

    /* --- Technology --- */
    #technology {
        min-height: auto;
        padding: 5rem 0 !important;
    }

    .tech-cards-col {
        height: 420px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5rem;
    }

    /* Cards now stack flat (no Y offset, no skew) — only need horizontal offset */
    .card-swap-container {
        width: 85%;
        max-width: 480px;
        height: 340px;
        transform: translateX(-50px); /* Smaller shift for flat cards */
        perspective: 1200px;
        margin: 0 auto;
    }

    .card {
        width: 100%;
        height: 100%;
    }

    .specs-grid {
        max-width: 100%;
    }

    /* --- Pilot --- */
    .pilot-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pilot-card {
        min-height: auto;
        padding: 5rem 0;
    }

    /* --- FAQ --- */
    .faq-card {
        padding: 5rem 1rem;
        min-height: auto;
    }

    .qa-item-fancy {
        padding: 2rem 1.5rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================= RESPONSIVE: ≤ 600px ========================= */
@media (max-width: 600px) {
    :root {
        --container-padding: 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    /* --- Nav --- */
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        padding: 2rem 0;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-group .button-outline {
        margin-left: 0 !important;
    }

    .button-primary,
    .button-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* --- Intro --- */
    .intro-stat-container {
        height: 100px;
    }

    .anim-text {
        font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    }

    /* --- Product --- */
    .product-card {
        padding: 3rem 0;
    }

    .product-content .p-large {
        max-width: 100%;
    }

    .product-img {
        width: 95%;
        max-width: 500px;
    }

    .feature-item {
        gap: 0.8rem;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    /* --- Technology --- */
    #technology {
        padding: 3.5rem 0 !important;
    }

    .tech-cards-col {
        height: 340px;
        margin-top: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card-swap-container {
        width: 90%;
        max-width: 340px;
        height: 240px;
        transform: translateX(-30px); /* Minimal shift for flat cards on mobile */
        perspective: 1000px;
        margin: 0 auto;
    }

    .card {
        width: 100%;
        height: 100%;
        min-height: auto;
    }

    .card .card-header {
        padding: 0.6rem 1rem;
        min-height: 34px;
    }

    .card .card-header h3 {
        font-size: 0.95rem;
    }

    .card .card-body {
        padding: 1rem;
    }

    .card .card-body p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* --- Pilot --- */
    .pilot-card {
        padding: 3rem 0;
    }

    .form-container {
        padding: 1.5rem !important;
    }

    /* --- FAQ --- */
    .faq-card {
        padding: 3rem 0.5rem;
        min-height: auto;
    }

    .qa-question {
        font-size: 1.05rem;
    }

    .qa-answer {
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}