:root {
  --bg: #f6f0e6;
  --bg-panel: rgba(255, 251, 245, 0.82);
  --bg-panel-strong: #fffaf2;
  --ink: #172033;
  --ink-soft: #48536b;
  --accent: #f06543;
  --accent-deep: #d9491f;
  --signal: #1d8a5a;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 101, 67, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(29, 138, 90, 0.14), transparent 22%),
    linear-gradient(180deg, #fff7eb 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffc24c);
  color: #fffdf8;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 12px 22px rgba(240, 101, 67, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow,
.eyebrow,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.contact-note a:hover {
  color: var(--accent-deep);
}

.hero,
.section-block,
.overview-grid,
.site-footer {
  animation: rise-fade 720ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px 0 18px;
}

.hero-copy,
.hero-console,
.overview-card,
.capability-card,
.boundary-card,
.contact-panel,
.contact-form {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.overview-card p,
.capability-card p,
.workflow-steps p,
.boundary-card li,
.contact-panel li,
.contact-note,
.form-status,
.gallery-summary,
.engine-summary,
.site-footer,
label span {
  color: var(--ink-soft);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.hero-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions-stack .hero-actions {
  margin-top: 0;
}

.hero-support-link {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-support-link a,
.inline-link,
.link-pill {
  color: var(--ink);
  text-decoration: none;
}

.hero-support-link a:hover,
.inline-link:hover,
.link-pill:hover {
  color: var(--accent-deep);
}

.button,
.copy-button,
.filter-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 700;
}

.button:hover,
.copy-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #f79635);
  color: #fffdf9;
  box-shadow: 0 14px 24px rgba(240, 101, 67, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  border: 1px solid rgba(23, 32, 51, 0.1);
}

.hero-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal), #7fd59e);
}

.hero-console {
  padding: 22px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(19, 28, 45, 0.96), rgba(23, 34, 54, 0.9));
  color: #f5f7ff;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-dot-red {
  background: #ff7c74;
}

.console-dot-gold {
  background: #ffcc59;
}

.console-dot-green {
  background: #2dcc72;
}

.console-title {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.64);
}

.snippet-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.snippet-header h2 {
  margin: 0;
  font-size: 1rem;
}

.copy-button {
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7ff;
}

.copy-button.is-success {
  background: rgba(45, 204, 114, 0.2);
  color: #9ff0be;
}

pre,
code {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  color: #f7f3dc;
  line-height: 1.55;
  font-size: 0.92rem;
}

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

.hero-metrics article {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.hero-metrics strong {
  display: block;
  font-size: 1.7rem;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: rgba(245, 247, 255, 0.7);
  font-size: 0.86rem;
}

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

.overview-card,
.capability-card,
.boundary-card,
.contact-panel,
.contact-form {
  padding: 26px;
}

.overview-card h2,
.section-heading h2,
.boundary-card h3,
.contact-panel h3 {
  margin: 10px 0 12px;
}

.section-block {
  margin-top: 22px;
  padding: 34px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 62ch;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.capability-grid,
.boundary-grid,
.contact-layout {
  display: grid;
  gap: 18px;
}

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

.get-grid .gallery-card {
  min-height: 100%;
}

.get-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.get-shell-group {
  margin-top: 16px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  border: 1px solid rgba(23, 32, 51, 0.1);
  font-weight: 700;
}

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

.capability-card h3,
.workflow-steps h3,
.engine-card h3 {
  margin: 0 0 10px;
}

.workflow-block {
  background: linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 47, 73, 0.9));
  color: #f5f7ff;
}

.workflow-block .eyebrow,
.workflow-block .section-heading p,
.workflow-steps p {
  color: rgba(245, 247, 255, 0.72);
}

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

.workflow-steps article {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd6ab;
  font-weight: 700;
}

.engine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.filter-button.is-active {
  background: var(--ink);
  color: #fffdfa;
  box-shadow: 0 10px 20px rgba(23, 32, 51, 0.16);
}

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

.gallery-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 240, 0.94));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.08);
}

.gallery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.gallery-card h3 {
  margin: 8px 0 10px;
}

.gallery-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 138, 90, 0.12);
  color: var(--signal);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.gallery-card pre {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #172033;
  color: #f7f3dc;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.gallery-card .copy-button {
  background: rgba(23, 32, 51, 0.08);
  color: var(--ink);
}

.gallery-card .copy-button.is-success {
  background: rgba(29, 138, 90, 0.14);
  color: var(--signal);
}

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

.plugin-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}

.plugin-copy {
  align-self: center;
}

.plugin-copy h3 {
  margin: 10px 0 12px;
}

.plugin-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.engine-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-panel-strong);
  border: 1px solid rgba(23, 32, 51, 0.08);
  min-height: 190px;
  animation: rise-fade 480ms ease both;
}

.engine-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(240, 101, 67, 0.12);
  color: var(--accent-deep);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boundary-grid,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-card-positive {
  background: linear-gradient(180deg, rgba(234, 252, 239, 0.9), rgba(255, 255, 255, 0.72));
}

.boundary-card-neutral {
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.9), rgba(255, 255, 255, 0.72));
}

.boundary-card ul,
.contact-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.contact-block {
  position: relative;
  overflow: hidden;
}

.contact-block::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 101, 67, 0.16), transparent 68%);
  pointer-events: none;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(240, 101, 67, 0.22);
  border-color: rgba(240, 101, 67, 0.35);
}

.form-status.is-success {
  color: var(--signal);
}

.form-status.is-error {
  color: var(--accent-deep);
}

.site-footer {
  margin-top: 22px;
  padding: 20px 4px 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doc-hero {
  margin-top: 18px;
  padding: 42px 34px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(37, 58, 91, 0.92));
  color: #fffdf9;
  box-shadow: var(--shadow);
}

.doc-hero h1 {
  max-width: 17ch;
  margin: 10px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.doc-hero p {
  max-width: 66ch;
  margin: 0;
  color: rgba(245, 247, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.65;
}

.doc-hero .eyebrow {
  color: #ffd6ab;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.doc-article,
.doc-toc {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.doc-article {
  display: grid;
  gap: 30px;
}

.doc-article section {
  scroll-margin-top: 24px;
}

.doc-article h2,
.doc-article h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}

.doc-article h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.doc-article h3 {
  font-size: 1.16rem;
}

.doc-article p,
.doc-article li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.doc-article ul,
.doc-article ol {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.doc-article pre {
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 18px;
  overflow: auto;
  background: #10192b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fffbe8;
  font-weight: 500;
  text-shadow: none;
}

.doc-article pre code {
  color: inherit;
}

.doc-toc {
  position: sticky;
  top: 16px;
}

.doc-toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.doc-toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent-deep);
}

.doc-callout {
  margin-top: 16px;
  padding: 18px;
  border-left: 4px solid var(--signal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(29, 138, 90, 0.09);
}

.doc-callout p {
  margin: 0;
}

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doc-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-panel-strong);
  border: 1px solid rgba(23, 32, 51, 0.09);
}

.doc-card h3 {
  margin-top: 0;
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .overview-grid,
  .get-grid,
  .capability-grid,
  .engine-grid,
  .plugin-strip,
  .workflow-steps,
  .boundary-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .site-header,
  .engine-toolbar,
  .gallery-toolbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-console,
  .section-block,
  .overview-card,
  .capability-card,
  .boundary-card,
  .contact-panel,
  .contact-form {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-console,
  .section-block,
  .overview-card,
  .capability-card,
  .boundary-card,
  .contact-panel,
  .contact-form,
  .workflow-steps article,
  .engine-card {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .overview-grid,
  .get-grid,
  .capability-grid,
  .gallery-grid,
  .engine-grid,
  .plugin-strip,
  .workflow-steps,
  .boundary-grid,
  .contact-layout,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .doc-card-grid {
    grid-template-columns: 1fr;
  }

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