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

:root {
    /* Colors */
    --color-teal: #14B8A6;
    --color-teal-light: #5EEAD4;
    --color-teal-dark: #0D9488;
    --color-blue: #2563EB;
    --color-blue-dark: #1E40AF;
    --color-slate-900: #0f172a;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-white: #ffffff;
    --color-red: #ef4444;
    --color-green: #10b981;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    /* Spacing */
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 60px;
    --spacing-sm: 40px;
    --spacing-xs: 24px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-slate-900);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-slate-200);
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-slate-900);
    letter-spacing: -0.01em;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
    padding-top: calc(var(--spacing-lg) + 72px);
    /* Account for fixed navbar */
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-slate-100) 100%);
}

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

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--color-slate-900);
}

.subheadline {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-slate-600);
    margin-bottom: 40px;
    max-width: 540px;
}

.cta-button {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.cta-button.primary {
    background-color: var(--color-teal);
    color: var(--color-white);
}

.cta-button.primary:hover {
    background-color: var(--color-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.25);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.device-flow {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 32px;
    align-items: center;
}

/* Phones Stack - Arc Formation */
.phones-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* Floating UI Cards (no phone bezel) */
.smartphone {
    background: var(--color-white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 280px;
    width: 280px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-green {
    border-left: 4px solid var(--color-teal);
    transform: translateX(-20px) rotate(-2deg);
}

.phone-gray {
    border-left: 4px solid var(--color-slate-400);
    transform: translateX(0);
}

.phone-blue {
    border-left: 4px solid var(--color-blue);
    transform: translateX(-20px) rotate(2deg);
}

.smartphone:hover {
    transform: translateX(-10px) rotate(0) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phone-screen {
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px 16px;
    min-height: auto;
    position: relative;
}

/* Remove phone notch */
.phone-screen::before {
    display: none;
}

.chat-notification {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.chat-bubble {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.ai-bubble {
    background: var(--color-slate-100);
}

.chat-text strong {
    display: block;
    font-size: 13px;
    color: var(--color-teal);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chat-text p {
    font-size: 14px;
    color: var(--color-slate-700);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Reply Bubbles - Larger text */
.reply-bubble {
    margin-left: auto;
    max-width: 90%;
}

.reply-bubble p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    color: var(--color-white);
    font-weight: 500;
}

.reply-confirmed {
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
}

.reply-dnd {
    background: linear-gradient(135deg, var(--color-slate-400), var(--color-slate-600));
}

.reply-scheduled {
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
}


.connection-lines {
    width: 200px;
    height: 400px;
    display: flex;
    align-items: center;
}

.connection-lines svg {
    width: 200px;
    height: 400px;
    overflow: visible;
    /* Safari fix */
    shape-rendering: geometricPrecision;
    /* Safari fix */
}

/* Mobile connector - hidden on desktop */
.mobile-connector {
    display: none;
}

.mobile-connector svg {
    width: 100px;
    height: 100px;
    overflow: visible;
    /* Safari fix */
    shape-rendering: geometricPrecision;
    /* Safari fix */
}

.tablet {
    background: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue));
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

.tablet-screen {
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px;
    min-height: 320px;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-slate-200);
}

.schedule-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-slate-50);
    transition: all 0.3s ease;
}

.schedule-row.optimized {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.02));
    border-left: 3px solid var(--color-teal);
}

.schedule-row.skip {
    opacity: 0.5;
}

.room {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-slate-900);
}

.status {
    font-size: 13px;
    font-weight: 500;
}

.status.confirmed {
    color: var(--color-teal);
}

.status.dnd {
    color: var(--color-slate-400);
}

.time {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-slate-700);
    text-align: right;
}

/* Problem Section */
.problem-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--color-slate-900);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--color-slate-600);
    margin-bottom: 64px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.comparison-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.comparison-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.comparison-card.old-way h3 {
    color: var(--color-red);
}

.comparison-card.new-way h3 {
    color: var(--color-teal);
}

.floor-plan {
    margin-bottom: 32px;
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px;
}

.floor-plan svg {
    width: 100%;
    height: auto;
}

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

.stat-item {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-item.bad {
    background: rgba(239, 68, 68, 0.08);
}

.stat-item.good {
    background: rgba(20, 184, 166, 0.08);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item.bad .stat-value {
    color: var(--color-red);
}

.stat-item.good .stat-value {
    color: var(--color-teal);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--color-slate-600);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-subtext {
    display: block;
    font-size: 12px;
    color: var(--color-slate-500);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-slate-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.feature-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-slate-600);
}

/* Social Proof Section */
.social-proof-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
}

.social-proof-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.academic-badge {
    width: 140px;
    height: 140px;
}

.academic-badge svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.15));
}

.social-proof-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 12px;
}

.social-proof-text p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-slate-600);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: linear-gradient(180deg, var(--color-slate-100) 0%, var(--color-white) 100%);
    text-align: center;
}

.footer h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 32px;
}

.footer .cta-button {
    margin-bottom: 48px;
}

.copyright {
    font-size: 14px;
    color: var(--color-slate-400);
    margin-top: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 80px;
        --spacing-lg: 60px;
        --spacing-md: 40px;
    }

    .container {
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .subheadline {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    /* CRITICAL: Mobile Hero Layout Fixes */
    .device-flow {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    /* Phones stack at top - remove arc transformations */
    .phones-stack {
        order: 1;
        width: 100%;
        max-width: 320px;
        gap: 16px;
        align-items: center;
    }

    .smartphone {
        transform: none !important;
        /* Remove desktop arc rotations */
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        /* Safari fix: prevent collapse */
    }

    .smartphone:hover {
        transform: scale(1.02) !important;
    }

    /* Hide desktop horizontal connection lines */
    .connection-lines {
        display: none !important;
    }

    /* Show mobile vertical connector */
    .mobile-connector {
        display: block !important;
        order: 2;
        width: 100px;
        height: 60px;
        margin: 0 auto;
        flex-shrink: 0;
        /* Safari fix */
    }

    /* iPad at bottom */
    .tablet {
        order: 3;
        width: 100%;
        max-width: 400px;
        min-height: 300px;
        /* Safari fix: prevent collapse */
        flex-shrink: 0;
        /* Safari fix */
    }

    .tablet-screen {
        min-height: 280px;
        /* Safari fix */
    }

    /* Ensure visible heights for Safari */
    .hero-visual {
        min-height: 300px;
    }

    .social-proof-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .academic-badge {
        margin: 0 auto;
    }

    .footer h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .subheadline {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 24px;
    }

    .comparison-card {
        padding: 24px;
    }

    .feature-card {
        padding: 32px 24px;
    }
}