/* ============================================================
   Smart Drug Delivery Computing — site stylesheet
   ============================================================ */

:root {
  --ink: #0a0c10;          /* hero / header / footer background */
  --ink-2: #14171e;        /* raised surfaces on dark */
  --line-dark: #262a33;
  --text: #1b1f27;
  --text-muted: #5a6270;
  --text-on-dark: #f3f5f8;
  --text-on-dark-muted: #a3abb9;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --line: #e3e7ee;
  --accent: #1667d9;
  --accent-hover: #0f55b8;
  --accent-soft: #e8f0fc;
  --teal: #12a594;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text-on-dark); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-on-dark-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-on-dark-muted); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: #fff; text-decoration: none; background: var(--ink-2); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links .nav-cta a { background: var(--accent); color: #fff; margin-left: 8px; }
.nav-links .nav-cta a:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); border-radius: 10px;
  width: 44px; height: 44px; color: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav-links a:hover { background: none; }
  .nav-links .nav-cta a { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: #3a404c; color: var(--text-on-dark); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero (dark) ---------- */
.hero { background: var(--ink); color: var(--text-on-dark); padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.hero .eyebrow { color: #7fb3ff; }
.hero h1 { max-width: 19ch; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-on-dark-muted); max-width: 60ch; margin-bottom: 32px; }
.hero-media {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; border: 1px solid var(--line-dark); border-bottom: 0;
  box-shadow: 0 -20px 80px rgba(22, 103, 217, 0.18);
}
.hero-media img { width: 100%; }

.page-hero { background: var(--ink); color: var(--text-on-dark); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-hero p { color: var(--text-on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 62ch; margin: 0; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: var(--text-on-dark-muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--text); max-width: 46ch; font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.card h3 { margin-top: 18px; }
.card .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.95rem; }
a.card { color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: #b9c6da; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06); }

.section-dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.section-dark .card p { color: var(--text-on-dark-muted); }

.icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.section-dark .icon { background: rgba(22, 103, 217, 0.18); color: #7fb3ff; }

.num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
}

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.wide-media { grid-template-columns: 5fr 7fr; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split.wide-media { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.media-frame.pad { padding: clamp(12px, 2vw, 24px); }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231667d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .checklist li::before { background-color: rgba(22, 103, 217, 0.22); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }

/* ---------- Approach flow ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.flow .card { position: relative; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Steps (process) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.steps h3 { margin-top: 6px; font-size: 1.1rem; }
.steps p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service blocks ---------- */
.service { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service p { color: var(--text-muted); max-width: 70ch; }
.service .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 8px; }
.service .cols h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 8px 0 10px; font-family: var(--font-body); font-weight: 600; }
.service .icon { width: 56px; height: 56px; }
@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service .cols { grid-template-columns: 1fr; }
}

/* ---------- Stats strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(22,103,217,.35), transparent 70%); pointer-events: none; }
.cta-band h2 { margin: 0 0 8px; max-width: 22ch; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; max-width: 52ch; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { padding-top: 0; }
.contact-item h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-item p { margin: 0; color: var(--text-muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #cfd6e1; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: 0.86rem; color: var(--text-muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 38ch; margin-top: 16px; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.note {
  background: var(--accent-soft); border: 1px solid #c9dcf8; color: #18406f;
  border-radius: var(--radius); padding: 18px 22px; font-size: 0.96rem;
}

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Refinements ---------- */
.page-hero .eyebrow { color: #7fb3ff; }
.card .card-link { color: var(--accent); }
.card h3.mt-0 { margin-top: 0; }
.card .checklist { font-size: 0.98rem; }
.site-footer .brand { color: #fff; }
.split.align-start { align-items: start; }
.section:not(.section-soft):not(.section-dark) + .section-cta { padding-top: 0; }
.icon { flex-shrink: 0; }
