/* ============================================
   Drone Satellite — Dark Tech-Forward Design
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --bg-card: #111114;
    --bg-elevated: #161619;
    --bg-alt: #0e0e12;
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.18);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-dim: #6e6e73;
    --white: #ffffff;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59,130,246,0.25);
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-h: 64px;
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--border);
    transform: translateZ(0);
    will-change: backdrop-filter;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark { color: var(--accent); font-size: 14px; }

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

.nav-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 980px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 30px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.4);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(59,130,246,0.15);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    background: rgba(255,255,255,0.18);
}

.btn-full { width: 100%; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-photo-bg {
    position: absolute;
    inset: -20px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    animation: heroPhotoKenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes heroPhotoKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.55) 100%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    transform: translateZ(0);
    will-change: filter;
}

.glow-1 {
    width: 600px; height: 600px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: rgba(59,130,246,0.12);
}

.glow-2 {
    width: 400px; height: 400px;
    bottom: -100px; right: -100px;
    background: rgba(6,182,212,0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 980px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.35);
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.gradient-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    text-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #ffffff;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 3px 20px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero drone visual */
.hero-visual {
    position: relative;
    padding: 40px 0;
}

.drone-system {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.host-drone, .sat-drone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.drone-icon {
    width: 120px;
    height: 40px;
    color: var(--white);
    filter: drop-shadow(0 0 30px rgba(59,130,246,0.6)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.drone-icon-sm {
    width: 80px;
    height: 30px;
}

.prop {
    animation: propSpin 0.2s linear infinite;
    transform-origin: center;
}

@keyframes propSpin {
    to { transform: rotate(360deg); }
}

.drone-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.dock-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dock-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    opacity: 1;
}

.dock-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #60a5fa;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59,130,246,0.5), 0 0 40px rgba(59,130,246,0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.signal-waves {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.wave {
    position: absolute;
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 50%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.wave-1 { width: 200px; height: 100px; animation: waveExpand 3s ease-out infinite; }
.wave-2 { width: 300px; height: 150px; animation: waveExpand 3s ease-out infinite 1s; }
.wave-3 { width: 400px; height: 200px; animation: waveExpand 3s ease-out infinite 2s; }

@keyframes waveExpand {
    0% { opacity: 0.5; }
    100% { opacity: 0; transform: translateX(-50%) scale(1.3); }
}

/* --- Sections --- */
.section {
    padding: 72px 0;
}

.section-dark {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.section-alt {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    text-align: center;
}

.section-label.light { color: var(--cyan); }

.section-label--sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.section-title.light { color: var(--white); }

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.section-desc.light { color: rgba(255,255,255,0.75); }

/* --- Tech Steps --- */
.tech-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.tech-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.tech-step:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-4px);
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.step-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 12px;
}

.tech-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.tech-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

.feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Home Security --- */
.security-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.security-content .section-label,
.security-content .section-title,
.security-content .section-desc {
    text-align: left;
    margin-left: 0;
}

.security-content .section-desc {
    max-width: none;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.sec-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sec-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-feature h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.sec-feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Security Visual */
.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.2);
}

.security-photo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.security-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.house-icon {
    font-size: 48px;
    z-index: 2;
    position: relative;
}

.alert-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,0.15);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring-2 { width: 200px; height: 200px; animation-delay: 0.5s; }
.ring-3 { width: 280px; height: 280px; animation-delay: 1s; }

@keyframes ringPulse {
    0% { opacity: 0.6; border-color: rgba(59,130,246,0.3); }
    100% { opacity: 0; border-color: rgba(59,130,246,0); transform: translate(-50%, -50%) scale(1.3); }
}

.security-drone-path {
    position: absolute;
    top: 15%;
    right: 10%;
}

.sec-drone {
    color: var(--accent);
    font-size: 24px;
    animation: droneFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes droneFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -10px); }
    50% { transform: translate(-40px, 5px); }
    75% { transform: translate(-20px, 15px); }
}

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

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

.benefit-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.benefit-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.benefit-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}

.benefit-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
}

.benefit-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.benefit-cta:hover { color: var(--accent-hover); }

/* --- Licensing --- */
.licensing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.license-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
}

.license-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.license-card ul {
    list-style: none;
}

.license-card li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-left: 24px;
    position: relative;
}

.license-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-weight: 700;
}

.license-cta-wrapper {
    text-align: center;
    padding: 40px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.license-cta-wrapper p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- About --- */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.value:hover {
    border-color: var(--border-hover);
}

.value h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.value p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Quote Form --- */
.quote-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.quote-info .section-label,
.quote-info .section-title {
    text-align: left;
}

.quote-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qc-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.qc-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qc-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.qc-item a, .qc-item span {
    font-size: 15px;
    color: var(--text);
}

.quote-form-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

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

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.footer-sub {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 4px;
    text-align: center;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--white); }

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

/* --- Fade-in --- */
/* Progressive enhancement: only hide elements when JS is running (js-anim class on <html>).
   If JS fails, content stays visible. */
.js-anim .fade-in {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Slide from left/right variants */
.js-anim .fade-in-left {
    opacity: 0;
    transform: translate3d(-60px, 0, 0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-left.visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

.js-anim .fade-in-right {
    opacity: 0;
    transform: translate3d(60px, 0, 0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-right.visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Scale up variant */
.js-anim .fade-in-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-scale.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Section headings animation */
.js-anim .section-title,
.js-anim .section-label,
.js-anim .section-desc {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.anim-in,
.section-label.anim-in,
.section-desc.anim-in {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Hero entrance animations */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-ctas,
.hero-visual {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback: if hero-animate never gets added, show content after 3s */
@keyframes hero-fallback {
    to { opacity: 1; transform: none; }
}
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-ctas,
.hero-visual {
    animation: hero-fallback 0s 3s forwards;
}

.hero-animate .hero-badge {
    opacity: 1; transform: translate3d(0,0,0); transition-delay: 0.1s;
}
.hero-animate .hero-title {
    opacity: 1; transform: translate3d(0,0,0); transition-delay: 0.25s;
}
.hero-animate .hero-subtitle {
    opacity: 1; transform: translate3d(0,0,0); transition-delay: 0.5s;
}
.hero-animate .hero-ctas {
    opacity: 1; transform: translate3d(0,0,0); transition-delay: 0.7s;
}
.hero-animate .hero-visual {
    opacity: 1; transform: translate3d(0,0,0) scale(1); transition-delay: 0.9s;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 40px; right: 40px;
    background: var(--bg-elevated);
    color: var(--text);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
    z-index: 3000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .tech-steps { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .security-layout { grid-template-columns: 1fr; }
    .security-visual { order: -1; }
    .quote-layout { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }
    .licensing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }

    .nav-toggle { display: flex; }

    .tech-steps { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-title { letter-spacing: -1px; }

    .drone-system {
        flex-direction: column;
        gap: 12px;
    }

    .dock-indicator {
        transform: rotate(90deg);
    }

    .security-content .section-label,
    .security-content .section-title {
        text-align: center;
    }

    .security-content .section-desc {
        text-align: center;
    }
}

/* --- FAQ Section --- */
.faq-list {
    max-width: 780px;
    margin: 40px auto 0;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
}
.faq-question:hover { color: #60a5fa; }
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
    color: #60a5fa;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}
.faq-answer p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   PREMIUM SCROLL ANIMATIONS & POLISH
   ============================================ */

/* --- Sections need position for pseudo-element dividers --- */
.section {
    position: relative;
}

/* --- Section divider glow lines (smooth transitions between sections) --- */
.section + .section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.18) 30%, rgba(6,182,212,0.12) 70%, transparent);
    pointer-events: none;
    z-index: 2;
}

/* (heading and fade-in timing set above) */

/* --- Enhanced button hover effects --- */
.btn-primary {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 40px var(--accent-glow),
        0 0 80px rgba(59,130,246,0.15),
        0 8px 32px rgba(0,0,0,0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn-ghost {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.btn-ghost:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* --- Card hover enhancements --- */
.tech-step:hover,
.feature:hover,
.benefit-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(59,130,246,0.08);
}

.value:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.license-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.license-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* --- FAQ items reveal --- */
.js-anim .faq-item.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- About text reveal --- */
.js-anim .about-text.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-text.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Benefit CTA link hover --- */
.benefit-cta {
    transition: all 0.3s ease;
    display: inline-block;
}

.benefit-cta:hover {
    transform: translateX(4px);
}

/* --- Footer link underline animation --- */
.footer-links a {
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* --- Form focus glow enhancement --- */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px rgba(59,130,246,0.1);
}

/* --- Security photo hover --- */
.security-photo {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.security-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(59,130,246,0.2);
}

/* --- Hero parallax base (desktop only) --- */

/* --- Reduced Motion: disable all animations --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .faq-item.fade-in,
    .about-text.fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .section-title,
    .section-label,
    .section-desc {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-ctas,
    .hero-visual {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-photo {
        animation: none !important;
    }

    .hero-photo-bg {
        transform: none !important;
    }
}
