:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --surface-alt: #f3f4f6;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-logo {
  width: 68px;
  height: 68px;
  margin: -10px 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  align-items: start;
  gap: clamp(34px, 5vw, 68px);
  min-height: calc(82vh - 72px);
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(circle at 90% 18%, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.hero-copy-card {
  position: relative;
  max-width: 760px;
  padding: clamp(18px, 2.6vw, 28px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.05), transparent 34%),
    rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(7px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 5.2vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-text,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: end;
  align-self: start;
}

.hero-screens {
  width: min(620px, 100%);
  min-height: 540px;
  justify-self: end;
  place-items: center;
}

.hero-screens::before {
  position: absolute;
  inset: 8% 0 4% 8%;
  content: "";
  border-radius: 42px;
  background:
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(240, 253, 250, 0.72));
  filter: blur(0.2px);
}

.hero-screen-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.hero-screen-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

.hero-screen-home {
  z-index: 3;
  width: min(255px, 42vw);
  aspect-ratio: 1080 / 2129;
  transform: translateX(-6px);
}

.hero-screen-login,
.hero-screen-learn {
  z-index: 2;
  width: min(205px, 34vw);
  opacity: 0.92;
}

.hero-screen-login {
  left: 4%;
  top: 16%;
  aspect-ratio: 1080 / 2144;
  transform: rotate(-7deg);
}

.hero-screen-learn {
  right: 2%;
  bottom: 8%;
  aspect-ratio: 1080 / 2104;
  transform: rotate(7deg);
}

.phone-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 58px);
}

.phone {
  position: relative;
  width: min(270px, 74vw);
  padding: 10px;
  border-radius: 32px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.product-phone {
  display: none;
}

.product-phone.is-active {
  display: block;
}

.product-phone[hidden] {
  display: none;
}

.product-phone-gallery[data-active-screen="upload"] [data-phone-screen="upload"],
.product-phone-gallery[data-active-screen="context"] [data-phone-screen="context"],
.product-phone-gallery[data-active-screen="review"] [data-phone-screen="review"],
.product-phone-gallery[data-active-screen="report"] [data-phone-screen="report"],
.product-phone-gallery[data-active-screen="doctor-report"] [data-phone-screen="doctor-report"] {
  display: block;
}

.small-phone {
  width: min(310px, 78vw);
  margin-top: 0;
}

.phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 52px;
  height: 5px;
  border-radius: 99px;
  background: #2d3748;
  transform: translateX(-50%);
}

.app-screen {
  height: 500px;
  padding: 34px 13px 16px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
}

.small-phone .app-screen {
  height: 500px;
}

.app-topbar,
.mini-stats,
.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-topbar {
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.app-topbar div {
  display: grid;
  gap: 4px;
}

.app-topbar strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.app-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 20px;
  background: var(--surface-alt);
}

.app-bell::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 99px;
  background: #ef4444;
}

.scan-card {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 22px;
  border-radius: 26px;
  color: white;
  text-align: center;
  background: linear-gradient(145deg, #1d4ed8, #2563eb);
}

.scan-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  animation: pulse 2.6s ease-in-out infinite;
}

.scan-ring span {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.mini-stats {
  gap: 12px;
  margin-top: 0;
  margin-bottom: 18px;
}

.mini-stats div,
.result-card {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.mini-stats strong {
  display: block;
  font-size: 1.28rem;
  color: var(--ink);
}

.mini-stats span,
.result-card p {
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.action-primary,
.action-secondary {
  display: grid;
  min-height: 104px;
  place-items: center;
  padding: 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  text-align: center;
}

.action-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.action-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}

.action-primary span,
.action-secondary span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.action-primary span {
  background: rgba(255, 255, 255, 0.28);
}

.action-secondary span {
  background: var(--surface-alt);
}

.upload-symbol,
.report-symbol {
  position: relative;
}

.report-symbol::before {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 14px;
  height: 18px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 3px;
}

.report-symbol::after {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  content: "";
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.section-mini-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.section-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-header-mini strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.section-header-mini em {
  padding: 4px 8px;
  border-radius: 7px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.notification-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.notification-card-mini p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 0.76rem;
}

.unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--blue);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 0;
}

.timeline span {
  height: 8px;
  border-radius: 99px;
  background: #dce5ef;
}

.timeline .is-done {
  background: var(--blue);
}

.result-card {
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.result-card small {
  color: var(--faint);
  font-weight: 500;
}

.stage-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 5px;
}

.stage-labels span {
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--warning);
}

.image-tile {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05)),
    var(--surface-alt);
}

.report-screen {
  padding-top: 38px;
}

.report-header {
  margin: -38px -15px 14px;
  padding: 42px 20px 20px;
  color: white;
  background: var(--blue);
}

.report-header strong,
.report-header span {
  display: block;
}

.report-header strong {
  margin-bottom: 4px;
  font-size: 1.36rem;
}

.report-header span {
  color: #dbeafe;
  font-size: 0.88rem;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.filter-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-row .active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.report-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.report-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.report-item em {
  display: inline-flex;
  width: max-content;
  padding: 5px 7px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-ready {
  color: #166534;
  background: var(--success-soft);
}

.badge-follow {
  color: #1e40af;
  background: #dbeafe;
}

.report-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.report-icon.green {
  background: var(--success-soft);
}

.report-icon.amber {
  background: var(--warning-soft);
}

.report-icon.blue {
  background: var(--blue-soft);
}

.pending-box-mini {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  color: #92400e;
  background: #fffbeb;
}

.pending-box-mini p {
  margin-bottom: 0;
  color: #b45309;
  font-size: 0.82rem;
  line-height: 1.45;
}

.doctor-report-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctor-report-header {
  margin: -34px -13px 0;
  padding: 38px 17px 16px;
  color: white;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, var(--blue), #0f766e);
}

.doctor-report-header strong,
.doctor-report-header span {
  display: block;
}

.doctor-report-header strong {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.doctor-report-header span {
  color: #dbeafe;
  font-size: 0.78rem;
}

.report-summary-card,
.progress-card-mini,
.patient-comment-mini {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.report-summary-card small,
.patient-comment-mini small,
.progress-card-mini span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-summary-card strong,
.progress-card-mini strong {
  display: block;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.report-summary-card p,
.patient-comment-mini p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.38;
}

.progress-card-mini {
  display: grid;
  gap: 9px;
  background: #f0fdfa;
}

.progress-bars-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.progress-bars-mini span {
  height: 9px;
  border-radius: 99px;
  background: #ccfbf1;
}

.progress-bars-mini .is-filled {
  background: #14b8a6;
}

.doctor-note-mini {
  margin-top: auto;
  padding: 11px;
  border-radius: 12px;
  color: #166534;
  text-align: center;
  background: var(--success-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.upload-preview {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    #1f2937;
  background-size: 34px 34px;
}

.upload-preview .upload-symbol {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0 12px, transparent 13px),
    rgba(255, 255, 255, 0.16);
}

.upload-preview p {
  max-width: 220px;
  margin-bottom: 0;
  color: #d1d5db;
  line-height: 1.45;
}

.upload-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 16px 0;
  border-radius: 12px;
  background: white;
}

.upload-mode-row span {
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.upload-mode-row .active {
  color: var(--blue);
  background: var(--blue-soft);
}

.submit-button-mini {
  padding: 16px;
  border-radius: 16px;
  color: white;
  text-align: center;
  background: var(--blue);
  font-weight: 800;
}

.context-header {
  margin-bottom: 12px;
}

.context-header strong,
.context-header span,
.context-field small,
.context-field strong,
.context-note small {
  display: block;
}

.context-header strong {
  color: var(--ink);
  font-size: 1.14rem;
}

.context-header span,
.context-field small,
.context-note small {
  color: var(--muted);
  font-size: 0.76rem;
}

.context-field,
.context-note {
  padding: 12px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.context-field strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.pain-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.pain-row span {
  display: grid;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-alt);
  font-weight: 800;
}

.pain-row .active {
  color: white;
  background: #ef4444;
}

.context-note p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.doctor-mini-header {
  margin: -38px -15px 16px;
  padding: 42px 20px 20px;
  color: white;
  background: var(--blue);
}

.doctor-mini-header strong,
.doctor-mini-header span {
  display: block;
}

.doctor-mini-header strong {
  font-size: 1.24rem;
}

.doctor-mini-header span {
  margin-top: 4px;
  color: #dbeafe;
}

.doctor-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.doctor-stat-row div {
  padding: 13px 8px;
  border-radius: 12px;
  text-align: center;
  background: white;
}

.doctor-stat-row strong,
.doctor-stat-row span {
  display: block;
}

.doctor-stat-row strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.doctor-stat-row span {
  color: var(--muted);
  font-size: 0.68rem;
}

.doctor-case-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.doctor-case-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.doctor-case-row em {
  margin-left: auto;
  color: var(--blue);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.product-section {
  background: var(--soft);
}

.product-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.1), transparent 28%),
    var(--soft);
}

.journey-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto clamp(22px, 3.5vw, 38px);
}

.journey-rail::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 31px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--blue-border));
}

.journey-step {
  appearance: none;
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  cursor: pointer;
  text-align: center;
  background: transparent;
}

.journey-step span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 6px solid var(--soft);
  border-radius: 999px;
  color: var(--blue);
  background: white;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  font-weight: 800;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.journey-step:hover span,
.journey-step.is-current span {
  color: white;
  background: var(--blue);
  transform: translateY(-2px);
}

.journey-step strong {
  color: var(--ink);
  font-size: 0.96rem;
  transition: color 0.18s ease;
}

.journey-step:hover strong,
.journey-step.is-current strong {
  color: var(--blue);
}


.simple-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.simple-feature-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.simple-feature-card::after {
  position: absolute;
  right: -46px;
  top: -46px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 999px;
  background: var(--blue-soft);
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.simple-feature-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.12);
  transform: translateY(-6px);
}

.simple-feature-card:hover::after {
  opacity: 0.9;
  transform: scale(1.08);
}

.simple-feature-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
}

.simple-feature-icon::before,
.simple-feature-icon::after {
  position: absolute;
  content: "";
}

.simple-feature-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.simple-feature-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-upload .simple-feature-icon::before {
  width: 30px;
  height: 22px;
  border: 3px solid var(--blue);
  border-radius: 7px;
}

.feature-upload .simple-feature-icon::after {
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 999px;
}

.feature-analysis .simple-feature-icon::before {
  width: 34px;
  height: 34px;
  border: 3px solid var(--blue);
  border-radius: 12px;
  transform: rotate(45deg);
}

.feature-analysis .simple-feature-icon::after {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: -15px 0 0 var(--blue), 15px 0 0 var(--blue), 0 -15px 0 var(--blue), 0 15px 0 var(--blue);
}

.feature-tracking .simple-feature-icon::before {
  width: 42px;
  height: 3px;
  background: var(--blue);
}

.feature-tracking .simple-feature-icon::after {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: -18px 0 0 var(--blue), 18px 0 0 var(--blue);
}

.feature-doctor .simple-feature-icon::before {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-8px);
}

.feature-doctor .simple-feature-icon::after {
  width: 34px;
  height: 18px;
  border-radius: 18px 18px 7px 7px;
  background: var(--blue);
  transform: translateY(15px);
}

.feature-report .simple-feature-icon::before {
  width: 30px;
  height: 38px;
  border: 3px solid var(--blue);
  border-radius: 7px;
  background: white;
}

.feature-report .simple-feature-icon::after {
  width: 16px;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 8px 0 var(--blue), 0 16px 0 var(--blue);
  transform: translateX(-2px);
}

.feature-secure .simple-feature-icon::before {
  width: 36px;
  height: 27px;
  border: 3px solid var(--blue);
  border-radius: 9px;
  transform: translateY(6px);
}

.feature-secure .simple-feature-icon::after {
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  border-radius: 6px 0 0;
  transform: translateY(-14px) rotate(45deg);
}

.feature-chat .simple-feature-icon::before {
  width: 36px;
  height: 26px;
  border: 3px solid var(--blue);
  border-radius: 12px;
}

.feature-chat .simple-feature-icon::after {
  width: 8px;
  height: 8px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: translate(12px, 15px) rotate(45deg);
}

.feature-learn .simple-feature-icon::before {
  width: 34px;
  height: 38px;
  border: 3px solid var(--blue);
  border-radius: 6px 12px 12px 6px;
  background: white;
}

.feature-learn .simple-feature-icon::after {
  width: 18px;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 9px 0 var(--blue), 0 18px 0 var(--blue);
  transform: translateX(2px);
}

.feature-auth .simple-feature-icon::before {
  width: 34px;
  height: 28px;
  border: 3px solid var(--blue);
  border-radius: 9px;
  transform: translateY(8px);
}

.feature-auth .simple-feature-icon::after {
  width: 22px;
  height: 18px;
  border: 3px solid var(--blue);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateY(-13px);
}

.architecture-section {
  color: white;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.36), transparent 34%),
    linear-gradient(145deg, #0f172a, #111827);
}

.architecture-section .eyebrow {
  color: #bfdbfe;
}

.architecture-section .section-heading p {
  color: #cbd5e1;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.stack-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: white;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.stack-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.stack-card img {
  display: grid;
  width: 78px;
  height: 58px;
  padding: 10px;
  border-radius: 14px;
  object-fit: contain;
  background: white;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.stack-card strong {
  font-size: 0.94rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 220px));
  justify-content: center;
  gap: 20px;
}

.team-card {
  min-height: 275px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.team-card img,
.team-avatar-placeholder {
  width: 164px;
  height: 164px;
  align-self: center;
  margin-bottom: 16px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  background: var(--blue-soft);
}

.team-card strong {
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}

.team-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.team-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 3rem;
  font-weight: 800;
}

.supervisor-team-card {
  border-color: rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.supervisor-team-card span {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: white;
  background: var(--ink);
}

.footer-info {
  display: grid;
  gap: 6px;
}

.footer-info span,
.footer-info a {
  font-size: 0.92rem;
}

.footer-info span {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-items: center;
  }

  .hero-screens {
    width: min(560px, 100%);
    min-height: 500px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 220px));
  }

  .journey-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .journey-rail::before {
    display: none;
  }

  .simple-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone-gallery {
    align-items: center;
    flex-direction: column;
  }

}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    font-size: 0.84rem;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .phone {
    width: min(290px, 100%);
  }

  .hero-screens {
    min-height: 440px;
  }

  .hero-screen-card {
    border-width: 8px;
    border-radius: 28px;
  }

  .hero-screen-card img {
    border-radius: 20px;
  }

  .hero-screen-home {
    width: min(220px, 54vw);
  }

  .hero-screen-login,
  .hero-screen-learn {
    width: min(168px, 42vw);
  }

  .app-screen {
    height: 520px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 260px);
  }

  .journey-rail {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-step {
    grid-template-columns: 54px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .journey-step span {
    width: 54px;
    height: 54px;
    border-width: 5px;
  }

  .simple-feature-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
