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

:root {
    --primary: #0EA5E9;
    --primary-light: #E0F2FE;
    --primary-dark: #0284C7;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-lg: 16px;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

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

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

h1 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero p {
    font-size: 20px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input {
    flex: 1;
    min-width: 260px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.waitlist-form input::placeholder {
    color: var(--text-light);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-note {
    width: 100%;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 12px;
}

/* App Preview */
.app-preview {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.app-preview img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

/* App Preview - Patient Record */
.app-frame {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
}

.app-sidebar {
    width: 56px;
    background: var(--bg-light);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border);
}

.app-sidebar-logo {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
}

.sidebar-nav-icon.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav-icon svg {
    width: 20px;
    height: 20px;
}

.app-main {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg-light);
    min-height: 480px;
}

.patient-profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.patient-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    background: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=240&h=240&fit=crop&crop=face') center/cover;
}

.patient-profile-info {
    flex: 1;
}

.patient-profile-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.patient-dob {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 16px;
}

.patient-dob svg {
    width: 16px;
    height: 16px;
}

.patient-stats {
    display: flex;
    gap: 32px;
}

.patient-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-stat-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.patient-stat-icon svg {
    width: 18px;
    height: 18px;
}

.patient-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.patient-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.patient-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-start {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.consultation-banner {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-size: 14px;
}

.consultation-banner svg {
    width: 18px;
    height: 18px;
}

.consultation-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.patient-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.patient-tab {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.patient-tab.active {
    background: var(--primary-light);
    color: var(--primary);
}

.patient-tab svg {
    width: 16px;
    height: 16px;
}

.patient-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.content-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.content-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.content-card-header a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-text {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.activity-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--bg-light);
    padding: 100px 40px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 15px;
}

/* Why Section */
.why-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.why-content p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.why-list {
    list-style: none;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 3;
}

.why-list span {
    color: var(--text-medium);
    font-size: 16px;
}

.why-visual {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.treatment-map-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.patient-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.patient-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
}

.patient-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.patient-info span {
    font-size: 14px;
    color: var(--text-light);
}

.patient-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 15px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 40px;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-form input {
    flex: 1;
    min-width: 240px;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
}

.btn-white {
    background: white;
    color: var(--primary);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
    font-family: inherit;
}

.btn-white:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    padding: 50px 40px;
    text-align: center;
    background: #2d2d2d;
}

.footer-logo {
    height: 36px;
    margin-bottom: 16px;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

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

/* Success message */
.success-message {
    display: none;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .app-frame {
        flex-direction: column;
    }
    .app-sidebar {
        flex-direction: row;
        width: 100%;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .app-sidebar-logo {
        margin-bottom: 0;
        margin-right: 16px;
    }
    .patient-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .patient-stats {
        justify-content: center;
    }
    .patient-actions {
        width: 100%;
    }
    .patient-content-grid {
        grid-template-columns: 1fr;
    }
    .patient-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 24px;
    }

    .hero {
        padding: 60px 24px 80px;
    }

    h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .features {
        padding: 60px 24px;
    }

    .why-section {
        padding: 60px 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-visual {
        order: -1;
    }

    .app-preview {
        padding: 0 24px;
    }

    .cta-section {
        padding: 60px 24px;
    }
}
