:root {
    /* Color Palette - Premium Medical AI */
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.2);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: rgba(15, 23, 42, 0.08);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.ambient-light {
    display: none;
}
/* Background Ambient Effects */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 60ch;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: all 0.4s var(--ease-out);
    border-bottom: 1px solid var(--border-light);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo img {
    height: 180px;
    width: auto;
    display: block;
    margin-right: 0;
    margin-left: 0;
    align-self: center;
}

.logo-text {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-left: -18px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    border: none;
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7.5rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s var(--ease-out);
}

.hero p {
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections General */
.section {
    padding: 4.5rem 2rem;
    position: relative;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.3);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 35px -20px rgba(15, 23, 42, 0.35);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* How it Works - Steps */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.steps-container::before {
    content: none;
}

.step {
    text-align: left;
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 1rem;
    box-shadow: none;
    color: var(--primary);
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* Stats / Accuracy */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.3);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
    transition-delay: 0.05s;
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 30px -20px rgba(37, 99, 235, 0.45);
}

.stat-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent);
}

.stat-item--text h3 {
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.stat-item--text p {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.stat-item--center h3,
.stat-item--center p {
    width: 100%;
    display: block;
    text-align: center;
}

/* Waitlist / Contact */
.waitlist-section {
    text-align: center;
    background: #f8fafc;
}

.waitlist-section h2 {
    text-align: center;
}

.waitlist-form {
    max-width: 800px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.35);
}

.waitlist-form .form-group {
    width: 100%;
}

.waitlist-form button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1rem;
}

.waitlist-form input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.waitlist-form input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, 0.35);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.05em;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.footer-links a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations & Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #10b981;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    
    .nav-links {
        display: none; /* Mobile menu logic in JS */
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .waitlist-form {
        grid-template-columns: 1fr;
    }
    
    .waitlist-form button {
        grid-column: span 1;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
