:root {
  color-scheme: dark;
  --ink: #101211;
  --ink-soft: #1b1f1d;
  --panel: #f6f5f0;
  --paper: #fbfaf7;
  --text: #f7f4ed;
  --muted: #b9c0b8;
  --dark-text: #17201b;
  --dark-muted: #59645c;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(16, 18, 17, 0.14);
  --green: #55d98b;
  --teal: #54c7b1;
  --amber: #f4b85f;
  --red: #e66d5a;
  --violet: #8e7dff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--dark-text);
  font-family:
    "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(16, 18, 17, 0.92), rgba(16, 18, 17, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  background: rgba(85, 217, 139, 0.14);
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(247, 244, 237, 0.82);
  font-size: 0.94rem;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

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

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

#security-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(16, 18, 17, 0), rgba(16, 18, 17, 0.82));
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 128px 0 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #307b58;
}

.eyebrow.light {
  color: var(--amber);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 5.4rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 720px;
  color: rgba(247, 244, 237, 0.84);
  font-size: 1.08rem;
  line-height: 1.95;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.button.primary {
  background: var(--green);
  color: #06120b;
}

.button.secondary {
  border: 1px solid rgba(247, 244, 237, 0.34);
  background: rgba(247, 244, 237, 0.08);
  color: var(--text);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 58px;
  width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(16, 18, 17, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(85, 217, 139, 0.55);
  animation: pulse 1.9s infinite;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.status-grid div {
  min-width: 0;
  padding: 18px;
}

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

.status-grid dt {
  margin-bottom: 8px;
  color: rgba(247, 244, 237, 0.54);
  font-size: 0.75rem;
}

.status-grid dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.section-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.intro-band {
  background: var(--paper);
  padding: 84px 0 48px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.intro-grid p:last-child,
.section-heading p,
.module-card p,
.flow-node p,
.timeline p {
  color: var(--dark-muted);
  line-height: 1.85;
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 0 96px;
}

.module-card {
  min-height: 236px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.module-index {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-weight: 900;
}

.architecture {
  background: #e8f0ec;
  padding: 92px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-node {
  min-height: 210px;
  border: 1px solid rgba(16, 18, 17, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.flow-node span {
  display: inline-flex;
  margin-bottom: 42px;
  color: #327a8d;
  font-weight: 900;
}

.flow-node.accent {
  background: #14211b;
  color: var(--text);
}

.flow-node.accent p {
  color: rgba(247, 244, 237, 0.72);
}

.flow-node.accent span {
  color: var(--amber);
}

.flow-arrow {
  position: relative;
  min-height: 210px;
}

.flow-arrow::before,
.flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.flow-arrow::before {
  left: 2px;
  right: 2px;
  height: 2px;
  background: rgba(16, 18, 17, 0.28);
}

.flow-arrow::after {
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(16, 18, 17, 0.36);
  border-right: 2px solid rgba(16, 18, 17, 0.36);
  transform: translateY(-4px) rotate(45deg);
}

.safety {
  background: var(--ink);
  color: var(--text);
  padding: 96px 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.safety .section-heading {
  margin-bottom: 0;
}

.safety .section-heading p {
  color: rgba(247, 244, 237, 0.72);
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #070907;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 244, 237, 0.58);
  font-size: 0.78rem;
}

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

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

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

.window-bar strong {
  margin-left: 8px;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #c9ffe1;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.75;
}

.requirements {
  background: var(--paper);
  padding: 92px 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 60px;
  align-items: start;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line-dark);
}

.spec-list strong {
  color: #276a50;
}

.spec-list span {
  color: var(--dark-muted);
  line-height: 1.65;
}

.roadmap {
  background: #171513;
  color: var(--text);
  padding: 92px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline li {
  min-height: 240px;
  padding: 24px;
  background: #171513;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--amber);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
}

.timeline p {
  color: rgba(247, 244, 237, 0.7);
}

.site-footer {
  background: #0d0e0d;
  color: rgba(247, 244, 237, 0.72);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.92rem;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(85, 217, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 217, 139, 0);
  }
}

@media (max-width: 1060px) {
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(620px, calc(100% - 64px));
    margin: -64px auto 44px;
  }

  .flow,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .flow-arrow {
    display: none;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-inner,
  .section-shell {
    width: min(100% - 36px, 1180px);
  }

  .hero-inner {
    padding-top: 112px;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .intro-grid,
  .modules,
  .safety-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .safety-grid,
  .requirements-grid {
    gap: 28px;
  }

  .modules {
    padding-bottom: 72px;
  }

  .status-grid,
  .flow,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .spec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-copy {
    font-size: 1rem;
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }

  pre {
    font-size: 0.82rem;
  }
}
