:root {
    /* Color Palette - Futuristic Medical (Light Mode) */
    --color-bg-dark: #f8fafc;
    /* Very light cool grey */
    --color-bg-card: #ffffff;
    --color-bg-alt: #f2f7fd;
    /* Light blue for alternating sections */
    --color-primary: #00b4d8;
    /* Slightly darker cyan for contrast */
    --color-primary-dim: rgba(0, 180, 216, 0.1);
    --color-secondary: #0077b6;
    --color-accent: #0096c7;
    --color-text-main: #1e293b;
    /* Dark slate */
    --color-text-muted: #64748b;
    /* Medium slate */
    --color-border: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-section: 6rem;
    /* Default section padding */

    /* Font Sizes */
    --font-size-h1: 4.5rem;
    --font-size-h2: 3rem;
    --font-size-h3: 2rem;

    /* Shadows & Glows */
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --glow-primary: 0 0 20px rgba(0, 180, 216, 0.2);
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 4rem;
        --font-size-h1: 3rem;
        --font-size-h2: 2.2rem;
        --font-size-h3: 1.75rem;
    }
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

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

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

/* Header */
header {
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-dim);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile CTA Button (Hidden on Desktop) */
.mobile-cta {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Animate Hamburger to X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* Safari support */
        display: flex;
        /* Changed from default flex to ensure it applies */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-bottom: 2rem;
        /* safe area offset */
    }

    nav ul.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    /* Stagger items manually or via loop in SCSS, keeping manual for CSS */
    nav ul.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav ul.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav ul.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav ul.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav ul.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav a {
        font-size: 1.75rem;
        /* Larger for better touch target */
        font-weight: 600;
        color: var(--color-text-main);
        padding: 0.5rem 1rem;
    }

    .mobile-cta {
        display: block;
        margin-top: 1rem;
    }

    .mobile-cta .btn {
        padding: 1rem 3rem;
        font-size: 1.1rem;
        box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
    }
}

/* Hero Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    /* Star hidden */
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    /* Start hidden */
}

/* Button Glow Effect */
.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.hero {
    text-align: center;
    padding: 10rem 0 var(--spacing-section);
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 7rem;
        /* Adjusted spacing */
        text-align: center;
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Ensure headline isn't too massive */
    }
}

.btn-primary:hover::after {
    transform: scale(1);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Card Enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 180, 216, 0.15);
    border-color: var(--color-primary);
}

/* Accordion (Details/Summary) */
details summary {
    outline: none;
    transition: color 0.3s;
}

details summary:hover {
    color: var(--color-primary);
}

details[open] summary .icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.icon {
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Form Styles */
input,
select,
textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    /* Ensure text is visible (dark) */
    background: #ffffff;
    /* Explicit white background */
    border: 1px solid var(--color-border);
    border-radius: 4px;
    /* Matches previous style attempt but ensures visibility */
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem !important;
    /* Make room for arrow */
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px var(--color-primary-dim);
}

/* Footer */
footer {
    background: var(--color-bg-card);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    /* Push footer to bottom */
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
}

/* Homepage Funnel Styles */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .split-section .visual-content {
        order: -1;
        /* Visuals first on mobile often looks nice, or keep text first */
    }
}

.visual-content {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Visuals (Orbs/Gradients) */
.abstract-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    filter: blur(60px);
    opacity: 0.3;
    position: absolute;
    animation: pulse 8s ease-in-out infinite;
}

.glass-overlay {
    position: relative;
    width: 80%;
    height: 60%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.15);
    z-index: 2;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.text-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}