:root {
  color-scheme: light;
  --ink: #101614;
  --muted: #5c6762;
  --paper: #f4f1e8;
  --white: #ffffff;
  --line: #d8d0c1;
  --forest: #13231f;
  --green: #1f6f58;
  --teal: #187c84;
  --gold: #ad8530;
  --coral: #b34b3f;
  --mist: #e8eee8;
  --shadow: 0 18px 42px rgba(16, 22, 20, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Yu Gothic", "Yu Gothic UI", "Meiryo", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

body,
input,
select,
button {
  font: 16px/1.5 "Yu Gothic", "Yu Gothic UI", "Meiryo", Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 14px 28px;
  color: var(--white);
  background: rgba(19, 35, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
}

.brand span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 800;
}

nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 16, 0.96) 0%, rgba(12, 18, 16, 0.84) 42%, rgba(12, 18, 16, 0.12) 82%),
    linear-gradient(0deg, rgba(12, 18, 16, 0.72) 0%, rgba(12, 18, 16, 0) 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
  padding: 118px 0 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #e0b858;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  width: min(780px, 100%);
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  width: min(720px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  overflow-wrap: anywhere;
}

.hero-actions,
.lane-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-metrics {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: grid;
  width: min(1140px, calc(100% - 44px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.hero-metrics article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 22, 20, 0.7);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section,
.status-band {
  padding: 78px 0;
}

.section-inner {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
}

.status-band {
  padding: 24px 0;
  color: var(--white);
  background: var(--forest);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.status-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.split p,
.section-title p,
.demo-grid p {
  color: var(--muted);
  font-size: 16px;
}

.registry-panel,
.packet-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.registry-panel {
  padding: 14px;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

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

.ledger-row span {
  color: var(--muted);
}

.ledger-row strong {
  color: var(--green);
}

.ledger-row.live {
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  border-bottom: 0;
  margin-bottom: 4px;
}

.ledger-row.live span,
.ledger-row.live strong {
  color: var(--white);
}

.workspace-section,
.review-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

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

.module-grid article,
.feedback-grid article {
  min-height: 222px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 22, 20, 0.06);
}

.workspace-section .module-grid article {
  background: #fbfaf6;
}

.module-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--forest);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.module-grid p,
.feedback-grid p,
.feedback-grid span {
  color: var(--muted);
}

.lane-grid {
  margin-bottom: 18px;
}

.lane {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  color: var(--forest);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.lane.active,
.lane:hover,
.lane:focus-visible {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.lane-output {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(260px, 0.58fr);
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lane-output ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lane-output li {
  min-height: 38px;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}

.lane-output li::before {
  position: absolute;
  left: 0;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.lane-output li:last-child {
  border-bottom: 0;
}

.feedback-grid article {
  min-height: 246px;
}

.feedback-grid strong {
  display: block;
  margin: 14px 0 4px;
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.demo-section {
  background:
    linear-gradient(180deg, rgba(31, 111, 88, 0.08), rgba(31, 111, 88, 0)),
    var(--paper);
}

.packet-form {
  display: grid;
  gap: 12px;
}

.packet-form label {
  display: grid;
  gap: 7px;
}

.packet-form span {
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.packet-form input,
.packet-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

.form-button {
  justify-self: start;
  margin-top: 4px;
}

.packet-form .button.secondary {
  color: var(--green);
  background: var(--white);
  border-color: var(--green);
}

.packet-card {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.packet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.packet-top span {
  color: var(--muted);
  font-weight: 900;
}

.packet-top strong {
  color: var(--coral);
}

.packet-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.packet-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
}

.packet-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.packet-card dd {
  margin: 0;
}

.packet-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.packet-status span {
  color: var(--muted);
}

.packet-status strong {
  color: var(--green);
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  color: var(--white);
  background: var(--forest);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  h1 {
    font-size: 47px;
  }

  h2 {
    font-size: 31px;
  }

  .hero {
    min-height: 920px;
  }

  .hero-copy {
    padding-top: 164px;
    padding-bottom: 250px;
  }

  .hero-metrics,
  .status-grid,
  .split,
  .section-title,
  .lane-output,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    bottom: 20px;
  }

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

  .packet-card {
    position: static;
  }
}

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

  nav {
    gap: 14px;
    font-size: 12px;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy,
  .section-inner {
    width: min(360px, calc(100% - 28px));
    margin-left: 14px;
    margin-right: auto;
  }

  .hero-copy {
    padding-top: 154px;
    padding-bottom: 22px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 18, 16, 0.97) 0%, rgba(12, 18, 16, 0.9) 58%, rgba(12, 18, 16, 0.52) 100%),
      linear-gradient(0deg, rgba(12, 18, 16, 0.72) 0%, rgba(12, 18, 16, 0) 48%);
  }

  .hero > img {
    object-position: 62% center;
  }

  h1 {
    max-width: 100%;
    font-size: 35px;
  }

  h2 {
    font-size: 27px;
  }

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

  .hero-actions .button {
    width: min(100%, 250px);
  }

  .hero-metrics,
  .module-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(360px, calc(100% - 28px));
    margin: 6px auto 20px 14px;
    transform: none;
  }

  .section {
    padding: 56px 0;
  }

  .lane {
    flex: 1 1 calc(50% - 10px);
  }

  .packet-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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