/* ============================================
   NIRO Corp — niroaerial.com
   Clean, modern, dark theme
   ============================================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #4f8cff;
    --accent-glow: rgba(79, 140, 255, 0.15);
    --accent-2: #ff6b35;
    --border: #222222;
    --border-light: #2a2a2a;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 20px;
    color: var(--accent);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav-contact {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    transition: var(--transition);
}

.nav-contact:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.sky-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        #0a0e1a 0%, 
        #0d1530 20%,
        #162045 40%,
        #1a2855 60%,
        #1e3065 80%,
        #0a0a0a 100%
    );
    z-index: 0;
}

.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 40% 22%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 18%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 85% 12%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 75% 28%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 32%, rgba(255,255,255,0.5), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Clouds */
.cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.cloud-1 {
    width: 400px; height: 120px;
    top: 15%; left: -5%;
    animation: cloudDrift 60s linear infinite;
}
.cloud-2 {
    width: 300px; height: 80px;
    top: 25%; left: 30%;
    animation: cloudDrift 80s linear infinite;
    animation-delay: -20s;
}
.cloud-3 {
    width: 500px; height: 100px;
    top: 55%; right: -10%;
    animation: cloudDrift 70s linear infinite;
    animation-delay: -40s;
}
.cloud-4 {
    width: 250px; height: 70px;
    top: 65%; left: 15%;
    animation: cloudDrift 90s linear infinite;
    animation-delay: -30s;
    opacity: 0.6;
}
.cloud-5 {
    width: 350px; height: 90px;
    top: 35%; left: 60%;
    animation: cloudDrift 75s linear infinite;
    animation-delay: -50s;
    opacity: 0.5;
}

@keyframes cloudDrift {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

/* Skywriting scene */
.skywrite-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flying drone — synced with text reveal */
.flying-drone {
    position: absolute;
    top: 36%;
    left: -120px;
    z-index: 3;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.6)) drop-shadow(0 6px 16px rgba(0,0,0,0.5));
    animation: none;
}

.skywrite-scene.animate .flying-drone {
    animation: droneFly 8s ease-in-out forwards;
}

@keyframes droneFly {
    0% { left: -120px; top: 36%; transform: translateY(0); }
    5% { top: 35%; transform: translateY(-2px); }
    15% { top: 37%; transform: translateY(2px); }
    25% { top: 35%; transform: translateY(-3px); }
    35% { top: 37%; transform: translateY(1px); }
    45% { top: 35%; transform: translateY(-2px); }
    55% { top: 37%; transform: translateY(2px); }
    65% { top: 35%; transform: translateY(-1px); }
    75% { top: 36%; transform: translateY(3px); }
    85% { top: 35%; transform: translateY(-2px); }
    100% { left: calc(100% + 120px); top: 36%; transform: translateY(0); }
}

/* Smoke trail behind drone */
.smoke-trail {
    position: absolute;
    top: 38%;
    left: 0;
    right: 100%;
    height: 60px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.03) 0%, 
        rgba(255,255,255,0.06) 30%, 
        rgba(255,255,255,0.12) 70%, 
        rgba(255,255,255,0.2) 100%
    );
    filter: blur(12px);
    z-index: 1;
    opacity: 0;
}

.skywrite-scene.animate .smoke-trail {
    animation: smokeTrail 8s ease-in-out forwards, smokeFade 2s ease-out 14s forwards;
}

@keyframes smokeTrail {
    0% { right: 100%; opacity: 0; }
    3% { opacity: 0.8; }
    100% { right: 0%; opacity: 0.5; }
}

@keyframes smokeFade {
    0% { opacity: 0.5; }
    100% { opacity: 0; }
}

/* The skywritten text */
.skywrite-text {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-top: -40px;
}

.skywrite-text span {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 10vw, 130px);
    font-weight: 700;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    /* Clip from left to right to simulate writing */
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

.skywrite-scene.animate .skywrite-text span {
    animation: skyReveal 8s ease-in-out forwards, skyFade 2s ease-out 14s forwards;
}

@keyframes skyReveal {
    0% { clip-path: inset(0 100% 0 0); opacity: 1; }
    100% { clip-path: inset(0 0% 0 0); opacity: 1; }
}

@keyframes skyFade {
    0% { opacity: 1; }
    100% { opacity: 0; filter: blur(4px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    width: 100%;
}

.hero-bottom {
    max-width: 700px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(79, 140, 255, 0.2);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============ ABOUT ============ */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .badge {
    margin-bottom: 16px;
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.about-stat:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.about-stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.3);
}

.btn-primary:hover {
    background: #6ba0ff;
    box-shadow: 0 8px 30px rgba(79, 140, 255, 0.4);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

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

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

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.product-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-tagline {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 13px;
}

.product-use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

/* ============ FEATURED ============ */
.featured {
    padding: 120px 0;
    background: var(--bg-primary);
}

.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.featured-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.featured-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.featured-slot {
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.featured-slot:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.featured-placeholder {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slot-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--border-light);
}

.slot-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* When a featured partner has an image */
.featured-slot.active {
    border-style: solid;
    border-color: var(--border);
}

.featured-slot.active .featured-placeholder {
    padding: 0;
}

.featured-slot.active img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* ============ CONTACT ============ */
.contact {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-inner > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 20px;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-corp {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero-desc {
        font-size: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 28px;
    }

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

    .featured-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .section-header h2,
    .featured-info h2,
    .contact-inner h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .product-card {
        padding: 28px;
    }

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