:root {
    --brand: #0a6b5d;
    --brand-deep: #064f45;
    --ink: #14201e;
    --muted: #3d524d;
    --paper: #eef6f3;
    --paper-2: #d9ebe4;
    --line: rgba(10, 107, 93, 0.16);
    --font-brand: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(10, 107, 93, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(56, 130, 110, 0.10), transparent 50%),
        linear-gradient(180deg, #f4faf7 0%, var(--paper) 40%, #e7f2ed 100%);
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-nav {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.nav-brand {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #f7fffc;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav-signin {
    text-decoration: none;
    color: #f7fffc;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-signin:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        url("/static/images/pharmentor-hero.jpg") center / cover no-repeat;
    transform: scale(1.06);
    animation: heroDrift 18s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 40, 35, 0.35) 0%, rgba(6, 40, 35, 0.18) 35%, rgba(6, 40, 35, 0.72) 100%),
        linear-gradient(90deg, rgba(6, 40, 35, 0.55) 0%, rgba(6, 40, 35, 0.15) 55%, rgba(6, 40, 35, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 7vh, 4.5rem);
    color: #f7fffc;
}

.brand {
    margin: 0 0 0.85rem;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.hero h1 {
    margin: 0 0 1rem;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 16ch;
}

.lede {
    margin: 0 0 1.75rem;
    max-width: 36ch;
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    color: rgba(247, 255, 252, 0.88);
    font-weight: 400;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f7fffc;
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.35rem;
    border: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: var(--brand);
}

.section {
    width: min(920px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.section h2 {
    margin: 0 0 1rem;
    font-family: var(--font-brand);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
    color: var(--brand-deep);
}

.purpose p,
.flow p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 58ch;
}

.flow {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.flow li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.step-num {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    padding-top: 0.15rem;
}

.flow h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-brand);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
    display: grid;
    gap: 0.35rem;
    background: linear-gradient(180deg, transparent, rgba(10, 107, 93, 0.06));
}

.footer-brand {
    margin: 0;
    font-family: var(--font-brand);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-deep);
}

.footer-note {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer a {
    width: fit-content;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 160ms ease;
}

.site-footer a:hover {
    border-bottom-color: var(--brand);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 360ms; }

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

@keyframes heroDrift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        animation: none;
        transform: scale(1.04);
    }

    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .btn-primary,
    .nav-signin {
        transition: none;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding-bottom: 2.25rem;
    }

    .brand {
        font-size: clamp(2.3rem, 12vw, 3.2rem);
    }

    .hero h1 {
        max-width: none;
    }
}
