/* ========================================
   MedKit+ — Minimal, Premium
   ======================================== */

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --off-white: #f5f5f7;
    --gray-100: #f0f0f2;
    --gray-300: #d1d1d6;
    --gray-500: #86868b;
    --gray-700: #424245;
    --gray-900: #1d1d1f;
    --red: #d62828;
    --red-dark: #b91c1c;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ========================================
   Nav
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 14px 0;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.nav-logo span { color: var(--red); }

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 9px 22px;
    border-radius: 100px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,10,0.88) 0%,
        rgba(10,10,10,0.55) 50%,
        rgba(10,10,10,0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    margin-top: -10vh;
}

.hero-title {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.05em;
    line-height: 0.85;
    margin-bottom: 32px;
}

.hero-title .plus {
    color: var(--red);
}

.hero-tagline {
    font-size: clamp(1.15rem, 2.8vw, 1.65rem);
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-arrow {
    display: inline-flex;
    margin-top: 64px;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s, transform 0.3s;
    animation: float 2.5s ease-in-out infinite;
}

.hero-arrow:hover {
    color: rgba(255,255,255,0.6);
}

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

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    text-align: center;
    margin-bottom: 64px;
    line-height: 1.1;
}

.section-dark .section-title {
    color: var(--white);
}

/* ========================================
   How It Works
   ======================================== */

.steps {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 0;
    border-bottom: 1px solid var(--gray-100);
}

.step:last-child {
    border-bottom: none;
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.step-text p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========================================
   The Problem
   ======================================== */

.problem-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 520px;
    margin: -32px auto 64px;
    line-height: 1.7;
}

.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
    max-width: 240px;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ========================================
   Environments
   ======================================== */

.section-image {
    background: var(--off-white);
    padding-bottom: 0;
}

.env-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 440px;
    margin: -32px auto 64px;
    line-height: 1.7;
}

.env-image-wrap {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.08);
}

.env-image {
    width: 100%;
    display: block;
}

/* ========================================
   Contact
   ======================================== */

.section-contact {
    background: var(--white);
    text-align: center;
    padding: 140px 0;
}

.contact-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.contact-email {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--red);
    padding: 16px 40px;
    border: 2px solid var(--red);
    border-radius: 100px;
    transition: all 0.3s;
}

.contact-email:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(214, 40, 40, 0.25);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--black);
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
}

.footer-logo span { color: var(--red); }

.footer-patent {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.02em;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
}

/* ========================================
   Animations
   ======================================== */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .stats {
        flex-direction: column;
        gap: 40px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .step {
        gap: 20px;
        padding: 28px 0;
    }

    .step-num {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .problem-intro,
    .env-intro {
        margin-top: -20px;
        margin-bottom: 48px;
    }

    .section-contact {
        padding: 100px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-image {
        object-position: 30% center;
    }

    .hero-overlay {
        background: rgba(10,10,10,0.75);
    }

    .hero-content {
        margin-top: -5vh;
    }

    .env-image-wrap {
        border-radius: 12px 12px 0 0;
        margin: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .contact-email {
        font-size: 1rem;
        padding: 14px 28px;
    }
}
