:root {
  --bg: #f3eddc;
  --bg-2: #d7ebe6;
  --ink: #112221;
  --muted: #455e5a;
  --panel: rgba(255, 248, 236, 0.74);
  --panel-strong: rgba(20, 56, 53, 0.9);
  --line: rgba(17, 34, 33, 0.1);
  --accent: #f7b24f;
  --accent-soft: #ffe9bf;
  --green: #275752;
  --green-soft: #d2ebe4;
  --shadow: 0 28px 72px rgba(34, 52, 50, 0.14);
  --font-display: "Space Grotesk", "IBM Plex Sans JP", sans-serif;
  --font-body: "IBM Plex Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(73, 161, 149, 0.28), transparent 25%),
    radial-gradient(circle at 88% 78%, rgba(247, 178, 79, 0.34), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  pointer-events: none;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(248, 243, 231, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(31, 49, 48, 0.09);
}

.brand,
.site-nav a,
.button,
.panel-kicker,
.eyebrow,
.stack-label,
.note-index {
  letter-spacing: 0.02em;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.doc-links a:hover,
.site-footer a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: 76vh;
  padding: 26px 0 20px;
}

.hero-copy,
.hero-panel,
.panel,
.terminal-card,
.demo-notes,
.docs-strip,
.experiment-card {
  position: relative;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
}

.hero-text {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fdfbf6;
  box-shadow: 0 14px 28px rgba(17, 34, 33, 0.18);
}

.button.secondary {
  border: 1px solid rgba(17, 34, 33, 0.12);
  background: rgba(255, 252, 246, 0.72);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-chips span {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-chips span:nth-child(1) {
  background: rgba(247, 178, 79, 0.92);
  color: #54370f;
}

.hero-chips span:nth-child(2) {
  background: rgba(255, 241, 214, 0.95);
  color: #604824;
}

.hero-chips span:nth-child(3) {
  background: rgba(214, 237, 230, 0.95);
  color: #245550;
}

.hero-chips span:nth-child(4) {
  background: rgba(22, 60, 57, 0.94);
  color: #f0f4f0;
}

.hero-panel {
  min-height: 560px;
}

.stack-card {
  position: absolute;
  right: 0;
  width: min(100%, 430px);
  padding: 26px 28px 24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  background: var(--panel-strong);
  color: #f4f5ef;
  box-shadow: var(--shadow);
  animation: float-in 650ms ease both;
}

.stack-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.stack-card p {
  margin: 10px 0 0;
  color: rgba(240, 247, 245, 0.82);
  line-height: 1.5;
}

.stack-label {
  color: rgba(255, 224, 171, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stack-card-1 {
  top: 10px;
}

.stack-card-2 {
  top: 140px;
  right: 42px;
}

.stack-card-3 {
  top: 292px;
}

.stack-card-4 {
  top: 442px;
  right: 42px;
}

.stack-card::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -34px;
  width: 2px;
  height: 30px;
  background: rgba(247, 178, 79, 0.85);
}

.stack-card::before {
  content: "";
  position: absolute;
  right: 27px;
  bottom: -34px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid rgba(247, 178, 79, 0.92);
}

.stack-card-4::after,
.stack-card-4::before {
  display: none;
}

.panel-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.panel,
.terminal-card,
.demo-notes,
.docs-strip {
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before,
.terminal-card::before,
.demo-notes::before,
.docs-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 40%);
  pointer-events: none;
}

.panel.accent {
  background: rgba(31, 79, 74, 0.92);
  color: #f6f7f1;
}

.panel.accent .panel-kicker,
.panel.accent p {
  color: rgba(233, 240, 235, 0.82);
}

.panel h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.panel p,
.experiment-card p,
.demo-notes p,
.doc-links span {
  color: var(--muted);
  line-height: 1.65;
}

.panel.accent h2 {
  color: #fffdf5;
}

.list {
  margin: 22px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.experiments-band,
.demo-layout,
.docs-strip {
  margin-top: 80px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  max-width: 12ch;
}

.experiment-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.experiment-card {
  padding: 24px;
  border: 1px solid rgba(17, 34, 33, 0.08);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 18px 38px rgba(37, 59, 57, 0.1);
}

.experiment-card h3,
.note h3,
.doc-links strong {
  margin: 0;
  font-family: var(--font-display);
}

.experiment-card p {
  margin: 14px 0;
}

.experiment-card span {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(247, 178, 79, 0.8);
}

.terminal-header span:nth-child(2) {
  background: rgba(129, 200, 144, 0.8);
}

.terminal-header span:nth-child(3) {
  background: rgba(120, 180, 226, 0.8);
}

.terminal-card {
  background: rgba(17, 34, 33, 0.93);
  color: #ecf0eb;
}

.terminal-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.93rem;
  line-height: 1.75;
}

.copy-button {
  margin-top: 22px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 178, 79, 0.92);
  color: #34230d;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease;
}

.demo-notes {
  display: grid;
  gap: 18px;
}

.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.note-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(247, 178, 79, 0.18);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
}

.docs-strip {
  padding-top: 34px;
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.doc-links a {
  display: block;
  padding: 22px;
  border: 1px solid rgba(17, 34, 33, 0.08);
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.78);
}

.doc-links strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.site-footer {
  margin-top: 50px;
  padding: 18px 4px 8px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero,
  .panel-grid,
  .demo-grid,
  .doc-links,
  .experiment-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 0;
    display: grid;
    gap: 18px;
  }

  .stack-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
  }

  .stack-card::after,
  .stack-card::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .site-header,
  .site-footer {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
  }

  .hero h1 {
    max-width: none;
  }

  .panel,
  .terminal-card,
  .demo-notes,
  .docs-strip,
  .experiment-card {
    padding: 22px;
  }
}
