/* --- 1. Global Setup & Variables --- */
:root {
    --color-bg-primary: #030712; /* Near Black */
    --color-bg-secondary: #111827; /* Dark Blue-Gray */
    --color-text-primary: #F3F4F6; /* Light Gray */
    --color-text-secondary: #9CA3AF; /* Medium Gray */
    
    /* === BLUE THEME === */
    --color-accent-primary: #3B82F6; /* Primary Blue */
    --color-accent-secondary: #60A5FA; /* Lighter Blue */
    /* === END BLUE THEME === */

    --color-border: #374151; /* Gray */
    
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll for anchor links and accounts for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Critical for your dev note! */
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- 2. Typography & Links --- */
h1, h2, h3 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-text-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- 3. Reusable Components (Buttons, Links) --- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--color-accent-primary);
    color: #FFF;
}
.button-primary:hover {
    background-color: #2563EB; /* Darker Blue */
    color: #FFF;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}
.button-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-text-primary);
    color: #FFF;
}

.button-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.arrow-link {
    font-weight: 600;
    color: var(--color-accent-secondary);
}
.arrow-link:hover {
    text-decoration: underline;
}

.section-subheading {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* --- 4. Site Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(3, 7, 18, 0.8); /* Transparent dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    /* Transition for scroll shadow */
    transition: box-shadow 0.3s ease;
}
/* JS-added class for scroll shadow */
.site-header.has-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 0.5rem 0;
}
.main-nav a:hover, .main-nav a.is-active {
    color: var(--color-text-primary);
}

.nav-cta {
    background-color: var(--color-accent-primary);
    color: #FFF !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}
.nav-cta:hover {
    background-color: #2563EB; /* Darker Blue */
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before, .hamburger-inner::after {
    content: '';
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}

/* Mobile Menu Active State (JS-driven) */
.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}
.mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    opacity: 0;
}

/* --- 5. Page Sections --- */

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 90vh; /* Reduced min-height as this isn't the homepage */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.hero-content {
    max-width: 65ch;
}

.hero h1 {
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}
.hero-subheading {
    display: block;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}
.hero-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.hero blockquote {
    border-left: 4px solid var(--color-accent-primary);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    max-width: 55ch;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}
.hero blockquote p {
    color: var(--color-text-primary);
}

.hero-image-wrapper {
    max-width: 300px;
    width: 100%;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Makes the image circular */
    border: 4px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Bar */
.cta-bar {
    background-color: var(--color-bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.cta-bar p {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}
.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Process */
.process {
    padding: 5rem 0;
}
.process-list {
    list-style: none;
    margin-top: 3rem;
    max-width: 800px;
}
.process-list li {
    padding: 1.5rem 0 1.5rem 3rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.process-list li:first-child {
    border-top: 1px solid var(--color-border);
}
.process-list h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-primary);
}
.process-list h3 span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-primary);
}
.process-list p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Problems */
.problems {
    text-align: center;
    padding: 5rem 0;
    background-color: var(--color-bg-secondary);
}
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width:100%;
}
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.problem-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.problem-card h3 {
    color: var(--color-accent-secondary);
}
.problem-card .arrow-link {
    margin-top: auto; /* Pushes link to the bottom */
}
.problem-card p {
    margin-bottom: 1rem;
}

/* --- 6. Use Cases (Scroll Snap Section) --- */
.use-cases-intro {
    padding: 5rem 0;
    text-align: center;
}

/* The Viewport (as requested) */
.usecase-viewport {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
}
.usecase-container {
    display: block;
}

/* Each Snap-Item (as requested) */
.usecase {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
}
.usecase-content {
    max-width: 60ch;
    text-align: center;
}
.usecase-content h3 {
    font-size: 1.75rem;
    color: var(--color-text-primary);
}
.usecase-content .button {
    margin-top: 1.5rem;
}

/* Dot Navigation (Your UX recommendation) */
.usecase-dots {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.usecase-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-text-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.usecase-dots button:hover {
    border-color: var(--color-text-primary);
}
.usecase-dots button.is-active {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    transform: scale(1.2);
}

/* Values */
.values {
    text-align: center;
    padding: 5rem 0;
}
.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.values-list li {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}
.values-list h3 {
    color: var(--color-text-primary);
}
.values-list p {
    margin-bottom: 0;
}

/* Social Proof */
.social-proof {
    padding: 5rem 0;
    text-align: center;
}
.social-proof .button-large {
    margin-top: 1.5rem;
}

/* Contact */
.contact {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}
.contact p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}
.contact a {
    color: var(--color-accent-secondary);
    font-weight: 600;
}
.contact a:hover {
    text-decoration: underline;
}

/* --- 7. Footer --- */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}
.site-footer p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* --- 8. Media Queries (Mobile-First) --- */

/* Tablet & Desktop */
@media (min-width: 769px) {
    .hero-container {
        flex-direction: row-reverse; /* Image on the right */
        text-align: left;
        gap: 3rem;
        align-items: center;
    }
    .hero-content {
        max-width: 60ch;
    }
    .hero h1, .hero-intro, .hero blockquote {
        margin-left: 0;
        margin-right: 0;
    }
    .hero blockquote {
        text-align: left;
    }
    .hero-image-wrapper {
        max-width: 350px;
        flex-shrink: 0; /* Prevents image from shrinking */
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-primary);
        flex-direction: column;
        padding: 2rem;
    }
    
    /* JS-driven class */
    .main-nav.is-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        font-size: 1.5rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .nav-cta {
        padding: 0.75rem 1.25rem;
        text-align: center;
        display: block;
        width: 100%;
    }

    /* Hide dot nav on small screens where it might get crowded */
    .usecase-dots {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 250px; /* Smaller image on mobile */
    }
    .hero-container {
        padding-top: 1rem;
        /* Re-center text on mobile, overriding desktop styles */
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero h1, .hero-intro, .hero blockquote {
        margin-left: auto;
        margin-right: auto;
    }
    .hero blockquote {
        text-align: left;
        max-width: 90%;
    }
}