:root {
  color-scheme: dark;
  --bg: #101011;
  --panel: #19191b;
  --ink: #f3f0ea;
  --muted: #b1ada9;
  --line: #373638;
  --red: #ff6054;
  --mono: "IBM Plex Mono", Menlo, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.65 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
a:hover,
nav a[aria-current] {
  color: var(--red);
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.wrap {
  max-width: 1520px;
  margin: auto;
  padding: 0 clamp(18px, 4.5vw, 76px);
}
.top,
footer {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  min-height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -2.8px;
  line-height: 1;
}
.brand span {
  color: var(--red);
}
.brand i {
  width: 29px;
  height: 26px;
  display: inline-block;
  margin-right: 11px;
  transform: skew(-19deg);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 6px,
    transparent 6px 10px
  );
}
nav {
  display: flex;
  gap: clamp(15px, 3vw, 48px);
  margin: auto;
}
nav a,
footer a {
  font-size: 14px;
}
.navbutton,
.button,
.small {
  border: 1px solid #545154;
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-weight: 590;
}
.navbutton {
  font-size: 14px;
  padding: 7px 14px;
}
.button {
  padding: 12px 19px;
}
.button:hover,
.small:hover,
.navbutton:hover {
  background: #302e2f;
  color: white;
}
.button.primary {
  background: var(--red);
  color: #180f10;
  border-color: var(--red);
}
.button.primary:hover {
  background: #ff867a;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
  align-items: stretch;
  padding: 52px 0 38px;
}
.hero-text {
  align-self: center;
  padding: 16px 0 20px;
}
.eyebrow,
.plot header,
.plot figcaption {
  font: 550 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow b {
  height: 8px;
  width: 8px;
  background: var(--red);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(50px, 6.3vw, 105px);
  letter-spacing: -0.075em;
  line-height: 1.13;
  margin: 25px 0 22px;
  font-weight: 670;
}
.hero h1 span {
  color: var(--red);
}
p {
  color: var(--muted);
  margin: 12px 0 20px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}
.textlink {
  font-size: 15px;
  border-bottom: 1px solid #635754;
  padding: 6px 0;
}
.plot {
  margin: 0;
  min-height: 375px;
  position: relative;
  isolation: isolate;
  background: #19191b;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.plot header,
.plot figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  color: #cbc6c0;
}
.plot header {
  top: 16px;
}
.plot figcaption {
  bottom: 16px;
}
.plot figcaption span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.plot code {
  font: inherit;
  color: #a9a3a0;
}
.plot canvas {
  position: absolute;
  inset: 38px 0;
  width: 100%;
  height: calc(100% - 76px);
}
.endpoint {
  display: flex;
  align-items: center;
  gap: 24px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.endpoint > span {
  font-size: 14px;
  color: var(--muted);
}
code,
pre {
  font-family: var(--mono);
}
.small {
  margin-left: auto;
  font-size: 13px;
  padding: 5px 12px;
}
.index {
  padding: 62px 0;
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 30px;
}
.sectionhead h2,
.learnband h2,
.mast h1 {
  letter-spacing: -0.055em;
  margin: 12px 0;
}
.sectionhead h2,
.learnband h2 {
  font-size: clamp(30px, 3vw, 52px);
}
.modelrow {
  display: grid;
  grid-template-columns: 32px 0.85fr 1.25fr 1.2fr 18px;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.modelrow strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}
.modelrow span:nth-child(3),
.modelrow code {
  color: var(--muted);
  font-size: 13px;
}
.symbol {
  font-size: 28px;
  text-align: center;
}
.claude {
  color: #f39775;
}
.gemini {
  color: #bbabfb;
}
.openai {
  color: #d6dfd8;
}
.learnband {
  padding: 32px clamp(20px, 3.5vw, 58px);
  background: #eae7df;
  color: #201e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.learnband p {
  color: #4c4845;
}
.learnband .button {
  color: #201e1e;
}
.learnband .button:hover {
  color: white;
}
footer {
  justify-content: space-between;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 22px 0;
}
footer div {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
footer .brand {
  font-size: 25px;
}
.mast {
  padding: 60px 0 28px;
}
.mast h1 {
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.2;
}
.mast p {
  max-width: 760px;
}
.split,
.lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.panel,
.lessons a {
  padding: clamp(19px, 3vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.panel h2,
.lessons h2,
.guide h2 {
  font-size: 25px;
  margin: 0 0 15px;
  letter-spacing: -0.04em;
}
.lessons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}
.lessons h2 {
  margin-top: 28px;
}
.lessons strong {
  color: var(--red);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #545256;
  border-radius: 3px;
  color: var(--ink);
  background: #111113;
  margin: 5px 0;
  font-size: 16px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.hint,
.notice,
.check {
  font-size: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  width: auto;
}
.narrow,
.guide {
  max-width: 880px;
}
.guide h2 {
  margin: 28px 0 8px;
}
.guide pre,
.result pre {
  padding: 20px;
  background: #19191a;
  border: 1px solid var(--line);
  overflow: auto;
  font-size: 14px;
}
.result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 180px;
}
.balance,
.notice {
  margin-top: 16px;
}
.balance form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.balance label {
  margin: 0;
  flex: 1;
}
.balance button {
  margin-bottom: 5px;
}
.notice {
  border-left: 2px solid var(--red);
  padding-left: 12px;
}
.guide dt {
  font: 16px var(--mono);
  color: var(--red);
}
.guide dd {
  margin: 4px 0 15px;
}
[hidden] {
  display: none !important;
}
#purchase code {
  display: block;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
#checkout {
  margin-top: 20px;
}
button:disabled {
  cursor: wait;
}
@media (max-width: 950px) {
  .index {
    display: block;
  }
  .sectionhead {
    margin-bottom: 15px;
  }
  .modelrow {
    grid-template-columns: 32px 1fr 1.1fr 1.1fr 18px;
  }
  .hero {
    gap: 20px;
  }
  .plot {
    min-height: 340px;
  }
}
@media (max-width: 700px) {
  .wrap {
    padding: 0 18px;
  }
  .top {
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 0 0;
    min-height: 0;
  }
  .top .navbutton {
    margin-left: auto;
  }
  .top nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 12px 0 0;
    gap: 0;
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }
  .hero h1 {
    margin: 16px 0;
    font-size: clamp(56px, 12vw, 80px);
  }
  .hero-text {
    padding: 0;
  }
  .actions {
    margin-top: 18px;
  }
  .plot {
    min-height: 265px;
  }
  .endpoint {
    flex-wrap: wrap;
    gap: 10px;
  }
  .endpoint code {
    font-size: 14px;
  }
  .small {
    padding: 5px 8px;
  }
  .index,
  .mast {
    padding: 34px 0 22px;
  }
  .modelrow {
    grid-template-columns: 28px 1fr auto 15px;
    gap: 9px;
  }
  .modelrow span:nth-child(3) {
    display: none;
  }
  .modelrow code {
    font-size: 12px;
  }
  .learnband,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .split,
  .lessons {
    grid-template-columns: 1fr;
  }
  .balance form {
    display: block;
  }
  .guide pre {
    padding: 12px;
  }
  .sectionhead h2 {
    margin-top: 5px;
  }
  footer {
    margin-top: 38px;
    gap: 14px;
  }
  .plot header,
  .plot figcaption {
    font-size: 12px;
  }
}

.hero-text > p {max-width:34em}
.sectionhead > p {max-width:29em;margin-right:1em}
.service-band {background:#eae7df;color:#201e1e;display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,6vw,100px);padding:clamp(24px,4vw,66px)}
.service-intro h2 {font-size:clamp(32px,3.5vw,60px);letter-spacing:-.06em;line-height:1.2;margin:0}
.service-intro p,.service-details dd {color:#504a46}
.service-intro .button {color:#201e1e}
.service-intro .button:hover {color:white}
.service-details {margin:0}
.service-details dt {font-weight:650;border-top:1px solid #aaa39b;padding-top:12px}
.service-details dd {margin:4px 0 16px}
.service-details dd:last-child {margin-bottom:0}
.lesson-index a {display:grid;grid-template-columns:6em 1fr auto;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}
.lesson-index a span:first-child {font-size:14px;color:var(--muted)}
.academy-index {padding-bottom:0}
@media(max-width:700px){
 .top nav a{white-space:nowrap;padding:8px 0;font-size:clamp(12px,3.5vw,14px)}
 .service-band{grid-template-columns:1fr}
 .lesson-index a{grid-template-columns:4.4em 1fr auto;gap:8px}
 .hero h1 {font-size:clamp(48px,11.5vw,78px)}
}
