:root {
  --paper: #fffdf7;
  --ink: #141414;
  --grid: rgba(0, 0, 0, 0.08);
  --accent: #ffec9e;
  --muted: #5f5f5f;
  --pink: #f6bfd0;
  --nav-offset: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1.06rem);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.4;
  background-image:
    linear-gradient(var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 35px 35px;
}

::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-track {
  background: var(--accent);
  border-left: 2px solid #121212;
}

::-webkit-scrollbar-thumb {
  background: var(--pink);
  border: 2px solid #121212;
  border-radius: 12px;
}

.site-shell {
  width: 100%;
  margin: 0;
}

.top-shell {
  background: transparent;
  padding-inline: 34px;
  transition:
    transform 360ms ease,
    opacity 360ms ease;
  will-change: transform;
}

.top-shell.nav-hidden {
  transform: translateY(calc(-100% - 12px));
}

main section[id] {
  scroll-margin-top: var(--nav-offset);
}

.nav-wrap {
  padding-top: 22px;
  padding-bottom: 12px;
  position: relative;
}

.hero-nav {
  min-height: 92px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 3;
}

.brand-block {
  min-width: 220px;
  height: 92px;
  border-right: 1px solid #121212;
  display: grid;
  place-items: center start;
  padding-inline: 22px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: #121212;
  text-decoration: none;
  /* text-transform: lowercase; */
}

.nav-links {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.7rem, 0.2vw + 0.66rem, 0.82rem);
}

.nav-links a {
  color: #1f1f1f;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-right {
  padding-right: 14px;
}

.docs-btn {
  text-decoration: none;
  color: #101010;
  font-weight: 800;
  border: 2px solid #171717;
  border-radius: 999px;
  padding: 14px 24px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.8rem, 0.26vw + 0.72rem, 0.94rem);
}

.docs-btn::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #202020;
  background: var(--pink);
}

.bag-icon {
  font-size: 1.35rem;
}

.panel {
  min-height: 400px;
}

p,
li {
  font-size: clamp(0.95rem, 0.3vw + 0.86rem, 1.08rem);
}

.hero {
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roomy {
  min-height: 580px;
}

.hero-title,
.section-title {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.95;
  max-width: 1120px;
  margin-inline: auto;
}

.hero-ref-title span {
  display: block;
}

.hero-ref-title .highlight {
  display: inline-block;
  background: #ffd7e2;
  padding-inline: 12px;
  border-radius: 6px;
}

.sticker {
  position: absolute;
  border: 2px solid #262626;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  animation: floating-pill-morph 7.2s ease-in-out infinite;
}

.code-mark {
  left: 28px;
  top: 52px;
  font-size: 3.1rem;
  border: none;
  background: transparent;
  text-transform: none;
}

.fn-tag {
  right: 28px;
  top: 214px;
  font-size: 1.35rem;
  padding: 8px 18px;
  transform: rotate(8deg);
  background: #fff;
}

.upload-tag {
  left: 20px;
  bottom: 28px;
  font-size: 1rem;
  padding: 10px 16px;
  transform: rotate(-8deg);
}

.floating-pill {
  align-self: flex-start;
  margin-left: 90px;
  margin-top: 8px;
  position: relative;
  background: linear-gradient(135deg, #b8e9ef 0%, #99dbe2 48%, #86cfd8 100%);
  border: 1px solid #202020;
  border-radius: 61% 39% 58% 42% / 46% 60% 40% 54%;
  box-shadow:
    0 6px 0 #101010,
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  padding: 11px 32px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation:
    floating-pill-float 3.8s ease-in-out infinite,
    floating-pill-morph 7.2s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, border-radius;
}

.floating-pill::before,
.floating-pill::after {
  content: "";
  position: absolute;
  border: 1px solid #1f1f1f;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.floating-pill::before {
  width: 12px;
  height: 12px;
  left: 12px;
  top: -7px;
}

.floating-pill::after {
  width: 9px;
  height: 9px;
  right: 16px;
  bottom: -6px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #202020;
  border-radius: 999px;
  padding: 12px 24px;
  color: #161616;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
}

.cta-btn::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #202020;
  background: #ffd2df;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  text-align: center;
  font-size: 3rem;
}

.section-title-dark {
  color: #fff;
}

.ticker {
  overflow: hidden;
  border: 1px solid #111;
  background: #d8ffc4;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 16s linear infinite;
  font-weight: 600;
  font-size: 1.3rem;
  will-change: transform;
}

.ticker-segment {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 14px 18px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid #1d1d1d;
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #141414;
  transition:
    transform 240ms ease,
    opacity 240ms ease;
}

.top-shell.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.top-shell.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.top-shell.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  margin-top: 10px;
  border: 1px solid #1b1b1b;
  border-radius: 14px;
  background: #fffdf7;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.1);
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: #161616;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e7e1cf;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a:hover {
  background: #fff2bd;
}

@keyframes ticker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes floating-pill-float {
  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes floating-pill-morph {
  0%,
  100% {
    border-radius: 61% 39% 58% 42% / 46% 60% 40% 54%;
  }
  33% {
    border-radius: 44% 56% 39% 61% / 63% 44% 56% 37%;
  }
  66% {
    border-radius: 53% 47% 62% 38% / 36% 57% 43% 64%;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card,
.demo-grid > article,
.doc-card {
  min-height: 220px;
}

.features-showcase {
  min-height: 440px;
  border: 1px solid #1b1b1b;
  border-radius: 24px;
  background: #c4e5e9;
  padding: clamp(22px, 2.2vw, 56px);
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(18px, 2.2vw, 54px);
}

.features-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.features-list li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.14rem);
  font-weight: 700;
  line-height: 1.3;
}

.features-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #222;
  position: absolute;
  left: 0;
  top: 0.3em;
}

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

.steps li {
  padding: 14px;
  border: 1px dashed #333;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.steps li span {
  font-weight: 800;
  margin-right: 6px;
}

.engine-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px dashed #2a2a2a;
}

.engine-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 110px;
  padding: 20px 24px;
  border-bottom: 1px dashed #2a2a2a;
}

.engine-step-item:last-child {
  border-bottom: 0;
}

.engine-step-item:nth-child(6n + 1) {
  background: #f5c7d6;
}

.engine-step-item:nth-child(6n + 2) {
  background: #b9dfe6;
}

.engine-step-item:nth-child(6n + 3) {
  background: #d3e4b1;
}

.engine-step-item:nth-child(6n + 4) {
  background: #f0ccda;
}

.engine-step-item:nth-child(6n + 5) {
  background: #c4e5e9;
}

.engine-step-item:nth-child(6n + 6) {
  background: #e0efc2;
}

.engine-step-content {
  max-width: 1000px;
}

.engine-step-title {
  margin: 0;
  font-size: clamp(1.05rem, 1vw + 0.84rem, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.engine-step-text {
  margin: 8px 0 0;
  font-size: clamp(0.92rem, 0.22vw + 0.86rem, 1.08rem);
  line-height: 1.5;
}

pre,
.mirror {
  margin: 0;
  border: 1px solid #212121;
  border-radius: 10px;
  background: #f7f7f7;
  color: #191919;
  padding: 10px;
  overflow-x: auto;
}

pre code,
.mirror code,
.docs-table code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.play-input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #676767;
  border-radius: 10px;
  background: #1f1f1f;
  color: #fff;
  padding: 10px;
  font: inherit;
}

.play-input:focus {
  outline: 2px solid #ffe88f;
  outline-offset: 1px;
}

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

.play-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background: var(--pink);
}

.play-panel-head {
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141414;
}

.play-panel-head p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #ffeaa1;
  font-weight: 700;
}

.panel-dots {
  display: flex;
  gap: 8px;
}

.panel-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.panel-dots span:nth-child(1) {
  background: #ff7f72;
}

.panel-dots span:nth-child(2) {
  background: #ffd95e;
}

.panel-dots span:nth-child(3) {
  background: #63df8a;
}

.play-panel-body {
  padding: 14px;
  background: var(--pink);
}

.preview-panel-body {
  min-height: 280px;
  display: grid;
  place-items: center;
}

.play-editor {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #313131;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #070707;
  color: #f5f5f5;
  padding: 14px 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  letter-spacing: normal;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  tab-size: 2;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.12);
  caret-color: #ffe88f;
}

.play-editor::selection {
  background: rgba(144, 172, 255, 0.28);
}

.play-editor[data-cm-hidden="true"] {
  display: none;
}

.play-editor-shell {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #313131;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #070707;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.play-editor-shell:focus-within {
  outline: 2px solid #ffe88f;
  outline-offset: 1px;
}

.tok-key {
  color: #ffd58f;
}

.tok-fn {
  color: #8be9fd;
}

.tok-cmd {
  color: #f3a25c;
  font-weight: 700;
}

.play-editor:focus {
  outline: 2px solid #ffe88f;
  outline-offset: 1px;
}

.editor-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #c8c8c8;
}

.class-palette-wrap {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: #161616;
}

.class-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.class-chip {
  border: 1px solid #534f3e;
  background: #1f1f1f;
  color: #ffeeb4;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.class-chip:hover {
  transform: translateY(-1px);
  background: #252313;
}

.class-chip.is-active {
  background: #ffe88f;
  color: #191919;
  border-color: #ffe88f;
}

.playground-preview {
  width: 100%;
  max-width: 380px;
  min-height: 190px;
  display: grid;
  place-items: center;
}

.playground-preview > * {
  width: 100%;
}

.docs-main .panel {
  min-height: 420px;
}

.docs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  background: var(--pink);
  font-size: 0.86rem;
  font-weight: 700;
}

.docs-accordion {
  border: 1px dashed #2a2a2a;
}

.docs-acc-item {
  border-bottom: 1px dashed #2a2a2a;
}

.docs-acc-item:last-child {
  border-bottom: 0;
}

.docs-acc-item.tone-a {
  background: #f5c7d6;
}

.docs-acc-item.tone-b {
  background: #b9dfe6;
}

.docs-acc-item.tone-c {
  background: #cfe0ae;
}

.docs-acc-item.tone-d {
  background: #f0ccda;
}

.docs-acc-item.tone-e {
  background: #c4e5e9;
}

.docs-acc-item.tone-f {
  background: #d5e4ba;
}

.docs-acc-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: clamp(1.08rem, 1vw + 0.84rem, 2rem);
  font-weight: 800;
  color: #202020;
  cursor: pointer;
}

.docs-acc-symbol {
  width: 44px;
  height: 44px;
  border: 1px solid #1f1f1f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.docs-acc-symbol::before {
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
  color: #202020;
}

.docs-acc-item.is-open .docs-acc-symbol::before {
  content: "-";
}

.docs-acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 320ms ease,
    opacity 240ms ease,
    transform 240ms ease;
}

.docs-acc-item.is-open .docs-acc-panel {
  opacity: 1;
  transform: translateY(0);
}

.docs-acc-panel p {
  margin: 0;
  padding: 0 24px 24px;
  font-size: clamp(0.95rem, 0.2vw + 0.91rem, 1.2rem);
  line-height: 1.58;
  color: #222;
}

.install-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.install-card {
  background: #070707;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.install-card-head {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #1f1f1f;
  background: #0d0d0d;
}

.install-card-head p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.76rem;
  color: #8f8f8f;
  font-weight: 700;
}

.install-copy-btn {
  border: 1px solid #f3a25c;
  color: #f3a25c;
  background: transparent;
  border-radius: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.install-copy-btn:hover {
  background: rgba(243, 162, 92, 0.1);
}

.install-card pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #070707;
  color: #c8fff1;
  padding: 16px 14px;
  min-height: 210px;
}

.install-card code {
  font-size: 0.94rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.components-main .panel {
  min-height: unset;
}

.component-hero-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px dashed #2a2a2a;
}

.component-hero-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 16px 18px;
  border-bottom: 1px dashed #2a2a2a;
}

.component-hero-step-item:last-child {
  border-bottom: 0;
}

.component-hero-step-item:nth-child(3n + 1) {
  background: #f5c7d6;
}

.component-hero-step-item:nth-child(3n + 2) {
  background: #b9dfe6;
}

.component-hero-step-item:nth-child(3n + 3) {
  background: #cfe0ae;
}

.component-hero-step-content {
  max-width: 1000px;
}

.component-hero-step-title {
  margin: 0;
  font-size: clamp(1.05rem, 0.7vw + 0.9rem, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
}

.component-hero-step-text {
  margin: 6px 0 0;
  font-size: clamp(0.88rem, 0.24vw + 0.84rem, 1rem);
  line-height: 1.45;
}

.component-lab-header p {
  font-size: 1.3rem;
  color: var(--ink);
  padding: 1.5rem;
  background-color: #b9dfe6;
  border: 1px dashed #1b1b1b;
}

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

.component-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

.component-preview {
  width: 100%;
}

.component-preview > * {
  width: 100%;
}

.component-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.component-action-btn {
  border: 1px solid #242424;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn {
  background: #ffe88f;
  color: #171717;
}

.reset-btn {
  background: #fff;
  color: #171717;
}

.component-status {
  font-size: 0.86rem;
  color: #63df8a;
  min-height: 1.1em;
}

.component-status.error {
  color: #ff7f72;
}

.site-footer {
  margin-top: 30px;
  padding: 34px;
  background: var(--pink);
  border-top: 3px solid var(--ink);
}

.footer-shell {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #101010;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 0.8vw + 1.1rem, 1.9rem);
  font-weight: 900;
}


.footer-logo {
  width: 35px;
}

.footer-about p {
  max-width: 580px;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 0.2vw + 0.95rem, 1.13rem);
}

.footer-about a {
  color: var(--ink);
}

.footer-title {
  margin: 4px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col a {
  color: #151515;
  text-decoration: none;
  font-size: clamp(1rem, 0.2vw + 0.95rem, 1.12rem);
}

.footer-col a:hover {
  text-decoration: var(--ink) underline 1.3px;
}

.footer-meta {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.docs-note {
  border: 1px dashed #3e3e3e;
  background: #c4ebf2;
  padding: 12px 14px;
}

.docs-note p {
  font-weight: 600;
  font-size: 1.3rem;
}
.docs-note p code {
  padding: 5px 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid #171717;
  /* border-radius: 12px; */
  background: #fff;
}

.table-wrap-soft {
  background: #f6f3e7;
  border-color: #2a2a2a;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid #d9d9d9;
  border-right: 1px solid #e5e5e5;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: none;
}

.docs-table thead th {
  background: #fff1ba;
  font-size: 0.92rem;
}

.docs-table-soft th,
.docs-table-soft td {
  border-color: #1d1d1d;
}

.docs-table-soft thead th {
  background: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-table-soft tbody td {
  font-size: 0.93rem;
  font-weight: 600;
}

.docs-table-soft tbody tr.tone-a td {
  background: #f5c7d6;
}

.docs-table-soft tbody tr.tone-b td {
  background: #b9dfe6;
}

.docs-table-soft tbody tr.tone-c td {
  background: #cfe0ae;
}

.docs-table-soft tbody tr.tone-d td {
  background: #f0ccda;
}

.docs-table-soft tbody tr.tone-e td {
  background: #c4e5e9;
}

.docs-table-soft tbody tr.tone-f td {
  background: #d5e4ba;
}

@media (max-width: 1180px) {
  .brand-block {
    min-width: 176px;
    font-size: 3.5rem;
  }

  .docs-btn {
    padding: 10px 16px;
  }

  .nav-links {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .demo-grid,
  .doc-grid,
  .component-grid {
    grid-template-columns: 1fr !important;
  }

  .features-showcase {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .docs-flow-grid {
    grid-template-columns: 1fr !important;
  }

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

  .docs-acc-trigger {
    padding: 18px 12px;
    font-size: clamp(1rem, 0.5vw + 0.92rem, 1.35rem);
  }

  .docs-acc-symbol {
    width: 34px;
    height: 34px;
  }

  .docs-acc-symbol::before {
    font-size: 1.3rem;
  }

  .docs-acc-panel p {
    padding: 0 12px 16px;
  }

  .nav-links,
  .nav-right,
  .bag-icon {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    margin-right: 14px;
  }

  .top-shell.menu-open .mobile-menu {
    display: block;
  }

  .hero-title {
    line-height: 1.02;
  }

  .floating-pill {
    margin-left: 0;
    font-size: 1.15rem;
    padding: 8px 16px;
  }

  .cta-btn {
    font-size: 1.3rem;
    padding: 9px 16px;
  }

  .brand-block {
    min-width: 148px;
    font-size: clamp(2.2rem, 8vw, 3.1rem);
    height: 80px;
    padding-inline: 16px;
  }

  .code-mark,
  .fn-tag,
  .upload-tag {
    display: none;
  }

  .panel,
  .hero,
  .roomy,
  .docs-main .panel {
    min-height: unset;
  }

  .site-shell {
    padding-inline: 12px;
  }

  .top-shell {
    padding-inline: 14px;
  }

  .nav-wrap {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .hero-nav {
    min-height: 80px;
  }

  .ticker-track {
    font-size: clamp(0.92rem, 1.2vw + 0.6rem, 1.06rem);
  }

  .playground-lab {
    grid-template-columns: 1fr;
  }

  .component-actions {
    flex-wrap: wrap;
  }

  .component-hero-step-item {
    min-height: 86px;
    padding: 14px 12px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .engine-step-item {
    padding: 16px 14px;
    min-height: 92px;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .section-title {
    font-size: clamp(1.35rem, 6.8vw, 1.9rem);
  }

  .cta-btn {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .panel {
    padding: 16px !important;
  }

  .playground-section {
    padding: 16px !important;
  }

  .class-palette-wrap {
    padding: 12px;
  }

  .class-chip {
    font-size: 0.78rem;
    padding: 7px 11px;
  }

  pre code,
  .mirror code,
  .docs-table code {
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .brand-block {
    min-width: 0;
    border-right: 0;
    width: auto;
  }

  .floating-pill {
    font-size: 0.95rem;
    padding: 7px 12px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    margin-right: 8px;
  }

  .mobile-menu a {
    font-size: 0.86rem;
    padding: 12px 14px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}
