@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f3f5f1;
  --ink: #161c1a;
  --ink-soft: #4a5551;
  --ink-muted: #6b7672;
  --teal: #0b5d56;
  --teal-mid: #0f766e;
  --teal-pale: #e8f3f1;
  --amber: #b45309;
  --amber-pale: #fef3c7;
  --line: #e4e6e1;
  --line-strong: #cfd4cd;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(22, 28, 26, 0.04), 0 12px 32px rgba(22, 28, 26, 0.05);
  --shadow-device: 0 28px 64px -16px rgba(11, 93, 86, 0.22), 0 8px 20px -6px rgba(22, 28, 26, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  display: block;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--teal);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #ffffff;
}

.btn-primary:hover {
  background: #084843;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Hero */
.hero {
  padding: 56px 0 68px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-mid);
}

.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.4rem, 4.4vw, 3.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.meta-item strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.meta-item span {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Interactive Bedside Device Mockup */
.device-stage {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 100%;
  max-width: 370px;
  background: #141917;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-device);
  border: 1px solid #2b3430;
}

.device-screen {
  background: #f8faf8;
  border-radius: 26px;
  overflow: hidden;
}

.device-topbar {
  background: var(--teal);
  color: #ffffff;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-topbar .app-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.device-topbar .wt-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 9px;
  border-radius: 999px;
}

.device-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #edf2ef;
  padding: 4px;
  gap: 4px;
}

.device-tab {
  border: none;
  background: transparent;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}

.device-tab.active {
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.device-body {
  padding: 0;
  background: #ffffff;
}

.device-shot {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top center;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.shot-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 10px;
}

.shot-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.panel-hidden {
  display: none;
}

.preview-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.preview-card:last-child {
  margin-bottom: 0;
}

.preview-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed #eaeeeb;
  font-size: 0.8rem;
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row span:first-child {
  color: var(--ink-soft);
  font-weight: 600;
}

.kv-row strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Clinical Architecture Layout (Non-cookie-cutter) */
.clinical-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.domain-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.domain-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-pale);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.domain-panel h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.domain-panel p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.tool-list {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.tool-list li {
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tool-list li span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Founder Section */
.founder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
}

.founder-photo-wrap {
  position: relative;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: block;
}

.founder-caption {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.founder-caption strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.founder-caption span {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 700;
}

.founder-bio h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}

.founder-bio .intro {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.bio-block h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 12px;
}

.bio-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.bio-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.bio-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-mid);
  position: absolute;
  left: 0;
  top: 9px;
}

.bio-list li strong {
  color: var(--ink);
}

.services-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.service-box {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.service-box h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.service-box p {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* Disclaimer */
.disclaimer-strip {
  background: var(--amber-pale);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: #78350f;
  font-size: 0.88rem;
}

/* Legal Pages */
.legal-wrap {
  max-width: 820px;
  margin: 44px auto 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.legal-wrap h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal-wrap h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal);
  margin: 24px 0 8px;
}

.legal-wrap p, .legal-wrap li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.legal-wrap ul {
  padding-left: 20px;
}

/* Footer */
footer {
  background: #141917;
  color: #b7c2bd;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a {
  color: #d8f68a;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }
  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .clinical-columns,
  .founder-layout,
  .bio-grid,
  .services-strip {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    max-width: 340px;
  }
}

@media (max-width: 560px) {
  .shots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
