/* ============================================
   RESET AND GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(240, 240, 240, 0.7);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 0.75rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0071e3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    padding: 120px 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0b1020 0%, #4b1fb8 100%);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    filter: brightness(1.05);
    transform: scale(1.05);
}

.cta-button:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}

.app-link {
    display: inline-block;
    margin-top: 1.5rem;
}

.app-link:hover {
    opacity: 0.9;
}

.app-store-link {
    padding: 0;
    background: none;
    border-radius: 0;
}

.app-store-badge {
    display: block;
    height: 44px;
    width: auto;
}

/* ============================================
   SECTION CONTAINER
   ============================================ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   MISSION SECTION
   ============================================ */

.mission {
    background-color: #f5f5f7;
    padding: 100px 2rem;
    text-align: center;
}

.mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #555;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: linear-gradient(135deg, #0b1020 0%, #4b1fb8 100%);
    color: #fff;
    padding: 100px 2rem;
}

.services h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================
   APPS SECTION
   ============================================ */

.apps {
    padding: 100px 2rem;
    background-color: #fff;
}

.apps h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.app-showcase-2 {
    grid-template-columns: 1fr 1fr;
}

.app-showcase-2 .app-image {
    order: -1;
}

.app-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.app-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.app-features {
    list-style: none;
    margin-bottom: 2rem;
}

.app-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.app-features li:last-child {
    border-bottom: none;
}

.app-features strong {
    color: #000;
}

.app-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.app-icon {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    margin-right: 0.75rem;
    vertical-align: middle;
    object-fit: cover;
    display: inline-block;
}

.app-store-row {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.app-store-row .app-link {
    margin-top: 0;
}

.app-store-badge {
    display: block;
    height: 44px;
    width: auto;
}

.app-learn-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 12px;
    background-color: #000;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-learn-link:hover {
    opacity: 0.9;
}

.app-visual {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.app-visual-toothify {
    background: linear-gradient(135deg, #0071e3 0%, #0066cc 100%);
}

.app-visual-harvee {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b6b 100%);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 100px 2rem;
    text-align: center;
}

.contact h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #f5f5f7;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #e5e5e7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h4,
.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #000;
}

.footer-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: #666;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0071e3;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e7;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem 2rem;
        gap: 1rem;
        z-index: 999;
    }

    .hero {
        padding: 60px 2rem;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .mission {
        padding: 60px 2rem;
    }

    .services {
        padding: 60px 2rem;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-showcase-2 .app-image {
        order: 0;
    }

    .app-image {
        min-height: 300px;
    }

    .app-visual {
        height: 300px;
    }

    .app-content h3 {
        font-size: 1.75rem;
    }

    .app-tagline {
        font-size: 1.25rem;
    }

    .app-description {
        font-size: 1rem;
    }

    .contact {
        padding: 60px 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-logo img {
        height: 30px;
    }

    .hero {
        padding: 40px 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .mission {
        padding: 40px 1rem;
    }

    .services {
        padding: 40px 1rem;
    }

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

    .apps {
        padding: 40px 1rem;
    }

    .app-showcase {
        margin-bottom: 3rem;
    }

    .app-image {
        min-height: 250px;
    }

    .app-visual {
        height: 250px;
    }

    .app-content h3 {
        font-size: 1.5rem;
    }

    .contact {
        padding: 40px 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        gap: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.app-showcase {
    animation: fadeIn 0.6s ease-out;
}

.service-card {
    animation: fadeIn 0.6s ease-out;
}
