:root {
  --paper: #f6f1e8;
  --paper-soft: #fffaf1;
  --ink: #17201f;
  --muted: #60706d;
  --line: rgba(23, 32, 31, 0.14);
  --teal: #168673;
  --teal-deep: #0b5f55;
  --amber: #d99a2b;
  --coral: #cf684e;
  --sky: #417f9f;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 32, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-elevated,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 12px 30px rgba(23, 32, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: currentColor;
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
  outline: none;
}

.site-header.is-elevated .site-nav a:hover,
.site-header.is-elevated .site-nav a:focus-visible,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a:focus-visible {
  background: rgba(22, 134, 115, 0.1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  padding: 9px 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
}

.menu-toggle b {
  margin-left: 5px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  padding: 136px clamp(20px, 6vw, 88px) 74px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 19, 18, 0.84), rgba(7, 19, 18, 0.56) 48%, rgba(7, 19, 18, 0.18)),
    linear-gradient(0deg, rgba(7, 19, 18, 0.48), rgba(7, 19, 18, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 800px);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #8fe4d1;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 900px;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  background: #9ce8d8;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--white);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}

.metric-strip div {
  padding: 24px clamp(18px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-size: 26px;
  color: #f8c96f;
}

.metric-strip span {
  color: rgba(255, 255, 255, 0.72);
}

.section,
.wide-band,
.diagram-band {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card,
.status-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 0 12px 36px rgba(23, 32, 31, 0.06);
}

.feature-card {
  min-height: 264px;
  padding: 26px;
}

.feature-card p,
.status-card p,
.note-card p {
  color: var(--muted);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
}

.accent-teal .icon-badge {
  background: var(--teal);
}

.accent-amber .icon-badge {
  background: var(--amber);
}

.accent-coral .icon-badge {
  background: var(--coral);
}

.wide-band {
  background: #e7efe9;
}

.tabs {
  max-width: 1160px;
  margin: 0 auto;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button {
  min-height: 44px;
  border: 1px solid rgba(23, 32, 31, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: var(--white);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: stretch;
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-panel.is-active {
  display: grid;
}

.panel-copy {
  padding: clamp(26px, 4vw, 48px);
}

.panel-copy ul {
  margin: 22px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.panel-copy li + li {
  margin-top: 8px;
}

.panel-figure {
  margin: 0;
  min-height: 360px;
}

.panel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.protocol-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 12px 36px rgba(23, 32, 31, 0.06);
}

.protocol-row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1.4fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.protocol-row:last-child {
  border-bottom: 0;
}

.protocol-row span:first-child {
  font-weight: 900;
}

.protocol-row span:not(:first-child) {
  color: var(--muted);
}

.protocol-head {
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.protocol-head span:not(:first-child) {
  color: rgba(255, 255, 255, 0.78);
}

.diagram-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(rgba(23, 32, 31, 0.84), rgba(23, 32, 31, 0.84)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=82")
      center/cover;
}

.diagram-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.path-diagram {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr;
  align-items: center;
}

.path-node {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.1);
  backdrop-filter: blur(12px);
  text-align: center;
}

.path-node span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.path-node small {
  color: rgba(255, 255, 255, 0.72);
}

.path-line {
  height: 2px;
  background: #f8c96f;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.calculator label,
.calc-result {
  display: grid;
  gap: 10px;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 20px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(23, 32, 31, 0.18);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}

.calculator input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.range-readout {
  color: var(--muted);
}

.calc-result {
  align-content: center;
  background: var(--teal-deep);
  color: var(--white);
}

.calc-result strong {
  font-size: 30px;
  line-height: 1;
}

.calc-result span {
  color: rgba(255, 255, 255, 0.76);
}

.notes-band {
  background: #efe6d6;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.note-card {
  overflow: hidden;
}

.note-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.note-card div {
  padding: 22px;
}

.note-meta {
  margin-bottom: 8px;
  color: var(--coral) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.note-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-deep);
  font-weight: 900;
}

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

.status-card {
  padding: 22px;
}

.status-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.status-dot.green {
  background: var(--teal);
}

.status-dot.amber {
  background: var(--amber);
}

.status-dot.coral {
  background: var(--coral);
}

.status-dot.ink {
  background: var(--ink);
}

.faq {
  max-width: 920px;
  margin: 42px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-soft);
}

.faq button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  padding: 17px 20px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.faq-panel {
  border-bottom: 1px solid var(--line);
  padding: 0 20px 18px;
}

.faq-panel p {
  margin: 0;
  color: var(--muted);
}

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

.site-footer p {
  max-width: 500px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

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

@media (max-width: 1040px) {
  .metric-strip,
  .calculator,
  .note-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .diagram-band,
  .tab-panel {
    grid-template-columns: 1fr;
  }

  .panel-figure {
    min-height: 300px;
  }

  .path-diagram {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .path-line {
    width: 2px;
    height: 28px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 18px;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 54px;
    height: 42px;
    gap: 4px;
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 25;
  }

  .menu-toggle b {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-soft);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
    padding-right: 72px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 88vh;
    padding: 118px 20px 48px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 18px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .metric-strip,
  .feature-grid,
  .calculator,
  .note-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .wide-band,
  .diagram-band {
    padding: 62px 20px;
  }

  .tab-list {
    flex-direction: column;
  }

  .protocol-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: min(100%, 350px);
  }

  .menu-toggle {
    right: auto;
    left: min(calc(100vw - 72px), 318px);
  }
}
