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

:root {
    --primary-color: #00a8ff;
    --primary-dark: #0077b6;
    --cyan-color: #00e5ff;
    --cyan-dark: #00acc1;
    --accent-color: #7209b7;
    
    /* Semantic Colors */
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --text-light: #dee2e6;
    
    /* Backgrounds */
    --bg-color: #0b1120; /* Deep dark blue-black */
    --bg-dark: #050914;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    /* UI Elements */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 0.75rem;
    --border-radius-lg: 1.5rem;
    
    /* Branding */
    --brand-purple: #7209b7;
    --brand-purple-light: #b5179e;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --glow-primary: 0 0 20px rgba(0, 168, 255, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 168, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(114, 9, 183, 0.08), transparent 25%);
    z-index: -10;
    pointer-events: none;
}

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

/* Header */
.header {
    background: rgba(5, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-scrolled {
    background: rgba(5, 9, 20, 0.98);
    padding: var(--spacing-xs) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 180px; /* Ensure space for logo */
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo {
    height: auto;
    max-width: 100%;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-horizontal {
    display: block;
    height: 40px; /* Fixed height for desktop */
    width: auto;
}

.logo-stacked {
    display: none;
    max-height: 50px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.nav-cta {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.2);
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-base);
}

.nav-toggle:hover {
    color: var(--primary-color);
}

/* Main content offset for fixed header */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0.95)),
        url('assets/radar.jpeg') center/cover no-repeat;
    z-index: -1;
    filter: saturate(1.2) contrast(1.1);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.15); /* Red background tint */
    border: 1px solid rgba(220, 38, 38, 0.4); /* Red border */
    border-radius: 2rem;
    color: #f87171; /* Bright red text */
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2); /* Red glow */
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* CTA Buttons Section */
.cta-buttons-section {
    padding-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 280px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.features-section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    text-align: left;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-sm);
    background: rgba(0, 168, 255, 0.1);
    border-radius: 1rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Box */
.pricing-box {
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.6) 0%, rgba(10, 15, 25, 0.8) 100%);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: sticky;
    top: 100px;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.pricing-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(0, 168, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.price-emphasis {
    color: var(--cyan-color);
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--cyan-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.5);
}

.pricing-badge {
    position: absolute;
    top: 26px;
    right: -56px;
    background: linear-gradient(135deg, var(--cyan-color) 0%, var(--primary-color) 100%);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.5rem 0;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
    z-index: 10;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
}

.pricing-logo {
    width: 140px;
    height: auto;
    margin-bottom: var(--spacing-md);
    max-width: 100%;
    opacity: 0.9;
}

.pricing-amount {
    margin-bottom: var(--spacing-xs);
}

.pricing-amount .price {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-tagline {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-feature-item:last-child {
    border-bottom: none;
}

.pricing-check {
    color: var(--cyan-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00a8ff 0%, #0077b6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1.125rem 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #33bfff 0%, #0088cc 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-pricing {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    width: 100%;
    margin-top: auto;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
}

/* Demo Section */
.demo-section-wrapper {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.demo-section {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-section .section-header {
    margin-bottom: var(--spacing-lg);
}

.demo-video-placeholder {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.demo-placeholder-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 168, 255, 0.2);
    transition: transform var(--transition-base);
}

.demo-placeholder-image:hover {
    transform: scale(1.01);
}

/* Footer */
.footer {
    background: rgba(5, 9, 20, 0.95);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.privacy-note p {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin: var(--spacing-sm) auto;
    text-align: center;
}

.footer-links a {
    color: var(--cyan-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-sm);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .pricing-box {
        position: relative;
        top: auto;
        max-width: 450px;
        margin: 0 auto;
        order: -1; /* Show pricing first on mobile */
        overflow: hidden; /* Ensure badge stays contained */
    }
}

@media (max-width: 768px) {
    /* Logo */
    .logo-container {
        min-width: auto;
        max-width: 200px;
        flex: 1;
    }

    .logo-horizontal {
        display: block !important;
        height: auto;
        width: 100%;
        max-height: 40px;
        object-fit: contain;
        object-position: left;
    }

    .logo-stacked {
        display: none !important;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-xs);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav-link.nav-cta {
        margin-top: var(--spacing-xs);
    }

    .main {
        padding-top: 70px;
    }

    /* Hero Padding */
    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    /* Typography */
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Layout */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn,
    .btn {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Features */
    .features {
        padding: var(--spacing-md) 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    /* Pricing */
    .pricing-box {
        padding: var(--spacing-md);
    }

    .pricing-badge {
        font-size: 0.6rem;
        right: -40px;
    }

    .pricing-amount .price {
        font-size: 2.25rem;
    }

    /* Demo */
    .demo-section-wrapper {
        padding: var(--spacing-lg) 0;
    }

    .demo-section {
        padding: var(--spacing-md);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
    }

    .privacy-note {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .privacy-note i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .pricing-amount .price {
        font-size: 2rem;
    }

    .pricing-logo {
        width: 100px;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-item,
    .pricing-box,
    .demo-section {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .feature-item:nth-child(1) { animation-delay: 0.1s; }
    .feature-item:nth-child(2) { animation-delay: 0.2s; }
    .feature-item:nth-child(3) { animation-delay: 0.3s; }
    .feature-item:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
