/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a25;
    --color-text: #ffffff;
    --color-text-muted: #8a8a9a;
    --color-text-subtle: #5a5a6a;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-accent: #22d3ee;
    --color-accent-secondary: #a855f7;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-text: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 50%, var(--color-accent-secondary) 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img {
    height: 54px;
    width: auto;
}

.logo-text {
    display: none; /* Hidden since logo contains company name */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 400px;
    opacity: 0.6;
    pointer-events: none;
}

.path-svg {
    width: 100%;
    height: 100%;
}

.flight-path {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: dash 20s linear infinite;
}

.trail-dot {
    fill: #9B2D9B;
    animation: flyDots 9s linear infinite, fadeDots 9s linear infinite;
}

.dot-1 { animation-delay: 0.15s; }
.dot-2 { animation-delay: 0.3s; }
.dot-3 { animation-delay: 0.45s; }
.dot-4 { animation-delay: 0.6s; }
.dot-5 { animation-delay: 0.75s; }
.dot-6 { animation-delay: 0.9s; }

@keyframes flyDots {
    0%, 89%, 100% {
        cx: 50;
        cy: 250;
    }
    11% {
        cx: 95;
        cy: 170;
    }
    22% {
        cx: 145;
        cy: 115;
    }
    33% {
        cx: 195;
        cy: 135;
    }
    44% {
        cx: 245;
        cy: 155;
    }
    55% {
        cx: 280;
        cy: 130;
    }
    66% {
        cx: 315;
        cy: 85;
    }
    77% {
        cx: 345;
        cy: 55;
    }
}

@keyframes fadeDots {
    0% { opacity: 0.7; }
    72% { opacity: 0.7; }
    78%, 88% { opacity: 0; }
    100% { opacity: 0.7; }
}

.drone-arrow {
    color: #9B2D9B;
    animation: fly 9s linear infinite, fadeArrow 9s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

@keyframes fly {
    0%, 89%, 100% {
        transform: translate(50px, 250px) rotate(-60deg);
    }
    11% {
        transform: translate(95px, 170px) rotate(-55deg);
    }
    22% {
        transform: translate(145px, 115px) rotate(-25deg);
    }
    33% {
        transform: translate(195px, 135px) rotate(20deg);
    }
    44% {
        transform: translate(245px, 155px) rotate(10deg);
    }
    55% {
        transform: translate(280px, 130px) rotate(-25deg);
    }
    66% {
        transform: translate(315px, 85px) rotate(-35deg);
    }
    77% {
        transform: translate(345px, 55px) rotate(-40deg);
    }
}

@keyframes fadeArrow {
    0% { opacity: 1; }
    72% { opacity: 1; }
    78%, 88% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===== Products Section ===== */
.products {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.product-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.featured {
    border-color: var(--color-primary);
}

.product-card.featured::before {
    opacity: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.product-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Integration Banner */
.integration-banner {
    background: var(--color-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.banner-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.banner-content p {
    color: var(--color-text-muted);
}

.protocol-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.visual-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all var(--transition-medium);
}

.visual-card:first-child {
    grid-column: span 2;
}

.visual-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.visual-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.visual-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.contact-method:hover {
    color: var(--color-accent);
}

.contact-method svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    padding: 30px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.powered-by {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-logo {
    height: 22px;
    width: auto;
    transform: translateY(-2px);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
}

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

.footer-bottom p {
    color: var(--color-text-subtle);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-medium);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 44px;
    }

    .footer-logo {
        height: 18px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .stats-row {
        flex-wrap: wrap;
        gap: 32px;
    }

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

    .visual-card:first-child {
        grid-column: span 1;
    }

    .integration-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .product-card,
    .contact-form {
        padding: 24px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
