:root {
  color-scheme: dark;
  --ink: #0b0a08;
  --ink-2: #15120f;
  --paper: #f7f2ea;
  --paper-2: #fffaf3;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(20, 16, 12, 0.16);
  --text: #f9f3eb;
  --muted: #c7b9a9;
  --muted-dark: #5d5148;
  --copper: #ff6a21;
  --gold: #d8a245;
  --blue: #72c7ee;
  --green: #48c48d;
  --red: #f26057;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 34px;
  background: rgba(11, 10, 8, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(11, 10, 8, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--copper));
  font-size: 0.78rem;
  font-weight: 900;
}

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

.brand-link strong {
  font-size: 1rem;
}

.brand-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.site-nav .nav-cta {
  color: #160c05;
  background: var(--blue);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #160c05;
  background: #9adbf4;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: #090806;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 4, 0.96) 0%, rgba(8, 7, 6, 0.78) 36%, rgba(8, 7, 6, 0.2) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    url("assets/leaflet-front.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 76px;
}

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

.eyebrow.dark {
  color: #9a3f1a;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 4.8rem;
  line-height: 0.98;
}

.hero-line {
  margin-bottom: 20px;
  color: var(--copper);
  font-size: 2rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.16rem;
  line-height: 1.72;
}

.hero-actions,
.endpoint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.button.primary {
  color: #140a03;
  background: var(--copper);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ff8449;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  max-width: 560px;
  margin: 46px 0 0;
}

.hero-stats div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.62);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.intro-band,
.closing-band {
  padding: 48px 0;
  background: var(--paper);
  color: #1d1712;
}

.section-grid,
.section-heading,
.journey,
.feature-grid,
.monitor-layout,
.profile-layout,
.data-layout,
.safety-grid,
.specs-layout,
.leaflet-gallery,
.closing-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.section-grid h2,
.section-heading h2,
.monitor-copy h2,
.data-layout h2,
.specs-layout h2,
.closing-inner h2 {
  margin-bottom: 18px;
  font-size: 2.6rem;
  line-height: 1.08;
}

.section-grid p,
.section-heading p,
.monitor-copy p,
.data-layout p,
.specs-layout p,
.closing-inner p {
  color: currentColor;
  opacity: 0.78;
  font-size: 1rem;
  line-height: 1.76;
}

.dark-section,
.data-section {
  background: var(--ink);
  color: var(--text);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-step {
  min-height: 238px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.journey-step:last-child {
  border-right: 0;
}

.step-number {
  display: inline-flex;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 42px;
}

.journey-step h3,
.feature-card h3,
.safety-grid h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.journey-step p,
.feature-card p,
.safety-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

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

.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.feature-card::before,
.safety-grid article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--copper);
}

.accent-blue::before {
  background: var(--blue);
}

.accent-green::before {
  background: var(--green);
}

.accent-red::before {
  background: var(--red);
}

.monitor-section,
.profile-section,
.safety-section,
.leaflet-section {
  background: var(--paper-2);
  color: #1d1712;
}

.monitor-layout,
.data-layout,
.specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 58px;
  align-items: center;
}

.signal-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}

.signal-list li {
  padding: 13px 0 13px 18px;
  border-left: 3px solid var(--blue);
  color: var(--muted-dark);
  line-height: 1.5;
}

.signal-list span {
  color: #1b1510;
  font-weight: 900;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(410px, 100%);
  min-height: 690px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #070706;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
}

.phone-header,
.phone-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-header {
  justify-content: space-between;
  margin-bottom: 26px;
}

.phone-header strong,
.phone-header small {
  display: block;
}

.phone-header small {
  margin-top: 3px;
  color: #8d8278;
  font-size: 0.72rem;
}

.status-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: 0 0 24px rgba(255, 106, 33, 0.5);
}

.offline-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(72, 196, 141, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.temp-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #11100f;
}

.temp-panel span,
.phone-metrics span {
  display: block;
  color: #8d8278;
  font-size: 0.78rem;
  font-weight: 800;
}

.temp-panel strong {
  display: block;
  margin: 14px 0 18px;
  font-size: 3rem;
  line-height: 1;
}

.temp-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #24201d;
}

.temp-track span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--copper));
  transition: width 320ms ease;
}

.phone-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.phone-metrics div {
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  background: #10100f;
}

.phone-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.roast-chart {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0d0c0b;
}

.profile-section {
  border-top: 1px solid var(--line-dark);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.profile-buttons {
  display: grid;
  gap: 10px;
}

.profile-button {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: #211813;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-button:hover,
.profile-button:focus-visible,
.profile-button.active {
  border-color: rgba(255, 106, 33, 0.75);
  background: #fff;
  outline: 0;
}

.profile-button.active {
  transform: translateX(4px);
}

.profile-button span {
  font-weight: 900;
}

.profile-button strong {
  color: #9a3f1a;
}

.profile-panel {
  min-height: 336px;
  padding: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(114, 199, 238, 0.2), rgba(255, 255, 255, 0) 45%),
    #fff;
  box-shadow: 0 20px 70px rgba(38, 28, 16, 0.12);
}

.profile-kicker {
  margin-bottom: 14px;
  color: #9a3f1a;
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-panel h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.profile-panel p {
  max-width: 620px;
  color: var(--muted-dark);
  line-height: 1.72;
}

.profile-meter {
  height: 10px;
  overflow: hidden;
  margin: 32px 0 24px;
  border-radius: 999px;
  background: #e7ded3;
}

.profile-meter span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--copper));
  transition: width 220ms ease;
}

.profile-facts,
.spec-table {
  display: grid;
  gap: 1px;
  margin: 0;
}

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

.profile-facts div,
.spec-table div {
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.profile-facts dt,
.spec-table dt {
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.profile-facts dd,
.spec-table dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.data-layout {
  align-items: start;
}

.endpoint-row {
  margin-top: 26px;
}

code {
  color: #dbeffe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.endpoint-row code {
  padding: 10px 12px;
  border: 1px solid rgba(114, 199, 238, 0.28);
  border-radius: 8px;
  background: rgba(114, 199, 238, 0.08);
  font-size: 0.88rem;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11100f;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #e6dccf;
  font-size: 0.95rem;
  line-height: 1.62;
}

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

.safety-grid article {
  min-height: 186px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
}

.safety-grid article:nth-child(2)::before,
.safety-grid article:nth-child(5)::before {
  background: var(--blue);
}

.safety-grid article:nth-child(3)::before,
.safety-grid article:nth-child(6)::before {
  background: var(--green);
}

.specs-section {
  background: #10100f;
  color: #fff;
}

.specs-layout {
  align-items: start;
}

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

.spec-table div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.spec-table dt {
  color: var(--muted);
}

.leaflet-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.leaflet-gallery figure {
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 70px rgba(38, 28, 16, 0.1);
}

.leaflet-gallery img {
  width: 100%;
  height: 390px;
  object-fit: contain;
  background: #120f0d;
}

.leaflet-gallery figcaption {
  padding: 14px 16px;
  color: var(--muted-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.closing-band {
  border-top: 1px solid var(--line-dark);
  background:
    linear-gradient(90deg, rgba(255, 106, 33, 0.1), rgba(114, 199, 238, 0.16)),
    var(--paper);
}

.closing-inner {
  max-width: 800px;
}

.closing-inner .button {
  margin-top: 10px;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #090806;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  color: #fff;
  margin-bottom: 6px;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 22px;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
  }

  .site-nav {
    position: fixed;
    top: 73px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(11, 10, 8, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: center;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(5, 5, 4, 0.84) 0%, rgba(8, 7, 6, 0.78) 56%, rgba(8, 7, 6, 0.88) 100%),
      url("assets/leaflet-front.png");
    background-position: center top;
  }

  .hero-inner {
    width: min(100% - 34px, 720px);
    padding-top: 122px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-line {
    font-size: 1.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .section {
    padding: 70px 0;
  }

  .section-grid,
  .monitor-layout,
  .profile-layout,
  .data-layout,
  .specs-layout {
    grid-template-columns: 1fr;
  }

  .journey,
  .feature-grid,
  .safety-grid,
  .spec-table,
  .leaflet-gallery,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-step:nth-child(2) {
    border-right: 0;
  }

  .journey-step:nth-child(1),
  .journey-step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .phone-shell {
    min-height: 640px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-link strong {
    font-size: 0.92rem;
  }

  .brand-link small {
    font-size: 0.7rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-inner,
  .section-grid,
  .section-heading,
  .journey,
  .feature-grid,
  .monitor-layout,
  .profile-layout,
  .data-layout,
  .safety-grid,
  .specs-layout,
  .leaflet-gallery,
  .closing-inner {
    width: min(100% - 32px, 560px);
  }

  h1 {
    font-size: 2.74rem;
  }

  .section-grid h2,
  .section-heading h2,
  .monitor-copy h2,
  .data-layout h2,
  .specs-layout h2,
  .closing-inner h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .hero-stats,
  .journey,
  .feature-grid,
  .safety-grid,
  .spec-table,
  .leaflet-gallery,
  .footer-inner,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    max-width: none;
  }

  .journey-step {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-step:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 24px;
  }

  .feature-card,
  .safety-grid article {
    min-height: auto;
  }

  .phone-shell {
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .temp-panel strong {
    font-size: 2.5rem;
  }

  .phone-metrics {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    padding: 24px;
  }

  .profile-button.active {
    transform: none;
  }

  .leaflet-gallery img {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
