:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #100d15;
  --panel: #19141f;
  --raised: #211a29;
  --line: #3b3046;
  --muted: #ada2b6;
  --text: #f7f2fb;
  --purple: #b483ff;
  --mint: #92e4b1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 75% -8%, rgba(141, 89, 214, .22), transparent 34rem), var(--bg); color: var(--text); }
a { color: inherit; }
button { font: inherit; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(16,13,21,.9);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 760; text-decoration: none; }
.brand strong { color: var(--purple); }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(180,131,255,.55); border-radius: 12px; background: linear-gradient(145deg,#342246,#1b1522); color: #d8baff; font-size: .74rem; font-weight: 900; }
.top-actions, .hero-actions, .assistant-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-grid; min-height: 42px; padding: 0 18px; place-items: center; border: 0; border-radius: 10px; color: var(--text); font-weight: 760; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--purple); color: #1a1021; }
.button.primary:hover, .button.primary:focus-visible { background: #c49fff; }
.button.secondary { border: 1px solid var(--line); background: #201925; }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--purple); }

main, footer { width: min(1180px, calc(100% - clamp(28px, 6vw, 88px))); margin: 0 auto; }
.hero { max-width: 970px; padding: clamp(70px, 10vw, 130px) 0 72px; }
.eyebrow, .step { margin: 0 0 12px; color: var(--purple); font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 7.6vw, 7rem); letter-spacing: -.075em; line-height: .88; }
.lede { max-width: 760px; margin: 30px 0 24px; color: #d0c7d5; font: clamp(1rem, 2vw, 1.18rem)/1.65 Georgia, "Times New Roman", serif; }
.text-link { color: #d9c4fa; font-size: .82rem; font-weight: 750; text-underline-offset: 5px; }
.copy-status { min-height: 1.3em; margin: 12px 0 0; color: var(--mint); font-size: .76rem; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
p code, li code { padding: .12em .34em; border: 1px solid rgba(180,131,255,.2); border-radius: 4px; background: rgba(180,131,255,.08); color: #e4d2ff; }

.principles { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; margin-bottom: 72px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.principles article { padding: 27px; }
.principles article + article { border-left: 1px solid var(--line); }
.principles span { color: var(--purple); font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.principles h2 { margin: 12px 0 8px; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

.guide-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: clamp(36px,6vw,84px); align-items: start; }
.contents { position: sticky; top: 104px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(25,20,31,.78); }
.contents strong { margin: 0 8px 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.contents a { padding: 7px 8px; border-radius: 6px; color: var(--muted); font-size: .76rem; text-decoration: none; }
.contents a:hover, .contents a:focus-visible { background: rgba(180,131,255,.08); color: var(--text); }
.guide section { padding: 0 0 78px; scroll-margin-top: 110px; }
.guide h2 { margin: 0 0 17px; font-size: clamp(1.8rem,4vw,3rem); letter-spacing: -.045em; line-height: 1; }
.guide p { color: #c8becd; line-height: 1.72; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 25px 0; }
.code-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0d0a10; }
.code-title { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #19131e; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
pre { margin: 0; padding: 18px; overflow-x: auto; color: #e8daf7; font-size: .77rem; line-height: 1.55; }
.callout { margin-top: 20px; padding: 17px 19px; border-left: 3px solid var(--purple); border-radius: 0 9px 9px 0; background: rgba(180,131,255,.08); color: #d8cedd; line-height: 1.55; }
.note { font-size: .84rem; }

.capabilities { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 24px 0; }
.capabilities article { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.capabilities strong { color: var(--purple); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.capabilities span { color: #d2c8d8; font-size: .85rem; }
.inline-button { width: fit-content; margin-top: 10px; }
.path-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 25px 0; }
.path-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.path-grid code, .path-grid strong { display: block; }
.path-grid code { overflow-wrap: anywhere; color: #dbc5fa; font-size: .8rem; }
.path-grid strong { margin-top: 20px; color: var(--mint); }
.path-grid p { margin-bottom: 0; font-size: .8rem; }

.steps { display: grid; gap: 10px; margin: 25px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.steps li > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(180,131,255,.4); border-radius: 50%; color: var(--purple); font-size: .75rem; font-weight: 800; }
.steps strong { display: block; margin: 2px 0 6px; }
.steps p { margin: 0; font-size: .82rem; }
.checklist { display: grid; gap: 10px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 16px 14px 43px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: #d2c8d8; font-size: .84rem; line-height: 1.5; }
.checklist li::before { position: absolute; left: 16px; color: var(--mint); content: "✓"; font-weight: 900; }
.assistant-card { padding: 34px !important; border: 1px solid rgba(180,131,255,.45); border-radius: 16px; background: radial-gradient(circle at 90% 0,rgba(180,131,255,.16),transparent 45%),var(--raised); }
.assistant-card h2 { max-width: 700px; }
.assistant-actions { margin-top: 24px; }

footer { display: flex; justify-content: space-between; margin-top: 28px; padding: 26px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
footer a { color: var(--text); text-underline-offset: 4px; }

@media (max-width: 800px) {
  .topbar { position: static; }
  .top-actions .secondary { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principles article + article { border-top: 1px solid var(--line); border-left: 0; }
  .guide-layout { display: block; }
  .contents { position: static; grid-template-columns: repeat(2,1fr); margin-bottom: 60px; }
  .contents strong { grid-column: 1/-1; }
  .split, .path-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main, footer { width: min(100% - 22px,1180px); }
  .brand > span:last-child, .top-actions .secondary { display: none; }
  .topbar { padding-inline: 12px; }
  .topbar .button { padding-inline: 12px; font-size: .72rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero-actions, .assistant-actions { align-items: stretch; flex-direction: column; }
  .capabilities { grid-template-columns: 1fr; }
  .assistant-card { padding: 23px !important; }
  footer { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
