:root {
  color-scheme: light;
  --ink: #142033;
  --soft-ink: #3f4f63;
  --paper: #f7f3e8;
  --mist: #dce9e5;
  --deep: #071426;
  --teal: #0d6b65;
  --plum: #4c3358;
  --gold: #d7a84d;
  --line: rgba(20, 32, 51, 0.18);
  --light-line: rgba(255, 255, 255, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

section[id],
article[id] {
  scroll-margin-top: 88px;
}

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

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.site-nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.site-nav a[aria-current="page"],
.button.primary {
  background: var(--teal);
  border-color: #168d84;
  color: white;
}

.button.secondary {
  background: var(--plum);
  border-color: #745383;
  color: white;
}

.page-jump {
  min-height: 42px;
  display: inline-grid;
  align-content: center;
  padding: 8px 14px;
  border: 1px solid #c79337;
  border-left: 8px solid var(--gold);
  background: rgba(215, 168, 77, 0.18);
  color: var(--ink);
  text-decoration: none;
}

.page-jump span {
  color: #8d651b;
  font-size: 0.68rem;
  font-weight: 900;
}

.page-jump strong {
  font-size: 0.86rem;
  line-height: 1.05;
}

.hero {
  min-height: calc(92svh - 68px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 20, 38, 0.96) 0%, rgba(7, 20, 38, 0.82) 43%, rgba(7, 20, 38, 0.22) 100%),
    url("assets/twin_compass_mark.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero.compact {
  min-height: 640px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16vh;
  background: linear-gradient(0deg, var(--paper), rgba(247, 243, 232, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.25rem, 10vw, 8.5rem);
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: #f3f7f4;
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.release-meta {
  margin: 18px 0 0;
  color: #d9e6e2;
  font-size: 0.92rem;
  font-weight: 700;
}

.release-meta a {
  color: #f3d89b;
}

.section {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 64px);
}

.section.light {
  background: var(--paper);
}

.section.deep {
  background: var(--deep);
  color: white;
}

.section.teal {
  background: var(--teal);
  color: white;
}

.section.plum {
  background: var(--plum);
  color: white;
}

.section.gold {
  background: var(--gold);
  color: #171c23;
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-width: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.section h2 {
  max-width: 900px;
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.section p {
  max-width: 820px;
  color: var(--soft-ink);
  font-size: 1.06rem;
}

.section.deep p,
.section.teal p,
.section.plum p {
  color: #e9f2ef;
}

.section.gold p {
  color: #283143;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

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

.definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.definition-grid article {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.1);
}

.definition-grid h3 {
  font-size: 1rem;
}

.definition-grid p {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.panel {
  min-height: 100%;
  padding: 20px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.11);
}

.section.light .panel {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.panel h3 {
  color: inherit;
  font-size: 1.06rem;
}

.panel p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.code-block {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid var(--light-line);
  background: #050c17;
  color: #f4ecd7;
  font-size: 0.94rem;
  line-height: 1.55;
}

.section.light .code-block {
  border-color: var(--line);
}

.api-examples {
  margin-top: 28px;
  min-width: 0;
}

.api-examples > * + * {
  margin-top: 18px;
}

.code-sample {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.1);
}

.code-sample h3 {
  padding: 14px 18px 0;
  color: white;
  font-size: 1rem;
}

.code-sample .code-block {
  margin-top: 12px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.api-note {
  margin-top: 18px;
}

.mark-frame {
  border: 3px solid var(--gold);
  box-shadow: 12px 12px 0 rgba(20, 32, 51, 0.18);
}

.prompt-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  padding: 14px 16px;
  border-left: 8px solid var(--gold);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.prompt-list.rich li {
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbfa;
  font-weight: 650;
}

.prompt-list.rich strong {
  color: white;
}

.idea-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.idea-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.license-hero {
  min-height: 520px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.license-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.license-card + .license-card {
  margin-top: 18px;
}

.license-grid .license-card + .license-card {
  margin-top: 0;
}

.license-card h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.license-card p,
.license-card li {
  color: var(--soft-ink);
  font-size: 1.02rem;
}

.notice-block {
  overflow-x: auto;
  margin: 20px 0;
  padding: 18px;
  border-left: 8px solid var(--gold);
  background: var(--deep);
  color: #f4ecd7;
  white-space: pre-wrap;
}

.license-commercial {
  border-color: #168d84;
  background: var(--mist);
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  background: #050c17;
  color: #d9e6e2;
  border-top: 1px solid var(--light-line);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #f3d89b;
}

@media (max-width: 1280px) {
  .page-jump {
    display: none;
  }
}

@media (max-width: 960px) {
  .grid,
  .grid.five,
  .definition-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 148px;
  }

  section[id],
  article[id] {
    scroll-margin-top: 148px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-links,
  .site-nav {
    justify-content: flex-start;
  }

  .header-links,
  .site-nav {
    width: 100%;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.8rem;
  }

  .hero,
  .hero.compact {
    min-height: 700px;
    background-position: 58% center;
  }

  .split,
  .grid,
  .grid.five,
  .definition-grid,
  .category-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}
