/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #818CF8;
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-gray-light: #F3F4F6;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-light);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

/* Loading and Success States */
.btn.loading {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.btn.success {
    background: linear-gradient(135deg, #10B981, #34D399);
    cursor: default;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Checkmark */
.success-checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    color: #10B981;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    margin-right: 8px;
    animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background-color: var(--bg-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-gray-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background-color: var(--bg-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.375rem 0;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
}

.email-signup-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    border: 1px solid rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.email-signup-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.email-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 2, 1);
    position: relative;
}

.email-input::placeholder {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.email-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.email-input:focus::placeholder {
    color: var(--text-primary);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
        min-height: 70vh;
        margin-top: 0;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-height: 60vh;
        margin-top: 0;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(90deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

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

.hero-title {
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(4rem, 12vw, 6rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(3.5rem, 13vw, 5.5rem);
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

@media (max-width: 768px) {
    .hero-ctas {
        justify-content: center;
        width: 100%;
    }
}

.email-signup-hero {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-3xl);
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .email-signup-hero {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: var(--radius-2xl);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

.email-signup-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.email-input-large {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    border-radius: var(--radius-2xl);
    min-width: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .email-input-large {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 16px;
        min-height: 48px;
    }
}

.email-input-large::placeholder {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.email-input-large:focus {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.email-input-large:focus::placeholder {
    color: var(--text-primary);
}

/* Hero Animation - Neue Morphing Animation */
.hero-animation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    gap: 2rem;
}

@media (max-width: 768px) {
    .hero-animation {
        min-height: 280px;
        gap: 1.5rem;
        width: 100%;
        padding: 0 1rem;
    }
}

.hero-morph-container {
    position: relative;
    width: 320px;
    height: 280px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-morph-container {
        width: 260px;
        height: 220px;
        padding: 1rem;
        border-radius: var(--radius-2xl);
    }
}

@media (max-width: 480px) {
    .hero-morph-container {
        width: 220px;
        height: 180px;
        padding: 0.75rem;
        border-radius: var(--radius-xl);
    }
}

.hero-morph-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.hero-morph-step.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-top: 1rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-step-title {
        font-size: 0.875rem;
        margin-top: 0.75rem;
        font-weight: 600;
    }
    
    .hero-indicator {
        width: 6px;
        height: 6px;
        min-width: 24px;
        min-height: 24px;
        border-width: 1px;
    }
    
    .hero-step-indicators {
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-step-title {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .hero-indicator {
        width: 5px;
        height: 5px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .hero-step-indicators {
        gap: 0.375rem;
        margin-top: 0.75rem;
    }
}

    .hero-step-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Step 1: Hero Prescription */
.hero-prescription {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-color);
    position: relative;
    width: 200px;
    height: 120px;
    animation: heroPrescriptionFloat 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-prescription {
        width: 180px;
        height: 110px;
        padding: 1rem;
        border-width: 2px;
    }
    
    .prescription-type {
        font-size: 0.875rem;
    }
    
    .prescription-date {
        font-size: 0.625rem;
    }
    
    .prescription-header {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-prescription {
        width: 160px;
        height: 100px;
        padding: 0.75rem;
        border-width: 2px;
    }
    
    .prescription-type {
        font-size: 0.75rem;
    }
    
    .prescription-date {
        font-size: 0.5rem;
    }
    
    .prescription-header {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.375rem;
    }
}

@keyframes heroPrescriptionFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    gap: 0.5rem;
}

.prescription-type {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.prescription-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prescription-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-line {
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.content-line:nth-child(1) { width: 85%; }
.content-line:nth-child(2) { width: 65%; }
.content-line:nth-child(3) { width: 90%; }

/* Step 2: Hero Morphing Process */
.hero-morph-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Drei lila Kreise oben */
.ai-brain {
    display: flex;
    gap: 0.75rem;
    animation: brainPulse 3s ease-in-out infinite;
}

.brain-circle {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: brainCirclePulse 2s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .brain-circle {
        width: 20px;
        height: 20px;
    }
    
    .ai-brain {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .brain-circle {
        width: 18px;
        height: 18px;
    }
    
    .ai-brain {
        gap: 0.375rem;
    }
}

.brain-circle:nth-child(1) {
    animation-delay: 0s;
}

.brain-circle:nth-child(2) {
    animation-delay: 0.4s;
}

.brain-circle:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes brainCirclePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.7;
    }
}

/* Drei Buttons/Tags darunter */
.data-chips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.data-chip {
    background: var(--primary-gradient);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-2xl);
    font-size: 1rem;
    font-weight: 600;
    animation: chipFloat 3s ease-in-out infinite;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .data-chip {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .data-chips {
        gap: 0.75rem;
    }
    
    .data-chips-row {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .data-chip {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .data-chips {
        gap: 0.5rem;
    }
    
    .data-chips-row {
        gap: 0.375rem;
    }
}

.data-chip:nth-child(1) {
    animation-delay: 0s;
}

.data-chip:nth-child(2) {
    animation-delay: 0.5s;
}

.data-chip:nth-child(3) {
    animation-delay: 1s;
}

.data-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Spezielle Anordnung: 2 oben nebeneinander, 1 darunter */
.data-chip:nth-child(1),
.data-chip:nth-child(2) {
    display: inline-block;
    margin-right: 1rem;
}

.data-chip:nth-child(2) {
    margin-right: 0;
}

.data-chip:nth-child(3) {
    margin-top: 0.5rem;
}

@keyframes chipFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: translateY(-8px) scale(1.05); 
        box-shadow: var(--shadow-lg);
    }
}

.prescription-icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: iconFloat 2s ease-in-out infinite;
}

.prescription-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes iconGlow {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.1; 
    }
}

@keyframes shrinkToIcon {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-180deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(0.7) rotate(-90deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

.morph-arrow-hero {
    font-size: 3rem;
    color: white;
    animation: heroArrowPulse 1.5s ease-in-out infinite;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.morph-arrow-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: arrowBackground 2s ease-in-out infinite;
}

@keyframes arrowBackground {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3); 
        opacity: 0.1; 
    }
}

@keyframes heroArrowPulse {
    0%, 100% { 
        transform: scale(1) translateX(0); 
    }
    25% { 
        transform: scale(1.2) translateX(3px); 
    }
    50% { 
        transform: scale(1.4) translateX(6px); 
    }
    75% { 
        transform: scale(1.2) translateX(3px); 
    }
}

.appointment-grow {
    animation: growFromIcon 0.8s ease-in-out 1.2s both;
    position: relative;
}

.appointment-grow::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #10B981;
    border-radius: 50%;
    animation: growRing 1.2s ease-in-out 1.4s infinite;
}

@keyframes growRing {
    0% { 
        transform: scale(0.5); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1.5); 
        opacity: 0; 
    }
}

.appointment-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: appointmentIconFloat 2s ease-in-out infinite;
}

.appointment-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #10B981, #34D399);
    border-radius: 50%;
    opacity: 0.3;
    animation: appointmentIconGlow 2s ease-in-out infinite;
}

@keyframes appointmentIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes appointmentIconGlow {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.1; 
    }
}

@keyframes growFromIcon {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(180deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(0.7) rotate(90deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

/* Zusätzliche Verbindungslinie zwischen den Icons */


/* Step 3: Hero Calendar with Appointment */
.hero-calendar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    width: 220px;
    height: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: heroCalendarFloat 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-calendar {
        width: 220px;
        height: 160px;
        padding: 1rem;
    }
    
    .calendar-header {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .day {
        font-size: 0.625rem;
    }
    
    .appointment-highlight {
        padding: 0.5rem 0.75rem;
        margin-top: 0.5rem;
    }
    
    .appointment-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-calendar {
        width: 200px;
        height: 140px;
        padding: 0.75rem;
    }
    
    .calendar-header {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.375rem;
    }
    
    .calendar-grid {
        gap: 0.125rem;
    }
    
    .day {
        font-size: 0.5rem;
    }
    
    .appointment-highlight {
        padding: 0.375rem 0.5rem;
        margin-top: 0.375rem;
    }
    
    .appointment-time {
        font-size: 0.625rem;
    }
}

@keyframes heroCalendarFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.month {
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
    flex-grow: 1;
    align-content: center;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.day.available {
    background: white;
    color: var(--text-secondary);
    border-color: #E2E8F0;
}

.day.booked {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    animation: heroBookedPulse 2s ease-in-out infinite;
}

@keyframes heroBookedPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-sm);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: var(--shadow-md);
    }
}

.day.recommended {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    border-color: #10B981;
    box-shadow: var(--shadow-sm);
    animation: heroRecommendedGlow 2s ease-in-out infinite;
}

@keyframes heroRecommendedGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-sm);
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
}

.appointment-highlight {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
    animation: appointmentHighlight 2s ease-in-out infinite;
}

.appointment-time {
    font-weight: 700;
    font-size: 0.875rem;
}

@keyframes appointmentHighlight {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: var(--shadow-lg);
    }
}

/* Prescription Card */
.prescription-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    width: 300px;
    height: 200px;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.prescription-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.prescription-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prescription-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prescription-line {
    height: 1px;
    background: var(--border-color);
    border-radius: 1px;
}

.prescription-line:nth-child(1) { width: 80%; }
.prescription-line:nth-child(2) { width: 60%; }
.prescription-line:nth-child(3) { width: 90%; }

/* Recognition Chips */
.recognition-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.chip {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-2xl);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: chipFloat 2s ease-in-out infinite;
}

.chip:nth-child(2) { animation-delay: 0.3s; }
.chip:nth-child(3) { animation-delay: 0.6s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Timeline */
.timeline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--border-color));
    border-radius: 1px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}



/* Calendar */
.calendar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    width: 280px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.calendar-month {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day.available {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.calendar-day.available:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-day.booked {
    background: var(--primary-color);
    color: white;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: 2.5rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        line-height: 1.2;
    }
}

/* How it works */
.how-it-works {
    background: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    display: none;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .process-flow {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .process-flow {
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .process-step {
        gap: 1.5rem;
    }
    
    .step-info {
        max-width: none;
        padding: 0 0.5rem;
    }
    
    .step-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .step-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .process-flow {
        gap: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .process-step {
        gap: 1rem;
    }
    
    .step-info {
        padding: 0;
    }
    
    .step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    animation: slideInUp 1s ease-out;
}

@media (max-width: 768px) {
    .process-step {
        gap: 1rem;
    }
}

.process-step:nth-child(3) {
    animation-delay: 0.2s;
}

.process-step:nth-child(5) {
    animation-delay: 0.4s;
}

.step-visual {
    position: relative;
    margin-bottom: 2rem;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.step-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.step-illustration {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 0;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    width: 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .step-illustration {
        width: 260px;
        height: 180px;
    }
    
    .step-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .step-illustration {
        width: 220px;
        height: 150px;
    }
    
    .step-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
}

/* Step 1: Prescription Mock */
.prescription-mock {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 220px;
    height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    gap: 0.75rem; /* Reduziert von 1.5rem für bessere Ausrichtung */
}

.prescription-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.prescription-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.prescription-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: center;
}

.line {
    height: 1px;
    background: var(--border-color);
    border-radius: 1px;
}

.line:nth-child(1) { width: 80%; }
.line:nth-child(2) { width: 60%; }
.line:nth-child(3) { width: 90%; }

.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% { 
        transform: translateY(0); 
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(160px); 
        opacity: 0;
    }
}

/* Step 2: AI Analysis */
.ai-analysis {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 220px;
    height: 140px;
    padding: 0;
    position: relative;
    overflow: visible;
}

@keyframes aiBrainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

@keyframes aiBrainCirclePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.08); 
        opacity: 0.8;
    }
}

@keyframes aiChipFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: translateY(-2px) scale(1.005); 
        box-shadow: var(--shadow-md);
    }
}

.ai-brain {
    display: flex;
    gap: 0.5rem;
    animation: aiBrainPulse 3s ease-in-out infinite;
}

.brain-circle {
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: aiBrainCirclePulse 2s ease-in-out infinite;
}

.brain-circle:nth-child(1) {
    animation-delay: 0s;
}

.brain-circle:nth-child(2) {
    animation-delay: 0.4s;
}

.brain-circle:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes brainCirclePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.7;
    }
}

.data-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
}

.data-chips-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.data-chip {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 500;
    animation: aiChipFloat 3s ease-in-out infinite;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.data-chip:nth-child(1) {
    animation-delay: 0s;
}

.data-chip:nth-child(2) {
    animation-delay: 0.5s;
}

.data-chip:nth-child(3) {
    animation-delay: 1s;
}

@keyframes chipFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: translateY(-8px) scale(1.05); 
        box-shadow: var(--shadow-lg);
    }
}

/* Step 3: Calendar Booking - Komplett neu */
.calendar-booking {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    width: 240px;
    height: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.calendar-header span {
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.calendar-day.available {
    background: white;
    color: var(--text-secondary);
    border-color: #E2E8F0;
}

.calendar-day.available:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.calendar-day.booked {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    animation: bookedPulse 2s ease-in-out infinite;
}

.calendar-day.recommended {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    border-color: #10B981;
    box-shadow: var(--shadow-sm);
    animation: recommendedGlow 2s ease-in-out infinite;
}

/* Process Connectors */
.process-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .process-connector {
        flex-direction: row;
        padding: 0 1.5rem;
    }
}

.connector-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    border-radius: 2px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@media (min-width: 1024px) {
    .connector-line {
        width: 3px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    
    .connector-line::after {
        animation: shimmerVertical 2s ease-in-out infinite;
    }
}

.connector-arrow {
    color: var(--primary-color);
    animation: arrowPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes shimmerVertical {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Step Info */
.step-info {
    text-align: center;
    max-width: 320px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
    flex-grow: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Benefits */
.benefits {
    background: white;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        gap: 2rem;
    }
    
    .benefit-card {
        padding: 1.75rem;
    }
    
    .benefit-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .tabs {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

.benefit-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.benefit-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Free Integration Section */
.free-integration {
    background: var(--bg-gray);
    padding: 6rem 0;
}

.free-integration-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .free-integration-content {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

@media (max-width: 768px) {
    .free-integration-content {
        gap: 3rem;
    }
    
    .integration-visual {
        order: -1;
    }
    
    .software-connection-vertical {
        padding: 2rem;
        min-width: 200px;
    }
    
    .integration-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .integration-benefits {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        gap: 0.75rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .benefit-content h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .benefit-content p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .email-signup-integration {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .free-integration-content {
        gap: 2rem;
    }
    
    .software-connection-vertical {
        padding: 1.5rem;
        min-width: 180px;
    }
    
    .integration-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .integration-benefits {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .benefit-item {
        gap: 0.5rem;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .benefit-content h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .benefit-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .email-signup-integration {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

.free-integration-text {
    max-width: 600px;
}

.integration-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.integration-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.benefit-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.email-signup-integration {
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.email-signup-integration:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.software-connection {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.software-connection-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    min-width: 200px;
}

.software-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    min-width: 100px;
    max-width: 120px;
}

.software-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.software-card.medi-slot {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.software-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.software-card span {
    font-weight: 500;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
}

.connection-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.connection-line-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.connection-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.connection-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.connection-dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* Privacy */
.privacy {
    background: white;
}

.trust-card {
    background: var(--bg-gray);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    max-width: 800px;
    margin: 0 auto;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: none;
}

@media (min-width: 768px) {
    .privacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .privacy-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.privacy-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.privacy-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.privacy-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.privacy-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ */
.faq {
    background: var(--bg-gray);
}

.faq-list {
    max-width: none;
    margin: 0;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-icon {
    transition: var(--transition);
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    background: var(--primary-gradient);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.final-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.final-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.email-signup-final {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-3xl);
    padding: 0.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
}

.email-signup-final:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.email-signup-mobile {
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.email-signup-mobile:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.waitlist-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .brand-text {
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Mobile CTA - Enhanced */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    display: block;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mobile-cta.hidden {
    transform: translateY(100%);
}

.email-signup-mobile {
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    max-width: 100%;
}

.email-signup-mobile:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.email-signup-mobile input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    border-radius: var(--radius-lg);
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.email-signup-mobile input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.email-signup-mobile input[type="email"]:focus {
    background: var(--bg-gray);
}

.email-signup-mobile .btn {
    white-space: nowrap;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile-only button */
.mobile-only {
    display: none;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .email-signup-nav {
        display: none;
    }
    
    .mobile-only {
        display: inline-flex;
    }
    
    .desktop-only {
        display: none;
    }
    
    .nav-actions {
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-actions .btn {
        display: inline-flex;
        min-height: 36px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        border-radius: var(--radius-md);
        font-weight: 600;
        align-items: center;
        justify-content: center;
    }
    
    /* Enhanced mobile navbar */
    .navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(229, 231, 235, 0.2);
    }
    
    .navbar .container {
        padding: 0.5rem 1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .nav-brand {
        gap: 0.375rem;
        flex-shrink: 0;
        min-width: 0;
        margin-left: 0;
        margin-right: auto;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }
    

    
    .logo {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .brand-text {
        font-size: 0.875rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        line-height: 1;
    }
    
    /* Force left alignment for mobile */
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .nav-brand {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Mobile CTA visibility */
    .mobile-cta {
        display: block;
    }
    
    /* Account for mobile CTA */
    .hero {
        padding-bottom: 6rem;
        min-height: 70vh;
    }
    
    .footer {
        margin-bottom: 5rem;
    }
    
    /* Improve mobile hero section */
    .hero-content {
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 4.5vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 2.5vw, 1.125rem);
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .email-signup-hero {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .email-input-large {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 16px;
        min-height: 48px;
    }
}

/* Extra small devices - enhanced mobile experience */
@media (max-width: 480px) {
    .navbar .container {
        flex-direction: row;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        justify-content: flex-start;
        gap: 0.25rem;
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }
    
    .nav-actions {
        justify-content: flex-end;
        margin-left: auto;
        margin-right: 0;
        padding-right: 0;
        padding-left: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-actions .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
        min-height: 28px;
        font-weight: 600;
    }
    
    .logo {
        width: 18px;
        height: 18px;
    }
    
    .brand-text {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Ultra small devices */
    @media (max-width: 360px) {
        .navbar .container {
            padding: 0.375rem 0.5rem;
            gap: 0.25rem;
            justify-content: space-between;
        }
        
        .nav-brand {
            margin-left: 0;
            margin-right: auto;
            padding-left: 0;
            padding-right: 0;
        }
        
        .nav-actions {
            margin-left: auto;
            margin-right: 0;
            padding-left: 0;
            padding-right: 0;
            display: flex;
            align-items: center;
        }
        
        .nav-brand {
            gap: 0.125rem;
        }
        
        .nav-actions .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.65rem;
            min-height: 24px;
        }
        
        .logo {
            width: 16px;
            height: 16px;
        }
        
        .brand-text {
            font-size: 0.7rem;
        }
    }
    
    /* Extra small popup improvements */
    .mobile-popup {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .popup-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .popup-header h3 {
        font-size: 1.125rem;
    }
    
    .popup-content {
        padding: 0 1rem 1rem 1rem;
    }
    
    .popup-content p {
        font-size: 0.8rem;
    }
    
    .email-input-popup {
        padding: 0.875rem 1rem;
        font-size: 16px;
        min-height: 48px;
    }
}
    
    /* Extra small hero improvements */
    .hero {
        padding-top: 6.5rem;
        padding-bottom: 3rem;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .email-signup-hero {
        padding: 0.5rem;
        gap: 0.375rem;
        max-width: 300px;
    }
    
    .email-input-large {
        padding: 0.75rem 0.875rem;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* Mobile CTA improvements for extra small screens */
    .mobile-cta {
        padding: 0.75rem;
    }
    
    .email-signup-mobile {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .email-signup-mobile input[type="email"] {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .email-signup-mobile .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        width: 100%;
    }
}
@media (max-width: 768px) {
    /* Enhanced touch targets */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        touch-action: manipulation;
        border-radius: var(--radius-md);
    }
    
    .btn-large {
        min-height: 52px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-small {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .email-input,
    .email-input-large {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        touch-action: manipulation;
        border-radius: var(--radius-md);
    }
    
    .email-input-large {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1rem;
    }
    
    .faq-question {
        min-height: 48px;
        padding: 1.25rem;
        touch-action: manipulation;
        font-size: 0.875rem;
    }
    
    .tab-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
        touch-action: manipulation;
    }
    
    .hero-indicator {
        min-width: 32px;
        min-height: 32px;
        width: 8px;
        height: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Improve mobile scrolling */
    .hero-animation {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Enhanced mobile spacing */
    .hero {
        padding: 4rem 0 3rem;
        text-align: center;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Mobile CTA improvements */
    .mobile-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    /* Enhanced mobile form improvements */
    .email-signup-mobile {
        display: flex;
        gap: 0.75rem;
        background: white;
        border-radius: var(--radius-2xl);
        padding: 0.75rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-light);
        max-width: 100%;
    }
    
    @media (max-width: 480px) {
        .email-signup-mobile {
            flex-direction: column;
            gap: 0.5rem;
            padding: 1rem;
        }
    }
    
    .email-signup-mobile input[type="email"] {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.875rem 1rem;
        font-size: 16px;
        color: var(--text-primary);
        outline: none;
        border-radius: var(--radius-lg);
        min-height: 48px;
    }
    
    .email-signup-mobile .btn {
        white-space: nowrap;
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    

    
    /* Enhanced mobile text improvements */
    .hero-title {
        font-size: clamp(1.5rem, 4.5vw, 2.25rem);
        line-height: 1.2;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
        text-align: center;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
        text-align: center;
        line-height: 1.3;
    }
    

    

    

    

    
    /* Enhanced mobile footer improvements */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-brand {
        gap: 0.5rem;
    }
    
    .footer .logo {
        width: 28px;
        height: 28px;
    }
    
    .footer .brand-text {
        font-size: 1.125rem;
    }
}

/* Mobile CTA Animation */
.mobile-cta {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Popup Styles */
.mobile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-popup {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mobile-popup-overlay.active .mobile-popup {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.popup-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.popup-email-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input-popup {
    border: 1px solid var(--border-color);
    background: white;
    padding: 1rem 1.25rem;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-height: 52px;
}

.email-input-popup::placeholder {
    color: var(--text-secondary);
}

.email-input-popup:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Desktop-only class */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Mobile Scroll Behavior */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px; /* Account for mobile navbar height */
    }
    
    /* Smooth scrolling for mobile */
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

/* Success Message */
.success-message {
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .email-signup-hero {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .email-input-large {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-morph-container {
        width: 280px;
        height: 240px;
        padding: 1rem;
    }
    
    .hero-prescription {
        width: 180px;
        height: 120px;
        padding: 1rem;
    }
    
    .hero-calendar {
        width: 200px;
        height: 150px;
        padding: 1rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .day {
        font-size: 0.625rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-actions {
        width: 100%;
    }
    
    .email-signup-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .email-input {
        min-width: auto;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .process-flow {
        gap: 2rem;
    }
    
    .step-illustration {
        width: 240px;
        height: 160px;
    }
    
    .prescription-mock {
        width: 180px;
        height: 120px;
        padding: 1rem;
    }
    
    .ai-analysis {
        width: 180px;
        height: 120px;
    }
    
    .calendar-booking {
        width: 200px;
        height: 140px;
        padding: 1rem;
    }
    
    .benefits-grid {
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .free-integration-content {
        gap: 2rem;
    }
    
    .integration-benefits {
        gap: 1.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .email-signup-integration {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .software-connection-vertical {
        padding: 1.5rem;
        min-width: 160px;
    }
    
    .software-card {
        min-width: 80px;
        max-width: 100px;
        padding: 0.75rem;
    }
    
    .software-icon {
        font-size: 1.5rem;
    }
    
    .privacy-grid {
        gap: 2rem;
    }
    
    .privacy-item {
        gap: 0.75rem;
    }
    
    .privacy-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .privacy-content h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .privacy-content p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 0.875rem;
        min-height: 48px;
        line-height: 1.4;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .final-cta-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .email-signup-final {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .email-signup-final .email-input-large {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 16px;
        min-height: 52px;
    }
    
    .footer-content {
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-brand {
        gap: 0.5rem;
    }
    
    .footer .logo {
        width: 28px;
        height: 28px;
    }
    
    .footer .brand-text {
        font-size: 1.125rem;
    }
    
    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Small Devices (tablets, 481px and up) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .email-signup-hero {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-input-large {
        min-width: auto;
        width: 100%;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-actions {
        width: 100%;
    }
    
    .email-signup-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .process-flow {
        gap: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .free-integration-content {
        gap: 3rem;
    }
    
    .privacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .email-signup-integration {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-signup-final {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Medium Devices (tablets, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 4rem;
    }
    
    .process-connector {
        flex-direction: column;
        padding: 2rem 0;
    }
    
    .connector-line {
        width: 3px;
        height: 80px;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .free-integration-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .integration-visual {
        order: -1;
    }
}

/* Large Devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .process-flow {
        flex-direction: row;
        gap: 3rem;
    }
    
    .process-connector {
        flex-direction: row;
        padding: 0 1.5rem;
    }
    
    .connector-line {
        width: 3px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    
    .free-integration-content {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: 60vh;
    }
    
    .hero-morph-container {
        width: 240px;
        height: 200px;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    .email-input,
    .email-input-large {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .faq-question {
        min-height: 44px;
    }
    
    .tab-btn {
        min-height: 44px;
    }
    
    .hero-indicator {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-morph-step {
        transition: opacity 0.3s ease;
    }
    
    .btn::before {
        display: none;
    }
}


/* Print Styles */
@media print {
    .navbar,
    .mobile-cta,
    .btn,
    .email-signup-nav,
    .email-signup-hero,
    .email-signup-integration,
    .email-signup-final,
    .email-signup-mobile {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Email Message Styles */
.email-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.email-message.success {
    border-color: #10B981;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    color: #065F46;
    border-left: 4px solid #10B981;
}

.email-message.error {
    border-color: #EF4444;
    background: linear-gradient(135deg, #FEF2F2 0%, #FDF2F2 100%);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.success-icon {
    width: 22px;
    height: 22px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    animation: iconPop 0.4s ease-out;
}

.error-icon {
    width: 22px;
 height: 22px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    animation: iconPop 0.4s ease-out;
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Button States */
.btn.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.2) 100%);
    animation: fillProgress 2s ease-in-out infinite;
    border-radius: inherit;
}

.btn.success {
    background: #10B981;
    border-color: #10B981;
    position: relative;
    overflow: hidden;
}

.btn.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10B981 0%, #34D399 50%, #10B981 100%);
    animation: successFill 0.6s ease-out forwards;
    border-radius: inherit;
}

/* Button Animations */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

/* Progress Fill Animation */
@keyframes fillProgress {
    0% {
        width: 0%;
        left: 0%;
    }
    50% {
        width: 100%;
        left: 0%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Success Fill Animation */
@keyframes successFill {
    0% {
        width: 0%;
        left: 0%;
    }
    100% {
        width: 100%;
        left: 0%;
    }
}

/* Loading Spinner - verbessert */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Success Checkmark - verbessert */
.success-checkmark {
    width: 18px;
    height: 18px;
    background: white;
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
    animation: checkmarkPop 0.4s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Button Text Animation */
.btn.loading span,
.btn.success span {
    animation: textFadeIn 0.3s ease-out;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Animations */
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Error Message */
.error-message {
    background: #EF4444;
    color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 1rem;
    animation: slideIn 0.4s ease-out;
}

/* Hero Animation - Morphing Process */
.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.single-step-demo {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: visible;
}

.morph-animation {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 0 auto 2rem;
}

.morph-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.morph-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem 0;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Step 1: Prescription with Arrow */
.prescription-morph {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    position: relative;
    width: 200px;
    height: 140px;
    animation: prescriptionFloat 3s ease-in-out infinite;
}

@keyframes prescriptionFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    gap: 0.5rem;
}

.prescription-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.prescription-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.prescription-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.content-line {
    height: 1px;
    background: var(--border-color);
    border-radius: 1px;
}

.content-line:nth-child(1) { width: 80%; }
.content-line:nth-child(2) { width: 60%; }
.content-line:nth-child(3) { width: 90%; }

.morph-arrow {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Step 2: Morphing Process */
.morph-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.prescription-fade {
    animation: fadeOut 0.5s ease-in-out 1s forwards;
}

.prescription-mini {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

.morph-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.morph-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: morphShimmer 2s ease-in-out infinite;
}

@keyframes morphShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.calendar-emerge {
    animation: emergeIn 0.5s ease-in-out 1.5s both;
}

.calendar-mini {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

@keyframes emergeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Step 3: Final Calendar */
.final-calendar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 220px;
    height: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: calendarFinal 3s ease-in-out infinite;
}

@keyframes calendarFinal {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.month {
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.day.available {
    background: white;
    color: var(--text-secondary);
    border-color: #E2E8F0;
}

.day.booked {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    animation: bookedPulse 2s ease-in-out infinite;
}

@keyframes bookedPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-sm);
    }
    50% { 
        transform: scale(1.03); 
        box-shadow: var(--shadow-md);
    }
}

.day.recommended {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    border-color: #10B981;
    box-shadow: var(--shadow-sm);
    animation: recommendedGlow 2s ease-in-out infinite;
}

@keyframes recommendedGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-sm);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    }
}

/* Mobile-specific optimizations for better performance */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .hero::before,
    .hero::after {
        animation: none;
    }
    
    .hero-morph-container {
        animation: none;
    }
    
    .step-circle {
        animation: none;
    }
    
    .brain-circle {
        animation: none;
    }
    
    .data-chip {
        animation: none;
    }
    
    /* Improve mobile performance */
    * {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Optimize for mobile browsers */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Improve touch feedback */
    .btn:active,
    .faq-question:active,
    .tab-btn:active,
    .hero-indicator:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile hero improvements */
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    /* Mobile section improvements */
    .how-it-works,
    .benefits,
    .free-integration,
    .privacy,
    .faq,
    .final-cta {
        padding: 4rem 0;
    }
    
    /* Mobile process improvements */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-info {
        max-width: none;
        padding: 0 1rem;
    }
    
    /* Mobile integration improvements */
    .integration-benefits {
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile FAQ improvements */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Mobile final CTA improvements */
    .final-cta-content {
        padding: 0 1rem;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .final-cta-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve text readability */
    .hero-title,
    .hero-subtitle,
    .section-title,
    .step-title,
    .benefit-card h3,
    .privacy-content h3,
    .faq-question {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Improve form elements */
    input,
    button,
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: var(--radius-lg);
    }
    
    /* Improve scrolling */
    * {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Optimize for mobile browsers */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Improve touch feedback */
    .btn:active,
    .faq-question:active,
    .tab-btn:active,
    .hero-indicator:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile hero improvements */
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
}

/* Enhanced touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .benefit-card:hover {
        transform: none;
    }
    
    .benefit-card:active {
        transform: scale(0.98);
    }
    
    .faq-question:hover {
        background: var(--bg-gray);
    }
    
    .faq-question:active {
        background: var(--bg-gray-light);
    }
    
    .tab-btn:hover {
        background: var(--bg-gray);
    }
    
    .tab-btn:active {
        background: var(--bg-gray-light);
    }
    
    .hero-indicator:hover {
        transform: scale(1.1);
    }
    
    .hero-indicator:active {
        transform: scale(0.95);
    }
    
    /* Improve mobile form elements */
    input,
    button,
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: var(--radius-lg);
    }
    
    /* Improve mobile scrolling */
    * {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Optimize for mobile browsers */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Improve touch feedback */
    .btn:active,
    .faq-question:active,
    .tab-btn:active,
    .hero-indicator:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile hero improvements */
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    /* Mobile section improvements */
    .how-it-works,
    .benefits,
    .free-integration,
    .privacy,
    .faq,
    .final-cta {
        padding: 4rem 0;
    }
    
    /* Mobile process improvements */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-info {
        max-width: none;
        padding: 0 1rem;
    }
    
    /* Mobile integration improvements */
    .integration-benefits {
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile FAQ improvements */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Mobile final CTA improvements */
    .final-cta-content {
        padding: 0 1rem;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .final-cta-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}
    
    /* Mobile section improvements */
@media (max-width: 768px) {
    /* Enhanced section spacing */
    .section {
        padding: 3rem 0;
    }
    
    .how-it-works {
        padding: 3rem 0;
    }
    
    .benefits {
        padding: 3rem 0;
    }
    
    .free-integration {
        padding: 3rem 0;
    }
    
    .privacy {
        padding: 3rem 0;
    }
    
    .faq {
        padding: 3rem 0;
    }
    
    .final-cta {
        padding: 3rem 0;
    }
}


    .how-it-works,
    .benefits,
    .free-integration,
    .privacy,
    .faq,
    .final-cta {
        padding: 4rem 0;
    }
    
    /* Mobile process improvements */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-info {
        max-width: none;
        padding: 0 1rem;
    }
    
    /* Mobile integration improvements */
    .integration-benefits {
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile FAQ improvements */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Mobile final CTA improvements */
    .final-cta-content {
        padding: 0 1rem;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .final-cta-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}
