* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Default Dark Mode (Tactical) */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-card: #1a1a1a;
    --color-bg-surface: #1A1A1A;
    --color-primary: #FF6B00;
    --color-secondary: #00FF00;
    --color-text: #ffffff;
    --color-text-secondary: #D1D5DB; /* Lighter for better contrast */
    --color-text-muted: #D1D5DB; /* Lighter for better contrast */
    --color-border: #2a2a2a;

    /* Semantic names for Tailwind mapping */
    --bg-main: var(--color-bg);
    --bg-sidebar: #050505;
    --bg-card: var(--color-bg-card);
    --bg-surface: var(--color-bg-surface);
    --text-main: var(--color-text);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #FAFAFA;
        --color-bg-secondary: #F5F5F5;
        --color-bg-card: #FFFFFF;
        --color-bg-surface: #FFFFFF;
        --color-text: #1A1A1A;
        --color-text-secondary: #374151;
        --color-text-muted: #6B7280;
        --color-border: #E5E7EB;

        --bg-main: var(--color-bg);
        --bg-sidebar: #FFFFFF;
        --bg-card: var(--color-bg-card);
        --bg-surface: var(--color-bg-surface);
        --text-main: var(--color-text);
        --text-muted: var(--color-text-muted);
        --color-primary: #FF5500;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
    /* Force scrollbar to prevent horizontal layout shift */
    position: relative;
}

/* Hero Slider - Crossfade transformation effect */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Slow fade for transformation effect */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

/* Cursor Spotlight Effect - DISABLED */
#cursor-spotlight {
    display: none;
}

/* Ensure all content is above the spotlight */
.container,
.navbar,
.hero-content,
section,
header,
footer,
main,
article,
aside {
    position: relative;
    z-index: 1;
}

/* Container sizing */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Images and cards above spotlight */
img,
.card,
.stat-card,
.cycle-card,
.feature-item,
.visual-card {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff8533);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
}

.btn-primary.large,
.btn-outline.large {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--color-primary);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.icon {
    margin-right: 0.5rem;
}

.hero-stats-mini {
    display: flex;
    gap: 3rem;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

/* Statistics Section */
.statistics {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-bar {
    margin-top: 1.5rem;
    height: 4px;
    background: var(--color-bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
    animation: fillBar 2s ease-out;
}

.stat-progress {
    margin-top: 1rem;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Analysis Section */
.analysis {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-secondary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.analysis-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
}

.feature-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.link-arrow:hover {
    transform: translateX(5px);
}

.visual-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.visual-tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.heatmap-placeholder {
    min-height: 300px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.heatmap-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.heat-point {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.heat-point.high {
    background: radial-gradient(circle, var(--color-primary), transparent);
}

.heat-point.medium {
    background: radial-gradient(circle, #ffaa00, transparent);
}

.heat-point.low {
    background: radial-gradient(circle, var(--color-secondary), transparent);
}

.heatmap-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Statistics Section */
.statistics {
    padding: var(--spacing-xl) 0;
    background: transparent;
    /* Changed from var(--color-bg) */
}

/* Intervention Section */
.intervention {
    padding: var(--spacing-xl) 0;
    background: transparent;
    /* Changed from var(--color-bg) */
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cycle-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.cycle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.cycle-card:hover::before {
    opacity: 1;
}

.cycle-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 50px rgba(255, 107, 0, 0.3);
}

.cycle-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cycle-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 107, 0, 0.1);
}

.cycle-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cycle-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0) 0%, rgba(26, 26, 26, 0.5) 100%);
    /* Semi-transparent */
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.cta-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Analysis Section */
.analysis {
    padding: var(--spacing-xl) 0;
    background: transparent;
    /* Changed from var(--color-bg-secondary) */
}

.cta-privacy {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Footer */
.footer {
    background: transparent;
    /* Changed from var(--color-bg-secondary) */
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .analysis-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cycle-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Global Styles for Spotlight & Glassmorphism */
body {
    background-color: #0a0a0a;
    /* Fallback */
    /* Ensure dynamic cursor works */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Spotlight Overlay (Disabled to prevent black screen issues) */
#cursor-spotlight {
    display: none;
}

/* Ensure content appears above spotlight */
header,
main,
footer {
    position: relative;
    z-index: 10;
}

/* Common Backgrounds */
.bg-glass {
    background: radial-gradient(circle at 50% 50%, rgba(249, 107, 6, 0.15) 0%, rgba(10, 10, 10, 0.8) 100%);
}

/* Google Maps Autocomplete Custom Styles - CRITICAL OVERRIDES */
.pac-container,
.pac-container:after {
    background-color: #000000 !important;
    background-image: none !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
    font-family: var(--font-family);
    margin-top: 5px;
    z-index: 99999 !important;
    color: #ffffff !important;
}

.pac-item {
    background-color: #000000 !important;
    border-top: 1px solid #333 !important;
    color: #a0a0a0 !important;
    padding: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.pac-item-query {
    color: #ffffff !important;
    font-weight: bold;
}

.pac-item span {
    color: #a0a0a0 !important;
    font-size: 0.85rem;
}

.pac-icon {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

.pac-matched {
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

/* Global Light Mode Overrides */
@media (prefers-color-scheme: light) {

    /* Logo Inversion for Light Mode - Ensures visibility on light backgrounds */
    header img[src*="logo"],
    aside img[src*="logo"] {
        filter: invert(1) hue-rotate(180deg);
    }
}

/* Utility: Hide Scrollbar (Cross-browser) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}