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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --text: #0f172a;
    --text-secondary: #475569;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    background: var(--text);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.phone-screen {
    background: white;
    border-radius: 26px;
    padding: 24px 16px;
    min-height: 480px;
}

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

.mock-greeting {
    font-weight: 700;
    font-size: 1.1rem;
}

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

.mock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.mock-pill {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f87171;
    flex-shrink: 0;
}

.mock-pill-blue { background: var(--primary); }
.mock-pill-green { background: #34d399; }

.mock-med-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.mock-med-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mock-check {
    margin-left: auto;
    color: #34d399;
    font-weight: 700;
    font-size: 1.1rem;
}

.mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.mock-stat {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.mock-stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.mock-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Features */
.features {
    padding: 100px 0;
}

.features h2, .about h2, .contact h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 60px;
}

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

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About */
.about {
    padding: 100px 0;
    background: var(--bg-alt);
}

.about-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.8;
}

/* Contact */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact .btn {
    margin-top: 32px;
}

/* Footer */
.footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand .logo-icon {
    background: var(--primary);
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
}

.legal-page .container {
    max-width: 780px;
}

.legal-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-page .legal-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    text-align: left;
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 6px;
}

/* Delete Account */
.delete-request-box {
    margin: 32px 0;
    padding: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.delete-request-box .delete-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .nav-links {
        display: none;
    }

    .phone-mockup {
        width: 240px;
    }
}
