:root {
  color-scheme: light;
  --ink: #101214;
  --paper: #fff8eb;
  --surface: #fffdf8;
  --muted: #6b655e;
  --line: #ddd2c2;
  --red: #ef4637;
  --yellow: #ffd052;
  --shadow: 0 24px 80px rgba(16, 18, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px, auto;
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
}

.topbar,
.hero,
.reader-strip,
.visual-strip,
.section,
.final-cta,
.footer,
.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 235, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.top-cta,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 950;
}

.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform 160ms ease;
}

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

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

nav a {
  padding: 6px 2px;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

nav a:hover {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(255, 208, 82, 0.58) 62%);
}

.top-cta {
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.top-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 62px 0 76px;
  text-align: center;
}

.badge,
.kicker {
  margin: 0 0 18px;
  color: #b73528;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  border: 2px solid var(--red);
  background: var(--surface);
}

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

h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span {
  color: var(--red);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.subcopy {
  max-width: 670px;
  margin: 0 auto 30px;
  color: #3a362f;
  font-size: 21px;
  line-height: 1.5;
}

.proofline {
  display: grid;
  width: fit-content;
  max-width: 680px;
  margin: 0 auto 26px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.proofline strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
}

.proofline span {
  display: block;
  margin-top: 2px;
  color: #4c463f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  color: var(--paper);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  border: 1px solid var(--ink);
  background: var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 42px;
}

.chips span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: #35302a;
  font-size: 13px;
  font-weight: 850;
}

.demo-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #101214;
  box-shadow: var(--shadow);
}

.demo-card video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screen-top {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  color: rgba(255, 248, 235, 0.78);
  background: rgba(16, 18, 20, 0.72);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.screen-top strong {
  color: #fff8eb;
}

.floating-ui {
  position: absolute;
  right: 16px;
  bottom: 52px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(16, 18, 20, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.floating-ui button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  color: var(--paper);
  background: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.floating-ui span {
  display: grid;
  min-width: 38px;
  min-height: 34px;
  place-items: center;
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 950;
}

.reader-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: center;
  margin-top: -24px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--yellow);
  font-size: 15px;
}

.reader-strip div {
  position: relative;
  min-height: 82px;
  padding: 18px 22px;
}

.reader-strip div + div {
  border-left: 1px solid var(--line);
}

.reader-strip div + div::before {
  content: "->";
  position: absolute;
  top: 50%;
  left: -16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  transform: translateY(-50%);
}

.reader-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-strip strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: end;
  max-width: 900px;
  padding: 72px 0 0;
}

.visual-strip figure {
  margin: 0;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #101214;
  box-shadow: 0 18px 45px rgba(16, 18, 20, 0.12);
}

.visual-strip .shot {
  overflow: visible;
}

.shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101214;
}

.mini-ui {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 3px;
  color: var(--paper);
  background: rgba(16, 18, 20, 0.88);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.mini-ui.toggle {
  color: var(--ink);
  background: var(--paper);
}

.mini-ui.progress span {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 64%, rgba(255, 248, 235, 0.3) 64%);
}

.visual-strip figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section,
.final-cta {
  padding: 88px 0;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-title.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

.feature-grid article,
.steps div,
.faq-list details,
.guide-card,
.manual-panel {
  min-height: 182px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.82);
}

.icon,
.steps span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 26px;
  font-weight: 950;
}

.feature-grid p,
.steps p,
.faq-list p,
.guide-band p,
.guide-card p,
.manual p,
.manual li,
.control-list dd,
.guardrail p,
.final-cta p,
.copy p,
.copy li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.how {
  border-top: 1px solid var(--line);
}

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

.maker-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.maker-story h2 {
  max-width: 740px;
}

.story-copy {
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--yellow);
}

.story-copy p {
  margin-bottom: 18px;
  color: #3c3832;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.62;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
  gap: 12px;
}

.faq-list details {
  min-height: 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
}

.faq-list p {
  margin: 14px 0 0;
}

.guide-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.guide-band h2 {
  max-width: 760px;
}

.guide-band p {
  max-width: 650px;
  margin-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.guide-card {
  min-height: 0;
  text-decoration: none;
}

.guide-card .kicker {
  margin-bottom: 14px;
}

.guide-card h2 {
  font-size: 30px;
}

.manual {
  max-width: 980px;
}

.manual-lead {
  margin-right: 0;
  margin-left: 0;
}

.manual-panel {
  min-height: 0;
  margin-top: 18px;
}

.manual-panel h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.manual-steps,
.manual-grid,
.control-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 0;
}

.manual-grid,
.control-list {
  grid-template-columns: repeat(2, 1fr);
}

.manual-steps div,
.manual-grid div,
.control-list div {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.manual-steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 24px;
  font-weight: 950;
}

.control-list {
  padding: 0;
}

.control-list dt {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 950;
}

.control-list dd {
  margin: 0;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 22px;
}

.guardrail {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px;
  color: var(--paper);
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.guardrail .kicker {
  color: var(--yellow);
}

.guardrail h2,
.guardrail p {
  max-width: 720px;
}

.guardrail p {
  color: rgba(255, 248, 235, 0.78);
  font-size: 18px;
}

.final-cta {
  text-align: center;
}

.final-cta p {
  max-width: 650px;
  margin-right: auto;
  margin-bottom: 26px;
  margin-left: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.shell {
  padding-top: 26px;
}

.shell .nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 56px;
}

.brand a,
.nav-links a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.copy {
  max-width: 760px;
}

.article-page h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
}

.article-lead {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.copy h2 {
  margin-top: 38px;
  font-size: 26px;
}

.guide-figure {
  margin: 34px 0;
}

.guide-figure img {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #101214;
  box-shadow: 8px 8px 0 var(--yellow);
}

.guide-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .reader-strip,
  .visual-strip,
  .feature-grid,
  .steps,
  .maker-story,
  .guide-band,
  .guide-grid,
  .manual-steps,
  .manual-grid,
  .control-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 52px;
  }

  .reader-strip {
    gap: 0;
  }

  .reader-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reader-strip div + div::before {
    top: -15px;
    left: 22px;
    transform: none;
  }

  .visual-strip {
    padding-top: 52px;
  }

  .demo-card,
  .reader-strip,
  .visual-strip figure {
    transform: none;
  }

  .feature-grid article,
  .steps div,
  .faq-list details,
  .guide-card,
  .manual-panel {
    min-height: 0;
  }

  .icon,
  .steps span {
    margin-bottom: 16px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .reader-strip,
  .visual-strip,
  .section,
  .final-cta,
  .footer,
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .topbar {
    min-height: 64px;
  }

  .brand {
    font-size: 15px;
  }

  .brand span {
    width: 30px;
    height: 30px;
  }

  .top-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding-bottom: 58px;
  }

  h1 {
    font-size: 50px;
  }

  .article-page h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  .subcopy {
    font-size: 18px;
  }

  .proofline {
    width: auto;
    max-width: 100%;
    font-size: 13px;
  }

  .proofline strong {
    font-size: 14px;
  }

  .guardrail {
    padding: 34px 24px;
    box-shadow: 6px 6px 0 var(--red);
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
