/* =================================================================
   Dana Duhok — Base
   Reset, modern typography, layout primitives, motion.
   Clean & minimal: flat canvas, generous whitespace, crisp type.
   ================================================================= */

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}
html[data-mode="dark"] { color-scheme: dark; }

body {
    font-family: var(--font-body);
    font-feature-settings: 'ss01','cv11';
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg-base);
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .3s ease, color .3s ease;
}

/* Headings — modern geometric sans (Inter), bold & tight */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    margin: 0 0 .5em;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--c-text);
    font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 700; letter-spacing: -0.018em; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

p {
    margin: 0 0 1em;
    color: var(--c-text-2);
}

/* :not(.btn) — buttons own their text colour via .btn--* variants; the
   generic link-hover colour must not bleed into them (it would turn a
   primary button's label the same hue as its hover background). */
a:not(.btn) {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}
a:not(.btn):hover { color: var(--c-primary-2); }

img,svg,video { max-width: 100%; display: block; }
button,input,select,textarea { font: inherit; color: inherit; }

::selection {
    background: color-mix(in srgb, var(--c-primary) 18%, transparent);
    color: var(--c-text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--c-border-strong);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--c-text-3) 60%, transparent);
    background-clip: padding-box;
}

/* Accessibility */
.visually-hidden,
.skip-link:not(:focus) {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 12px; left: 12px;
    background: var(--c-primary); color: #fff;
    padding: 10px 16px; border-radius: var(--radius-md); z-index: 9999;
}

:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}
.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1360px; }

/* Utility ------------------------------------------------------- */
.muted { color: var(--c-text-3); }
.small { font-size: .82rem; }
.empty,.empty-state { text-align: center; color: var(--c-text-3); padding: 40px 0; }
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .02em;
}

/* Eyebrow — rounded health-tech pill (accent-ink keeps small text AA) */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-accent-ink);
    background: var(--c-tint);
    padding: 7px 14px;
    border-radius: 999px;
}
.eyebrow__dot {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--c-primary);
}

/* =================================================================
   Ambient background — intentionally empty in the minimal look.
   The .bg-aurora element stays in markup but renders nothing.
   ================================================================= */
.bg-aurora { display: none; }

/* Reveal-on-scroll — subtle, purposeful */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--delay, 0) * 1ms);
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
