:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #526070;
  --line: #d9e0e8;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #007a7a;
  --accent-dark: #005d61;
  --warn: #c76a19;
  --code: #101722;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px clamp(18px, 4vw, 44px);
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav-cta {
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.hero {
  min-height: 66vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 66px) 36px;
  background: linear-gradient(120deg, #f7f8fb 0%, #eef5f2 52%, #f4f1ea 100%);
}

.hero-copy,
.section,
.cta {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-dark);
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hero-panel {
  min-width: 0;
}

.workstation-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(24, 33, 47, 0.18);
}

.notice {
  max-width: 1120px;
  margin: -18px auto 0;
  padding: 24px clamp(18px, 4vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
  border: 1px solid #cbdad8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(24, 33, 47, 0.09);
}

.notice ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice li {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--accent-dark);
  font-weight: 800;
}

.section {
  margin: 0 auto;
  padding: 66px clamp(18px, 5vw, 66px) 0;
}

.section-head {
  display: block;
  max-width: 1120px;
  margin: 0 auto 28px;
}

.section-head h2 {
  max-width: 860px;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.case-tab {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.case-tab.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.step-panel,
.terminal-panel,
.grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(24, 33, 47, 0.06);
}

.step-panel {
  padding: 18px;
}

.target {
  margin: 0 0 6px;
  color: var(--warn);
  font-weight: 800;
}

.case-summary p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.step-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.step-list .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e6f2f0;
  font-weight: 800;
}

.step-list li.is-active {
  border-color: var(--accent);
  background: #f2fbf9;
}

.step-list h4 {
  margin: 0;
  font-size: 16px;
}

.step-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.step-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.terminal-panel {
  overflow: hidden;
  background: var(--code);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  color: #c8d3df;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b111a;
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #e06363;
}

.terminal-top span:nth-child(2) {
  background: #d6a842;
}

.terminal-top span:nth-child(3) {
  background: #48a868;
}

.terminal-top strong {
  margin-left: 6px;
  font-size: 13px;
}

#terminal-output {
  min-height: 560px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #d7e2ea;
  font: 14px/1.58 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid article {
  padding: 18px;
}

.grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta {
  margin: 66px auto 0;
  padding: 44px clamp(18px, 5vw, 66px);
  color: #fff;
  background: var(--accent-dark);
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.cta p {
  max-width: 780px;
}

.cta .button.primary {
  color: var(--accent-dark);
  border-color: #fff;
  background: #fff;
}

.cta .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .notice,
  .demo-layout,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .nav {
    flex-wrap: wrap;
  }

  .notice {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 560px) {
  .notice ul {
    grid-template-columns: 1fr;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  #terminal-output {
    min-height: 430px;
    font-size: 13px;
  }
}
