/* Healthtron — pre-launch landing page.
 *
 * Arabic-first and right-to-left. No framework and no build step: one
 * stylesheet, one small script, inline SVG illustrations and self-hosted
 * OFL-licensed IBM Plex Sans Arabic subsets. Every animation is decorative and
 * switched off under prefers-reduced-motion.
 */

@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --teal-900: #072f2c;
  --teal-800: #0b4642;
  --teal-600: #17817a;
  --teal-400: #3fb5a3;
  --mint-300: #7fd8c4;
  --mint-100: #dff3ee;
  --mint-50: #eff9f6;
  --blue-600: #3b6fd8;
  --blue-100: #e6edff;
  --ink: #0f2a28;
  --ink-soft: #3f5957;
  --ink-muted: #5e7472;
  --paper: #fbf8f3;
  --paper-2: #f5f1ea;
  --white: #ffffff;
  --line: rgba(11, 70, 66, 0.10);

  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-card: 0 1px 0 rgba(11, 70, 66, 0.04), 0 18px 40px -18px rgba(11, 70, 66, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shell: min(1180px, 100% - 40px);
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
/* Illustration coordinates are authored left-to-right; an RTL page would
   otherwise mirror every text-anchor inside them. */
.hero__visual svg, .teaser__visual svg { direction: ltr; }

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--teal-800); color: var(--white); text-decoration: none;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 8px; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(251, 248, 243, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 248, 243, 0.9); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-800); text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__name { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--teal-800);
  background: var(--white); border: 1px solid var(--line);
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 0 rgba(63, 181, 163, 0.6); animation: ping 2.4s var(--ease) infinite; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 96px; }
.hero__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.orb--teal { width: 520px; height: 520px; background: radial-gradient(circle, #a9e4d7 0%, transparent 70%); top: -160px; inset-inline-end: -120px; animation: drift-a 22s ease-in-out infinite; }
.orb--mint { width: 420px; height: 420px; background: radial-gradient(circle, #d8f2ea 0%, transparent 70%); bottom: -180px; inset-inline-start: 10%; animation: drift-b 26s ease-in-out infinite; }
.orb--blue { width: 360px; height: 360px; background: radial-gradient(circle, #cfdcfb 0%, transparent 70%); top: 22%; inset-inline-start: -120px; opacity: 0.45; animation: drift-a 30s ease-in-out infinite reverse; }

.hero__layout { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: var(--mint-300); }

.hero__title {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--teal-900);
}
.hero__title-accent {
  display: block;
  background: linear-gradient(90deg, var(--teal-600) 0%, var(--teal-400) 45%, var(--blue-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 6px;
}
.hero__lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); }

.hero__soon { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.soon-badge {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 14px 30px; border-radius: 999px;
  font-size: 20px; font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  box-shadow: 0 14px 30px -12px rgba(11, 70, 66, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.soon-badge__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-300); animation: ping 2.4s var(--ease) infinite; }
.hero__soon-note { font-size: 15px; color: var(--ink-muted); }

.hero__visual { position: relative; }
.device { width: 100%; max-width: 520px; margin-inline: auto; height: auto; }
.svg-num { font: 700 44px var(--font); }
.svg-unit { font: 500 15px var(--font); }
.svg-small-num { font: 700 20px var(--font); }

/* ----------------------------------------------------------------- vision */
.vision { padding: 96px 0; background: var(--white); border-block: 1px solid var(--line); }
.vision__layout { max-width: 860px; text-align: center; }
.vision .eyebrow { justify-content: center; }
.section-title { margin-top: 14px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; font-weight: 700; color: var(--teal-900); letter-spacing: -0.01em; }
.section-title--light { color: var(--white); }
.vision__text { margin-top: 22px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); line-height: 2; }

/* ----------------------------------------------------------- capabilities */
.capabilities { padding: 104px 0; }
.cap-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap {
  position: relative; padding: 32px 28px 34px;
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.cap:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(11, 70, 66, 0.04), 0 30px 60px -24px rgba(11, 70, 66, 0.3); }
.cap__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; }
.cap__icon svg { width: 32px; height: 32px; }
.cap__icon--teal { background: var(--mint-100); color: var(--teal-600); }
.cap__icon--blue { background: var(--blue-100); color: var(--blue-600); }
.cap__icon--mint { background: #fff1e0; color: #b8661d; }
.cap__title { margin-top: 22px; font-size: 22px; font-weight: 700; color: var(--teal-900); }
.cap__text { margin-top: 10px; font-size: 16px; color: var(--ink-soft); line-height: 1.9; }

/* ----------------------------------------------------------------- teaser */
.teaser {
  position: relative; overflow: hidden; padding: 104px 0;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(127, 216, 196, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(59, 111, 216, 0.22), transparent 60%),
    linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 55%, #0d5a54 100%);
}
.teaser__layout { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 56px; }
.teaser__points { margin-top: 30px; display: grid; gap: 16px; }
.teaser__points li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.tick { flex: none; margin-top: 7px; width: 22px; height: 22px; border-radius: 50%; background: rgba(127, 216, 196, 0.18); position: relative; }
.tick::after { content: ""; position: absolute; inset-inline-start: 7px; top: 5px; width: 6px; height: 10px; border: solid var(--mint-300); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.teaser__visual svg { width: 100%; height: auto; }
.draw { stroke-dasharray: 520; stroke-dashoffset: 520; }
.teaser__visual.is-visible .draw { animation: draw 2.2s var(--ease) 0.3s forwards; }

/* ------------------------------------------------------------ coming soon */
.soon { padding: 104px 0 112px; }
.soon__card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 32px; border-radius: 36px; text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-50) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.soon__card .eyebrow { justify-content: center; }
.soon__rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.soon__rings span { grid-area: 1 / 1; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(23, 129, 122, 0.22); animation: ring 6s var(--ease) infinite; opacity: 0; }
.soon__rings span:nth-child(2) { animation-delay: 2s; }
.soon__rings span:nth-child(3) { animation-delay: 4s; }
.soon__title { margin-top: 14px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.3; font-weight: 700; color: var(--teal-900); }
.soon__text { margin: 18px auto 0; max-width: 34em; font-size: 18px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- footer */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand--footer .brand__mark { width: 30px; height: 30px; }
.brand--footer .brand__name { font-size: 17px; }
.site-footer__note { font-size: 14px; color: var(--ink-muted); text-align: center; }
.site-footer__copy { font-size: 14px; color: var(--ink-muted); }

/* ----------------------------------------------------------------- motion */
.enter { opacity: 0; transform: translateY(18px); animation: enter 0.9s var(--ease) forwards; }
.enter--1 { animation-delay: 0.05s; }
.enter--2 { animation-delay: 0.15s; }
.enter--3 { animation-delay: 0.28s; }
.enter--4 { animation-delay: 0.4s; }
.enter--5 { animation-delay: 0.3s; transform: translateY(26px) scale(0.98); }

/* Content stays visible if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cap-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cap-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.float { transform-box: fill-box; transform-origin: center; }
.float--a { animation: float 7s ease-in-out infinite; }
.float--b { animation: float 8.5s ease-in-out 0.8s infinite; }
.float--c { animation: float 6.5s ease-in-out 1.6s infinite; }
.arc { animation: dash 14s linear infinite; }
.arc--2 { animation-duration: 18s; animation-direction: reverse; }
.pulse-line { stroke-dasharray: 220; stroke-dashoffset: 220; animation: trace 3.2s var(--ease) 0.9s infinite; }
.pulse-line--short { stroke-dasharray: 90; stroke-dashoffset: 90; animation-duration: 2.6s; }

@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -24px); } }
@keyframes dash { to { stroke-dashoffset: -240; } }
@keyframes trace { 0% { stroke-dashoffset: 220; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0.35; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 181, 163, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(63, 181, 163, 0); } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter, .js .reveal { opacity: 1; transform: none; }
  .pulse-line, .pulse-line--short, .draw { stroke-dashoffset: 0; }
  .soon__rings { display: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { padding-top: 36px; }
  .hero__layout { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__soon { justify-content: center; }
  .device { max-width: 440px; }
  .cap-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .teaser__layout { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__row { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; }
}
@media (min-width: 681px) and (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .cap-grid .cap:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  :root { --shell: calc(100% - 32px); }
  .site-header__row { height: 64px; }
  .brand__name { font-size: 19px; }
  .status-pill { font-size: 13px; padding: 6px 12px; }
  .hero { padding-bottom: 64px; }
  .vision, .capabilities, .teaser, .soon { padding: 72px 0; }
  .soon__card { padding: 56px 20px; border-radius: 28px; }
  .soon-badge { font-size: 18px; padding: 12px 22px 12px 24px; }
  .orb--teal { width: 360px; height: 360px; }
}
