:root {
  color-scheme: light;
  --ink: #1f2326;
  --muted: #5d686d;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: #d8d3c8;
  --sun: #e7b84b;
  --coral: #d56a4f;
  --teal: #26706d;
  --forest: #234d3d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgb(247 244 238 / 92%);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  background:
    linear-gradient(90deg, var(--forest) 0 18%, transparent 18% 28%, var(--sun) 28% 72%, transparent 72% 82%, var(--coral) 82%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-block;
  height: 26px;
  width: 34px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: calc(100svh - 68px);
  padding: clamp(40px, 7vw, 92px) clamp(20px, 5vw, 64px);
}

.hero-copy {
  max-width: 720px;
}

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

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

h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 950px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

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

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 660px;
}

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

.button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  min-height: 520px;
  position: relative;
}

.device-shell {
  background: linear-gradient(135deg, #ffffff, #dfd8cb);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgb(31 35 38 / 16%);
  display: grid;
  gap: 14px;
  padding: 40px 28px;
  position: absolute;
  right: 0;
  top: 8%;
  transform: skewY(-7deg);
  width: min(90%, 520px);
}

.lamp-row {
  background: linear-gradient(90deg, transparent, #f3f7f3 10% 90%, transparent);
  border: 1px solid #ccd4cd;
  border-radius: 999px;
  height: 34px;
}

.lamp-row.warm {
  background: linear-gradient(90deg, transparent, #ffe8a0 10% 90%, transparent);
}

.metric-strip {
  background: var(--forest);
  border-radius: 8px;
  bottom: 22%;
  color: white;
  display: grid;
  gap: 2px;
  left: 4%;
  min-width: 170px;
  padding: 18px;
  position: absolute;
}

.metric-strip.alt {
  background: var(--coral);
  bottom: 8%;
  left: auto;
  right: 8%;
}

.metric-strip span {
  font-size: 0.85rem;
}

.metric-strip strong {
  font-size: 1.55rem;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.tool-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 190px;
  padding: 22px;
}

.tool-grid p,
.split p,
dd {
  color: var(--muted);
}

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

.split p {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  margin-bottom: 0;
}

.data-panel dl {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.data-panel div {
  background: var(--panel);
  padding: 24px;
}

dt {
  font-size: 1.3rem;
  font-weight: 850;
  margin-bottom: 8px;
}

dd {
  margin: 0;
}

@media (max-width: 900px) {
  .topbar,
  nav,
  .hero-actions {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  .hero,
  .split,
  .tool-grid,
  .data-panel dl {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
