:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #111827;
  --card-bg: #0f172a;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --accent-strong: #0ea5e9;
  --accent-warm: #f97316;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 8px 25px rgba(15, 23, 42, 0.75);
  --shadow-card: 0 18px 35px rgba(15, 23, 42, 0.9);
  --max-width: 1160px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0b1120, #020617 60%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0 0 0.8rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(
    from 180deg,
    #38bdf8,
    #22c55e,
    #eab308,
    #f97316,
    #38bdf8
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 52%);
}

.nav-cta:hover {
  border-color: rgba(248, 250, 252, 0.9);
}

/* HERO */
.hero {
  padding: 3.4rem 0 2.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 2.9rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
  letter-spacing: -0.025em;
}

.hero-copy p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn.primary {
  background: radial-gradient(circle at top left, #38bdf8, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(56, 189, 248, 0.48);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 60%);
}

.btn.ghost:hover {
  border-color: rgba(248, 250, 252, 0.85);
  transform: translateY(-1px);
}

.btn.full-width {
  width: 100%;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-highlights li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.35rem;
}

.hero-card {
  border-radius: clamp(18px, 2vw, 22px);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.24), transparent 58%),
    linear-gradient(to bottom right, #020617, #020617, #020617);
  padding: 1.7rem 1.6rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-metrics {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.metric-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
}

.metric-value {
  color: var(--text-main);
}

/* SECTIONS */
.section {
  padding: 2.6rem 0 2.4rem;
}

.section.alt {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%),
    linear-gradient(to bottom, #020617, #020617);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.section-header {
  max-width: 40rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(to bottom right, #020617, #020617);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem 1.15rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-main);
  display: grid;
  gap: 0.35rem;
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.subtext {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Patient flow */
.patient-flow {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1rem 1.2rem 0.9rem;
  box-shadow: var(--shadow-subtle);
}

.patient-flow h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.patient-flow .subtext {
  margin-bottom: 0.6rem;
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.flow-diagram > div {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.95);
}

.flow-diagram > span {
  color: var(--text-soft);
}

.flow-note {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Notice / highlight boxes */
.notice-box {
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(248, 250, 252, 0.6);
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.1), transparent 60%),
    linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.78));
}

.notice-box h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.notice-box p {
  font-size: 0.86rem;
  color: var(--text-main);
}

/* Tech diagram */
.tech-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
}

.tech-box {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  min-width: 150px;
}

.tech-box h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
}

.tech-box p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-main);
}

.tech-diagram span {
  color: var(--text-soft);
}

/* API */
.api-grid {
  align-items: flex-start;
}

.api-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.api-form label {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.25rem;
}

.api-form input,
.api-form textarea,
.api-form select {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.45rem 0.6rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.api-form input:focus,
.api-form textarea:focus,
.api-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background: #020617;
}

.api-form textarea {
  resize: vertical;
}

.api-result {
  margin-top: 0.6rem;
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.78rem;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text-main);
}

.api-result.error {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.hidden {
  display: none !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal {
  width: min(640px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    linear-gradient(to bottom right, #020617, #020617);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.modal-body {
  padding: 1rem 1.1rem 1.1rem;
}

.icon-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-main);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.85);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: linear-gradient(to top, #020617, #020617);
  padding: 1.1rem 0 1.3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-bottom: 0.8rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.4rem;
  }

  .card {
    padding: 1rem 0.95rem 0.95rem;
  }

  .patient-flow {
    padding: 0.9rem 0.9rem 0.8rem;
  }
}

