:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6973;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: rgba(23, 32, 38, 0.12);
  --mint: #67c7a4;
  --coral: #e97868;
  --blue: #507fd4;
  --violet: #7d6fd0;
  --amber: #e9b44c;
  --shadow: 0 20px 60px rgba(23, 32, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 52px);
  color: #fff;
  background: rgba(23, 32, 38, 0.58);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.hero-actions,
.header-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: var(--mint);
  box-shadow: 7px 5px 0 var(--coral);
}

nav {
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.header-action,
.header-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  white-space: nowrap;
}

.header-actions {
  gap: 10px;
}

.header-action,
.header-link,
.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1b242b;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 26, 32, 0.88) 0%, rgba(18, 26, 32, 0.58) 42%, rgba(18, 26, 32, 0.2) 100%),
    linear-gradient(180deg, rgba(18, 26, 32, 0.36), rgba(18, 26, 32, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 56px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: min(64px, 8.4vw);
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link {
  color: #172026;
  background: #fff;
}

main > section:not(.hero) {
  padding: 88px clamp(18px, 6vw, 80px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.split-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(300px, 1.04fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: #f7f5ef;
}

.protocol-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.protocol-panel div {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
}

.protocol-panel div:nth-child(1) {
  background: #1f6f63;
}

.protocol-panel div:nth-child(2) {
  background: #2f496f;
}

.protocol-panel div:nth-child(3) {
  background: #8b4f40;
}

.protocol-panel strong {
  font-size: 21px;
}

.protocol-panel span {
  color: rgba(255, 255, 255, 0.76);
}

.safety-section {
  background: #ffffff;
}

.safety-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.safety-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.safety-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.safety-grid p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.start-section {
  background: #1d252b;
  color: #fff;
}

.start-section .section-heading {
  max-width: 760px;
}

.start-section p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.start-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.prompt-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.prompt-card p {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.prompt-card pre {
  margin: 0;
  white-space: pre-wrap;
}

.prompt-card code {
  color: rgba(255, 255, 255, 0.9);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 14px;
  line-height: 1.75;
}

.prompt-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
}

.prompt-dialog::backdrop {
  background: rgba(10, 16, 20, 0.64);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.icon-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  color: var(--ink);
  background: #eef2f0;
  font-size: 26px;
  line-height: 1;
}

.dialog-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.dialog-prompt {
  max-height: 280px;
  margin: 18px 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  background: #f6f8f7;
}

.dialog-prompt code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 14px;
  line-height: 1.75;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-button,
.repo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
}

.copy-button {
  color: #fff;
  background: #172026;
}

.repo-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 80px);
  color: var(--muted);
  background: #fff;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-action,
  .header-link {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(18, 26, 32, 0.88), rgba(18, 26, 32, 0.56));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 340px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .start-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 340px;
  }

  .start-guide {
    grid-template-columns: 1fr;
  }

  main > section:not(.hero) {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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