@font-face {
  font-family: "Teko";
  src: url("teko-medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Teko";
  src: url("teko-bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  color-scheme: light;
  --ink: #111414;
  --muted: #566062;
  --paper: #f7f8f6;
  --line: rgba(17, 20, 20, 0.16);
  --green: #129345;
  --green-dark: #0c5d2e;
  --yellow: #f0d800;
  --red: #ee2b2b;
  --steel: #dfe4e2;
  --charcoal: #17201d;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(15, 24, 21, 0.16);
  font-family: Teko, "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Teko, "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

img,
canvas {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 82px;
  padding: 16px clamp(22px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.brand strong {
  display: block;
  font-size: 28px;
  line-height: 0.92;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #34413c;
  font-size: 22px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--green);
}

.header-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 9px 18px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

.button.primary:hover,
.header-cta:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: rgba(17, 20, 20, 0.3);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(520px, 0.82fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(62px, 8vw, 128px) clamp(22px, 6vw, 104px) clamp(54px, 7vw, 96px);
  background:
    radial-gradient(circle at 82% 26%, rgba(18, 147, 69, 0.18), transparent 360px),
    linear-gradient(120deg, #ffffff 0%, #f4f6f4 50%, #e6ebe8 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}

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

h1 {
  max-width: 870px;
  margin-bottom: 24px;
  font-size: clamp(78px, 10vw, 142px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(54px, 6vw, 86px);
  font-weight: 700;
  line-height: 0.88;
}

h3 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 0.94;
}

p {
  color: var(--muted);
  font-size: 26px;
  line-height: 1.12;
}

.hero-lede {
  max-width: 760px;
  color: #333b38;
  font-size: clamp(28px, 3vw, 38px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof span {
  border: 1px solid rgba(17, 20, 20, 0.16);
  background: rgba(255, 255, 255, 0.68);
  padding: 8px 13px;
  color: #2f3835;
  font-size: 20px;
  line-height: 1;
}

.hero-visual {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 20, 0.18);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98), rgba(218, 224, 222, 0.72) 62%, rgba(21, 31, 28, 0.1)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(233, 237, 235, 0.78));
  box-shadow: var(--shadow);
}

.hero-visual canvas {
  width: min(88vw, 680px);
  height: min(88vw, 680px);
}

.hero-status {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(17, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 14px;
  color: #26302d;
  font-size: 20px;
  line-height: 1;
}

.status-light {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(18, 147, 69, 0.9);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 clamp(22px, 6vw, 104px);
  background: var(--ink);
}

.intro-strip article {
  min-height: 164px;
  padding: 28px 28px 24px;
  background: #f4f6f4;
}

.intro-strip strong {
  display: block;
  font-size: 34px;
  line-height: 0.95;
}

.intro-strip span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.05;
}

.split-section,
.layers-section,
.feature-section,
.gallery-section,
.try-banner,
.demo-info {
  padding: clamp(72px, 8vw, 126px) clamp(22px, 6vw, 104px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  background: #ffffff;
}

.split-section > div:first-child {
  position: sticky;
  top: 116px;
}

.risk-grid,
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.risk-grid article,
.feature-list article,
.layer-grid article,
.demo-info article {
  border: 1px solid rgba(17, 20, 20, 0.14);
  background: rgba(247, 248, 246, 0.86);
  padding: 28px;
}

.risk-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 22px;
}

.layers-section {
  background:
    linear-gradient(180deg, #eef2ef, #ffffff);
}

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

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

.layer-grid article {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(17, 20, 20, 0.08);
}

.layer-grid img,
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: #e6ebe8;
}

.layer-grid h3,
.layer-grid p {
  padding-left: 26px;
  padding-right: 26px;
}

.layer-grid h3 {
  margin-top: 26px;
}

.layer-grid p {
  padding-bottom: 28px;
}

.feature-section {
  background: var(--charcoal);
  color: var(--white);
}

.feature-section p,
.feature-section .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.feature-list article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.feature-list p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-section {
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid rgba(17, 20, 20, 0.14);
  background: #f6f8f6;
  overflow: hidden;
}

.gallery-grid .wide {
  grid-row: span 2;
}

.gallery-grid figcaption {
  padding: 18px 22px;
  color: #46504c;
  font-size: 22px;
  line-height: 1.05;
}

.try-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background:
    radial-gradient(circle at 86% 18%, rgba(240, 216, 0, 0.34), transparent 240px),
    linear-gradient(110deg, #123b24, #0c2118);
  color: var(--white);
}

.try-banner p,
.try-banner .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px clamp(22px, 6vw, 104px);
  border-top: 1px solid rgba(17, 20, 20, 0.15);
  background: #ffffff;
}

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

.site-footer strong {
  font-size: 30px;
  line-height: 1;
}

.site-footer span,
.site-footer nav {
  color: var(--muted);
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.demo-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% 24%, rgba(18, 147, 69, 0.18), transparent 340px),
    linear-gradient(120deg, #f7f8f6, #e8eeeb);
}

.demo-header {
  position: relative;
}

.demo-shell {
  padding: clamp(34px, 5vw, 74px) clamp(22px, 5vw, 88px) 88px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: center;
}

.demo-copy h1 {
  font-size: clamp(68px, 8vw, 112px);
}

.code-panel {
  margin: 30px 0 22px;
  border: 1px solid rgba(17, 20, 20, 0.16);
  background: rgba(255, 255, 255, 0.75);
  padding: 18px;
}

.code-panel > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 20px;
}

.target-code {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-code span,
.demo-progress span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 20, 20, 0.25);
  background: #ffffff;
  font-size: 27px;
  line-height: 1;
}

.target-code span.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-message {
  margin-top: 22px;
  color: #2d3834;
  font-size: 27px;
}

.demo-message.success {
  color: var(--green-dark);
}

.demo-message.error {
  color: #9c1616;
}

.demo-dial-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 760px;
  border: 1px solid rgba(17, 20, 20, 0.16);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0%, #eef2ef 58%, rgba(17, 20, 20, 0.08) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#demo-dial {
  width: min(86vw, 720px);
  height: min(86vw, 720px);
  touch-action: none;
  cursor: grab;
}

#demo-dial.dragging {
  cursor: grabbing;
}

.capture-window {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 48px));
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.demo-progress {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.demo-progress span {
  width: 16px;
  min-width: 16px;
  height: 16px;
  background: transparent;
}

.demo-progress span.done {
  background: var(--green);
  border-color: var(--green);
}

.demo-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1050px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .demo-stage {
    grid-template-columns: 1fr;
  }

  .split-section > div:first-child {
    position: static;
  }

  .intro-strip,
  .layer-grid,
  .demo-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .wide {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .brand {
    min-width: 0;
  }

  .header-cta {
    width: 100%;
  }

  .hero,
  .split-section,
  .layers-section,
  .feature-section,
  .gallery-section,
  .try-banner,
  .demo-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .demo-dial-card {
    min-height: 430px;
  }

  .intro-strip,
  .risk-grid,
  .feature-list,
  .layer-grid,
  .demo-info {
    grid-template-columns: 1fr;
  }

  .try-banner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
