:root {
  --orange: #ff6a18;
  --blue: #239df0;
  --navy: #0b1629;
  --ink: #142033;
  --muted: #536174;
  --line: #dbe3eb;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --orange-wash: #fff3ec;
  --blue-wash: #edf7fe;
  --content: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #0878c3;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #075f98; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(35, 157, 240, 0.42);
  outline-offset: 3px;
}

button { font: inherit; }

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.75rem, 7vw, 5.4rem);
  line-height: 0.98;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  width: auto;
  height: 44px;
  max-width: 175px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: #d6deea; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.header-nav a:hover { color: #ffffff; }
.header-nav .home-link { color: var(--navy); background: #ffffff; padding: 10px 15px; border-radius: 12px; }
.header-nav .home-link:hover { color: var(--navy); background: #eef3f8; }

.hero { padding: clamp(68px, 10vw, 118px) 0; background: var(--wash); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(52px, 8vw, 100px);
  align-items: center;
}

.hero-lead {
  max-width: 65ch;
  margin-top: 28px;
  color: #35445a;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.release-note {
  max-width: 65ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.connection-panel {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 24px 60px -34px rgba(11, 22, 41, 0.7);
  color: #ffffff;
}

.connection-brand { display: flex; align-items: center; gap: 18px; }
.connection-brand img { flex: 0 0 auto; object-fit: contain; }
.connection-brand h2 { color: #ffffff; font-size: 1.35rem; }
.service-status { margin-top: 5px; color: #b8c4d4; font-size: 0.84rem; }
.service-status.ready { color: #8ed5ff; }
.service-status.error { color: #ffc1a0; }

.connection-panel code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #17243a;
  color: #ffffff;
  font-size: 0.94rem;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.primary-action:hover { background: #f45b06; }
.primary-action:active { transform: translateY(1px); }
.copy-status { min-height: 1.4em; margin-top: 10px; color: #b8c4d4; font-size: 0.82rem; }

.section { padding: clamp(68px, 9vw, 104px) 0; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 96px);
}

.section-intro { max-width: 65ch; margin-top: 18px; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li {
  position: relative;
  min-height: 52px;
  padding: 0 0 30px 68px;
  counter-increment: steps;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 4px;
  left: 21px;
  width: 1px;
  background: var(--line);
}
.steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-wash);
  color: #075f98;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}
.steps strong { color: var(--navy); }
.steps code { color: #2e3f54; font-size: 0.92em; }
.docs-note { grid-column: 2; color: var(--muted); font-size: 0.9rem; }

.prompts-section { background: var(--navy); color: #dce5f0; }
.prompts-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 96px);
}
.prompts-section h2 { color: #ffffff; }
.prompts-section .section-intro { color: #b8c4d4; }
.prompt-list { display: grid; gap: 12px; }
.prompt {
  width: 100%;
  padding: 17px 19px;
  border: 1px solid #30415a;
  border-radius: 14px;
  background: #152238;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.prompt:hover { border-color: var(--blue); background: #1a2a43; }
.prompt-status { grid-column: 2; min-height: 1.4em; color: #8ed5ff; font-size: 0.86rem; }

.safety-section { background: var(--orange-wash); }
.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}
.safety-layout > div:first-child p { max-width: 68ch; margin-top: 20px; color: #3e4d61; }
.safety-notice { padding: 26px 28px; border-radius: 14px; background: #ffffff; box-shadow: 0 18px 48px -34px rgba(11, 22, 41, 0.55); }
.safety-notice p { margin: 12px 0 16px; color: #49586c; }
.safety-notice a { font-weight: 700; }

.site-footer { padding: 28px 0; background: var(--navy); color: #aeb8c6; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #ffffff; }

@media (max-width: 800px) {
  .header-nav a:not(.home-link) { display: none; }
  .hero-layout,
  .content-grid,
  .prompts-layout,
  .safety-layout { grid-template-columns: 1fr; }
  .docs-note,
  .prompt-status { grid-column: 1; }
  .hero-layout { gap: 42px; }
  .content-grid,
  .prompts-layout,
  .safety-layout { gap: 38px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, var(--content)); }
  .header-inner { min-height: 70px; }
  .brand img { height: 38px; max-width: 150px; }
  .header-nav .home-link { padding: 9px 12px; font-size: 0.82rem; }
  .connection-brand { align-items: flex-start; }
  .connection-brand img { width: 56px; height: 56px; }
  .steps li { padding-left: 58px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-action,
  .prompt { transition: none; }
}
