/* ============================================================
   TDK — shared dark design system for subpages (Geist)
   Scoped under .aw wrapper; body tinted only when .aw present
   ============================================================ */

body:has(.aw) {
  background: #0a0a0e;
  overflow-x: hidden;
}

body:has(.aw) .page-content {
  padding-top: 0;
}

body:has(.aw) .site-footer {
  background: #0a0a0e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---------------- No-lock-in page primitives ---------------- */
.aw-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0e;
}

.aw-hero-bg,
.aw-hero-wash,
.aw-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aw-hero-bg {
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.48);
  opacity: 0.45;
  transform: scale(1.04);
}

.aw-hero-wash {
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10, 10, 14, 0.2), #0a0a0e 88%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.25), #0a0a0e 95%);
}

.aw-hero-grain {
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.aw-hero-inner {
  position: relative;
  z-index: 1;
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.aw-hero h1 {
  max-width: 72rem;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.aw-hero h1 .aw-accent {
  background: linear-gradient(100deg, #b79aff 0%, #7c4dff 60%, #4dd0ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aw-hero-sub {
  color: rgba(236, 236, 241, 0.83);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
}

.aw-hero-sub strong {
  color: #fff;
  font-weight: 600;
}

.aw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.aw-marquee-section {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d13;
  padding: 1.1rem 0;
}

.aw-marquee {
  display: flex;
  width: max-content;
  animation: aw-marquee-loop 34s linear infinite;
}

.aw-marquee-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.aw-marquee-item {
  color: rgba(236, 236, 241, 0.77);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.aw-marquee-dot {
  margin: 0 1.5rem;
  color: #9b77ff;
}

@keyframes aw-marquee-loop {
  to {
    transform: translateX(-50%);
  }
}

.aw-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(13rem, auto);
  grid-auto-flow: dense;
  gap: 1rem;
}

.aw-bento .aw-card-a {
  grid-column: span 2;
  grid-row: span 2;
}

.aw-bento .aw-card-b,
.aw-bento .aw-card-c {
  grid-column: span 2;
}

.aw-bento .aw-card-e {
  grid-column: 1 / -1;
}

@media (max-width: 1000px) {
  .aw-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-bento .aw-card-a,
  .aw-bento .aw-card-b,
  .aw-bento .aw-card-c,
  .aw-bento .aw-card-e {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .aw-hero {
    min-height: 0;
    padding-top: 9.5rem !important;
    padding-bottom: 5rem !important;
  }

  .aw-hero-inner {
    padding-inline: 1.25rem;
  }

  .aw-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.25rem);
    text-wrap: pretty;
  }

  .aw-hero-ctas,
  .aw-hero-ctas .aw-btn {
    width: 100%;
  }

  .aw-bento {
    grid-template-columns: 1fr;
  }

  .aw-bento .aw-card-a,
  .aw-bento .aw-card-b,
  .aw-bento .aw-card-c,
  .aw-bento .aw-card-e {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-marquee {
    animation: none;
  }
}

.aw {
  font-family: 'Satoshi', 'Geist', 'Space Grotesk', sans-serif;
  color: #ececf1;
  background: #0a0a0e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clip, unlike hidden, doesn't make .aw a scroll container, which would
     stop position: sticky children from sticking to the viewport */
  overflow-x: clip;
}

.aw * {
  box-sizing: border-box;
}

.aw-section {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) 1.5rem;
  scroll-margin-top: 5.5rem;
}

.aw-wrap {
  width: min(80rem, 100%);
  margin: 0 auto;
}

.aw-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------------- Subpage hero (Editorial Split) ---------------- */
.aw-subhero {
  position: relative;
  padding: 12rem 1.5rem clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 20% 20%, rgba(124, 77, 255, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 90%, rgba(77, 208, 255, 0.07) 0%, transparent 70%),
    #0a0a0e;
}

.aw-subhero-grid {
  width: min(80rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.aw-subhero h1 {
  max-width: 72rem;
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
}

.aw-subhero h1 .aw-accent {
  background: linear-gradient(100deg, #b79aff 0%, #7c4dff 60%, #4dd0ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aw-subhero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(236, 236, 241, 0.8);
  font-weight: 300;
  margin: 0;
}

.aw-subhero-sub strong {
  color: #fff;
  font-weight: 600;
}

/* ---------------- Buttons ---------------- */
.aw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.aw-btn-solid {
  background: #fff;
  color: #0a0a0e;
}

.aw-btn-solid:hover {
  color: #0a0a0e;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.16);
}

.aw-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aw-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ---------------- Section headers ---------------- */
.aw-head {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  scroll-margin-top: 6rem;
}

.aw-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 48rem;
}

.aw-head p {
  font-size: 1.0625rem;
  color: rgba(236, 236, 241, 0.7);
  max-width: 42rem;
  margin: 0;
  font-weight: 300;
}

/* ---------------- Cards & rows ---------------- */
.aw-card {
  position: relative;
  border-radius: 1.25rem;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease;
}

.aw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 154, 255, 0.35);
}

.aw-card h3,
.aw-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 0.5rem;
}

.aw-card p {
  color: rgba(236, 236, 241, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Feature index number */
.aw-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(183, 154, 255, 0.65);
  display: block;
  margin-bottom: 0.875rem;
}

/* Category band on features page */
.aw-cat {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.aw-cat-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  margin-bottom: 2.75rem;
}

.aw-cat-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.aw-cat-head p {
  color: rgba(236, 236, 241, 0.7);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.aw-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.aw-feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Varied spans: asymmetric rhythm, mathematically gapless with dense flow.
   7 items: rows [2+1] [1+2] [1+1+1]. 9 items: dense backfill closes every row. */
.aw-grid-varied {
  grid-auto-flow: dense;
}

.aw-grid-varied> :nth-child(6n+1):not(:last-child) {
  grid-column: span 2;
}

.aw-grid-varied> :nth-child(6n+4) {
  grid-column: span 2;
}

/* ---------------- Blocked-devs story (pinned split) ---------------- */
.aw-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  /* breathing room so the pinned title never collides with the next heading */
}

.aw-story-left {
  position: sticky;
  top: 7.5rem;
}

.aw-story-left h2 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.5rem;
}

.aw-story-left p {
  color: rgba(236, 236, 241, 0.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 26rem;
}

.aw-story-step {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0 0 3rem 2rem;
  position: relative;
}

.aw-story-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #121218;
  border: 2px solid rgba(183, 154, 255, 0.6);
}

.aw-story-step.aw-story-win {
  border-left-color: rgba(110, 231, 183, 0.4);
}

.aw-story-step.aw-story-win::before {
  background: #6ee7b7;
  border-color: #6ee7b7;
}

.aw-story-step h4 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
}

.aw-story-step p {
  color: rgba(236, 236, 241, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 34rem;
}

.aw-story-step .aw-story-cost {
  display: inline-block;
  margin-top: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: #f0abfc;
}

.aw-story-step.aw-story-win .aw-story-cost {
  color: #6ee7b7;
}

/* ---------------- Code blocks ---------------- */
.aw-codeblock {
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 2rem;
}

.aw-codeblock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-codeblock-head i {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.aw-codeblock-head i:nth-child(1) {
  background: #ff5f56;
}

.aw-codeblock-head i:nth-child(2) {
  background: #ffbd2e;
}

.aw-codeblock-head i:nth-child(3) {
  background: #27c93f;
}

.aw-codeblock-head span {
  min-width: 0;
  margin-left: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(236, 236, 241, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-codeblock pre {
  margin: 0;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(236, 236, 241, 0.85);
  overflow-x: auto;
  background: transparent;
}

.aw-codeblock .k {
  color: #7ee787;
}

.aw-codeblock .s {
  color: #a5d6ff;
}

.aw-codeblock .n {
  color: #79c0ff;
}

.aw-codeblock .c {
  color: #6a737d;
}

.aw-codeblock .ok { color: #6ee7b7; }
.aw-codeblock .warn { color: #fcd34d; }
.aw-codeblock .err { color: #fb7185; }
.aw-codeblock .hot { color: #4dd0ff; }
.aw-codeblock .dim { color: rgba(236, 236, 241, 0.55); }

/* ---------- Install method tabs (dark) ---------- */
.aw-install-tabs {
  margin: 0 0 2rem;
}

.aw-install-tabs-bar {
  display: flex;
  gap: 0;
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  padding: 0;
}

.aw-install-tab {
  all: unset;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.7rem 1.25rem;
  color: rgba(236, 236, 241, 0.5);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.aw-install-tab:hover {
  color: rgba(236, 236, 241, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.aw-install-tab--active {
  color: #4dd0ff;
  border-bottom-color: #4dd0ff;
  background: rgba(77, 208, 255, 0.06);
}

.aw-install-tabs .aw-codeblock {
  margin: 0;
}

/* ---------- Quickstart simplification ---------- */
.aw-quickstart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: end;
  margin: 0 0 3rem;
  border: 1px solid rgba(77, 208, 255, 0.18);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(77, 208, 255, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #101018;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.aw-quickstart-kicker {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #4dd0ff;
}

.aw-quickstart-hero h2 {
  margin: 0 0 0.875rem;
  max-width: 34rem;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.02;
  text-wrap: balance;
}

.aw-quickstart-hero p {
  max-width: 38rem;
  margin: 0;
  color: rgba(236, 236, 241, 0.74);
}

.aw-quickstart-flow {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-quickstart-flow li {
  margin: 0;
}

.aw-quickstart-flow a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.75rem 0.875rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.aw-quickstart-flow a:hover {
  background: rgba(77, 208, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.aw-quickstart-flow a:focus-visible {
  outline: 2px solid #4dd0ff;
  outline-offset: 3px;
}

.aw-quickstart-flow span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(77, 208, 255, 0.13);
  color: #9eeaff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.aw-codeblock--primary {
  border-color: rgba(77, 208, 255, 0.26);
  box-shadow: 0 28px 80px rgba(77, 208, 255, 0.08);
}

.aw-setup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  margin: 0 0 3rem;
}

.aw-setup-step {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.aw-setup-step span {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(77, 208, 255, 0.8);
}

.aw-docs-body .aw-setup-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.aw-docs-body .aw-setup-step p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: rgba(236, 236, 241, 0.7);
}

.aw-check-list {
  display: grid;
  gap: 0.625rem;
  padding-left: 0 !important;
  list-style: none;
}

.aw-check-list li {
  position: relative;
  margin: 0;
  border-left: 2px solid rgba(110, 231, 183, 0.65);
  background: rgba(110, 231, 183, 0.045);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1rem;
}

.aw-license-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(183, 154, 255, 0.18);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(183, 154, 255, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.03);
  padding: 1rem;
}

.aw-docs-body .aw-license-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.aw-docs-body .aw-license-panel p {
  margin: 0;
  color: rgba(236, 236, 241, 0.72);
}

.aw-license-panel .aw-codeblock {
  margin: 0;
}

.aw-docs-details {
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.aw-docs-details summary {
  cursor: pointer;
  padding: 1rem 1.125rem;
  color: #fff;
  font-weight: 600;
}

.aw-docs-details summary:hover {
  background: rgba(255, 255, 255, 0.035);
}

.aw-docs-details p {
  padding: 0 1.125rem;
}

.aw-docs-details .aw-codeblock {
  margin: 1rem 1.125rem;
}

/* ---------- Compare matrix (dark) ---------- */
.aw-matrix {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  overflow-x: auto;
}

.aw-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 46rem;
}

.aw-matrix th,
.aw-matrix td {
  padding: 1.125rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
}

.aw-matrix thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(236, 236, 241, 0.7);
  background: #0d0d13;
}

.aw-matrix thead th.aw-tdk-col {
  color: #b79aff;
  background: rgba(124, 77, 255, 0.1);
}

.aw-matrix td.aw-tdk-col {
  background: rgba(124, 77, 255, 0.06);
  color: #fff;
  font-weight: 600;
}

.aw-matrix td {
  color: rgba(236, 236, 241, 0.8);
}

.aw-matrix td:first-child {
  color: #fff;
  font-weight: 600;
}

.aw-matrix tbody tr:last-child td {
  border-bottom: none;
}

.aw-matrix tbody tr {
  transition: background 0.25s ease;
}

.aw-matrix tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.aw-matrix tbody tr:hover td.aw-tdk-col {
  background: rgba(124, 77, 255, 0.1);
}

.aw-yes {
  color: #6ee7b7;
}

.aw-no {
  color: #f0abfc;
}

.aw-warn {
  color: #fcd34d;
}

/* ---------------- Docs layout ---------------- */
.aw-docs {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.aw-docs-side {
  position: sticky;
  top: 7.5rem;
}

.aw-docs-side nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aw-docs-side a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(236, 236, 241, 0.7);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.aw-docs-side a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.aw-docs-side a.is-active {
  color: #b79aff;
  background: rgba(124, 77, 255, 0.12);
  font-weight: 600;
}

/* Auto-generated "On this page" sub-nav, injected by aw-docs-toc.js */
.aw-docs-toc {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  max-height: calc(100vh - 16rem);
  overflow-y: auto;
}

.aw-docs-toc-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 236, 241, 0.5);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.aw-docs-toc a {
  display: block;
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(236, 236, 241, 0.6);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.aw-docs-toc a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.aw-docs-toc a.is-active {
  color: #b79aff;
  border-left-color: #7c4dff;
}

@media (max-width: 1000px) {
  .aw-docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .aw-quickstart-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aw-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-license-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .aw-quickstart-hero {
    margin-bottom: 2rem;
  }

  .aw-quickstart-flow a {
    padding: 0.7rem 0.75rem;
  }

  .aw-setup-grid {
    grid-template-columns: 1fr;
  }

  .aw-install-tabs-bar {
    overflow-x: auto;
  }

  .aw-docs-details .aw-codeblock {
    margin-inline: 0.75rem;
  }
}

/* Animated terminal demo (shared by homepage + docs pages) */
.aw-terminal {
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.aw-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.aw-terminal-bar i:nth-child(1) {
  background: linear-gradient(135deg, #ff5f56, #ff3b30);
  box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}
.aw-terminal-bar i:nth-child(2) {
  background: linear-gradient(135deg, #ffbd2e, #ffcc00);
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.4);
}
.aw-terminal-bar i:nth-child(3) {
  background: linear-gradient(135deg, #27c93f, #34c759);
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}

.aw-terminal-bar span {
  margin-left: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(236, 236, 241, 0.6);
}

.aw-terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.9;
  min-height: 18rem;
  color: rgba(236, 236, 241, 0.85);
}

.aw-tline {
  display: block;
  white-space: pre-wrap;
}

.aw-tline .p { color: #b79aff; }
.aw-tline .ok { color: #6ee7b7; }
.aw-tline .warn { color: #fcd34d; }
.aw-tline .err { color: #fb7185; }
.aw-tline .dim { color: rgba(236, 236, 241, 0.55); }
.aw-tline .hot { color: #4dd0ff; }

.aw-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: #b79aff;
  vertical-align: text-bottom;
  animation: aw-blink 0.9s steps(1) infinite;
}

@keyframes aw-blink {
  50% { opacity: 0; }
}

.aw-docs-body h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.aw-docs-body {
  min-width: 0;
}

.aw-docs-body>.aw-lead {
  font-size: 1.1875rem;
  color: rgba(236, 236, 241, 0.75);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 3rem;
  max-width: 44rem;
}

.aw-docs-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 3.5rem 0 1.25rem;
}

.aw-docs-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2.5rem 0 0.875rem;
}

.aw-docs-body p,
.aw-docs-body li {
  color: rgba(236, 236, 241, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.aw-docs-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.aw-docs-body li {
  margin-bottom: 0.5rem;
}

.aw-docs-body a {
  color: #b79aff;
}

.aw-docs-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: rgba(124, 77, 255, 0.12);
  color: #d6c6ff;
  padding: 0.15em 0.45em;
  border-radius: 0.375rem;
}

.aw-docs-body .aw-codeblock code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.aw-callout {
  border: 1px solid rgba(110, 231, 183, 0.3);
  background: rgba(110, 231, 183, 0.06);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.aw-callout h4 {
  color: #6ee7b7;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.aw-callout p {
  margin: 0;
}

.aw-doc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.aw-doc-cards .aw-card {
  text-decoration: none;
  display: block;
}

.aw-doc-cards .aw-card span {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b79aff;
}

/* ---------------- Blog article ---------------- */
.aw-blog .aw-subhero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.aw-blog-kicker {
  align-self: end;
  border: 1px solid rgba(183, 154, 255, 0.18);
  border-radius: 1.5rem;
  background:
    linear-gradient(140deg, rgba(124, 77, 255, 0.14), rgba(18, 18, 24, 0.92) 42%),
    #121218;
  padding: 1.5rem;
}

.aw-blog-kicker p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(236, 236, 241, 0.72);
}

.aw-blog-kicker strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: 'Satoshi', 'Geist', 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.015em;
}

.aw-article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.aw-article-card {
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18rem),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.aw-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.aw-article-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(236, 236, 241, 0.73);
}

.aw-article-card h2 {
  max-width: 48rem;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
}

.aw-article-intro {
  max-width: 45rem;
  margin: 0 0 3rem;
  color: rgba(236, 236, 241, 0.83);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.aw-article-body {
  max-width: 46rem;
}

.aw-article-body section {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-article-body section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.aw-article-body h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}

.aw-article-body p {
  margin: 0 0 1.25rem;
  color: rgba(236, 236, 241, 0.81);
  font-size: 1.02rem;
  line-height: 1.82;
}

.aw-article-body p:last-child {
  margin-bottom: 0;
}

.aw-article-body strong {
  color: #fff;
  font-weight: 600;
}

.aw-article-note {
  margin: 2.25rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(183, 154, 255, 0.25);
  background: rgba(124, 77, 255, 0.08);
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(236, 236, 241, 0.75);
  font-size: 0.875rem;
  line-height: 1.75;
}

.aw-blog-side {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
}

.aw-blog-side-card {
  border-radius: 1.25rem;
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
}

.aw-blog-side-card h4 {
  margin: 0 0 0.875rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.aw-blog-side-card p,
.aw-blog-side-card li {
  color: rgba(236, 236, 241, 0.73);
  font-size: 0.9rem;
  line-height: 1.65;
}

.aw-blog-side-card p,
.aw-blog-side-card ul {
  margin: 0;
}

.aw-blog-side-card ul {
  padding-left: 1.1rem;
}

.aw-blog-side-card li+li {
  margin-top: 0.55rem;
}

.aw-blog-side-card code {
  font-family: 'JetBrains Mono', monospace;
  color: #d6c6ff;
}

.aw-matters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.aw-matter {
  min-height: 11rem;
  border-radius: 1.25rem;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
}

.aw-matter:nth-child(1),
.aw-matter:nth-child(4) {
  grid-column: span 2;
  background:
    radial-gradient(ellipse 90% 80% at 20% 0%, rgba(124, 77, 255, 0.18), transparent 60%),
    #121218;
}

.aw-matter:nth-child(2),
.aw-matter:nth-child(3),
.aw-matter:nth-child(5),
.aw-matter:nth-child(6) {
  grid-column: span 1;
}

.aw-matter strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}

.aw-matter span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: #b79aff;
  font-size: 0.82rem;
  line-height: 1.55;
}

.aw-matter p {
  margin: 0.75rem 0 0;
  color: rgba(236, 236, 241, 0.71);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-blog-cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.aw-blog-library-section .aw-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.aw-blog-library-section .aw-head p {
  max-width: 28rem;
}

.aw-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.aw-library-card {
  min-height: 15rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 55%),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.aw-library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 154, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(124, 77, 255, 0.12), transparent 62%),
    #121218;
}

.aw-library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(236, 236, 241, 0.59);
  font-size: 0.72rem;
}

.aw-library-meta span:last-child {
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

.aw-library-card h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.aw-library-card p {
  margin: 0;
  color: rgba(236, 236, 241, 0.71);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-library-card:focus-visible {
  outline: 2px solid #b79aff;
  outline-offset: 4px;
}

/* ---------------- Blog index ---------------- */
.aw-blog-index {
  font-family: 'Geist', 'Space Grotesk', sans-serif;
}

.aw-blog-hero {
  position: relative;
  min-height: min(58rem, 100dvh);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 10rem 1.5rem 5rem;
  background: #09090c;
}

.aw-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 12, 0.38), rgba(9, 9, 12, 0.78) 72%, #09090c),
    radial-gradient(circle at 50% 38%, transparent 0, rgba(9, 9, 12, 0.18) 44%, rgba(9, 9, 12, 0.86) 100%);
}

.aw-blog-hero-media {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url('https://picsum.photos/seed/tdk-service-topology/1920/1080') center / cover no-repeat;
  filter: grayscale(1) contrast(1.3) brightness(0.54);
  opacity: 0.72;
  transform: scale(1.04);
}

.aw-blog-hero-inner {
  width: min(82rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.aw-blog-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0;
  color: #fff;
  text-wrap: balance;
}

.aw-inline-image {
  display: inline-block;
  width: 1.35em;
  height: 0.52em;
  margin: 0 0.05em;
  vertical-align: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: url('https://picsum.photos/seed/tdk-runtime-console/480/180') center / cover no-repeat;
  filter: grayscale(1) contrast(1.25);
}

.aw-blog-hero p {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.aw-blog-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.aw-blog-hero .aw-btn-ghost {
  background: rgba(9, 9, 12, 0.5);
  backdrop-filter: blur(12px);
}

.aw-topic-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d12;
  padding: 1.15rem 0;
}

.aw-topic-track {
  display: flex;
  width: max-content;
  animation: aw-topic-loop 32s linear infinite;
}

.aw-topic-track span {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.77);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.aw-topic-track span::after {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 2rem;
  border-radius: 50%;
  background: #9b77ff;
}

@keyframes aw-topic-loop {
  to {
    transform: translateX(-50%);
  }
}

.aw-blog-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.aw-blog-section-head h2,
.aw-library-intro h2,
.aw-quote-stage h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.aw-blog-section-head p {
  margin: 0;
  color: rgba(236, 236, 241, 0.73);
  font-size: 1rem;
  line-height: 1.7;
}

.aw-featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(17rem, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
  min-height: 42rem;
}

.aw-featured-story {
  position: relative;
  grid-column: span 5;
  display: flex;
  align-items: end;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.aw-featured-story-main {
  grid-column: span 7;
  grid-row: span 2;
}

.aw-featured-story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 8, 11, 0.95) 88%);
}

.aw-featured-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.15);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.aw-featured-image-map {
  background-image: url('https://picsum.photos/seed/tdk-map-terrain/1400/1200');
}

.aw-featured-image-signal {
  background-image: url('https://picsum.photos/seed/tdk-system-signal/1000/700');
}

.aw-featured-image-runtime {
  background-image: url('https://picsum.photos/seed/tdk-runtime-proof/1000/700');
}

.aw-featured-story:hover .aw-featured-image {
  transform: scale(1.06);
  filter: grayscale(0.65) contrast(1.2);
}

.aw-featured-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.aw-featured-category {
  margin-bottom: 0.75rem;
  color: #c8b5ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.aw-featured-content strong {
  max-width: 18ch;
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
}

.aw-featured-story:not(.aw-featured-story-main) .aw-featured-content strong {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.aw-featured-content>span:not(.aw-featured-category):not(.aw-story-link) {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.81);
  font-size: 0.92rem;
  line-height: 1.55;
}

.aw-story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.aw-story-link i {
  transition: transform 0.3s ease;
}

.aw-featured-story:hover .aw-story-link i {
  transform: translate(0.2rem, -0.2rem);
}

.aw-blog-paths {
  background: #0d0d12;
}

.aw-path-accordion {
  display: flex;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
}

.aw-path {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: #111117;
  color: #fff;
  text-decoration: none;
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

.aw-path:last-child {
  border-right: 0;
}

.aw-path:hover,
.aw-path.is-open {
  flex: 2.1 1 0;
  background: #181522;
  color: #fff;
}

.aw-path-title {
  max-width: 12ch;
  font-size: clamp(1.4rem, 2.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.04;
}

.aw-path-copy {
  max-width: 26rem;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  opacity: 0;
  transition: max-height 0.5s ease, margin 0.5s ease, opacity 0.35s ease;
}

.aw-path:hover .aw-path-copy,
.aw-path.is-open .aw-path-copy {
  max-height: 7rem;
  margin-top: 1rem;
  opacity: 1;
}

.aw-path i {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.aw-path:hover i {
  transform: translateX(0.3rem);
}

.aw-library-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 1.65fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.aw-library-intro {
  align-self: start;
  padding-right: 1rem;
  position: sticky;
  top: 7rem;
}

.aw-library-intro h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.9rem);
}

.aw-library-statement {
  margin: 1.6rem 0 0;
  color: rgba(236, 236, 241, 0.77);
  font-size: 1.02rem;
  line-height: 1.75;
}

.aw-library-count {
  margin-top: 2.2rem;
  color: rgba(236, 236, 241, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.aw-library-count strong {
  color: #fff;
  font-size: 1.1rem;
}

.aw-library-tools {
  position: sticky;
  top: 6.5rem;
  z-index: 4;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(18px);
}

.aw-library-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.aw-library-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.aw-library-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.aw-library-search:focus-within {
  color: #c8b5ff;
}

.aw-library-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  scrollbar-width: none;
}

.aw-library-filters::-webkit-scrollbar {
  display: none;
}

.aw-library-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  padding: 0.5rem 0.78rem;
  color: rgba(255, 255, 255, 0.79);
  font-size: 0.75rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.aw-library-filters button:hover,
.aw-library-filters button.is-active {
  border-color: #9b77ff;
  background: #9b77ff;
  color: #09090c;
}

.aw-blog-index .aw-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.aw-blog-index .aw-library-card {
  min-height: 14rem;
  border-radius: 1rem;
  padding: 1.5rem;
}

.aw-blog-index .aw-library-card:nth-child(3n + 1) {
  min-height: 17rem;
}

.aw-blog-index .aw-library-card[hidden] {
  display: none;
}

.aw-blog-index .aw-library-meta {
  margin-bottom: auto;
  color: #c8b5ff;
  font-family: 'JetBrains Mono', monospace;
}

.aw-blog-index .aw-library-meta span {
  border: 0;
  padding: 0;
}

.aw-blog-index .aw-library-card h3 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.aw-library-empty {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 5rem 1rem;
}

.aw-blog-quotes {
  background: #0d0d12;
}

.aw-quote-stage {
  display: grid;
  grid-template-columns: minmax(13rem, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  min-height: 30rem;
  padding-block: 3rem;
}

.aw-quote-stage h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.aw-quote-slides {
  position: relative;
  min-height: 15rem;
}

.aw-quote-slides blockquote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.aw-quote-slides blockquote.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.aw-quote-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.aw-quote-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.aw-quote-controls button:hover {
  background: #fff;
  color: #09090c;
}

.aw-quote-controls span {
  color: rgba(255, 255, 255, 0.67);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.aw-quote-controls strong {
  color: #fff;
}

.aw-blog-action .aw-band {
  border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .aw-topic-track {
    animation: none;
  }

  .aw-featured-image,
  .aw-path,
  .aw-path-copy,
  .aw-quote-slides blockquote {
    transition: none;
  }
}

@media (max-width: 900px) {

  .aw-blog-section-head,
  .aw-library-layout,
  .aw-quote-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .aw-library-intro {
    position: relative !important;
    top: auto !important;
    transform: none !important;
  }

  .aw-quote-controls {
    grid-column: 1;
  }

  .aw-path-accordion {
    min-height: 23rem;
  }

  .aw-path {
    padding: 1.4rem;
  }
}

@media (max-width: 700px) {
  .aw-blog-hero {
    min-height: 100dvh;
    padding: 9rem 1.25rem 3rem;
  }

  .aw-blog-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    line-height: 0.97;
  }

  .aw-inline-image {
    display: none;
  }

  .aw-blog-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aw-blog-section-head {
    gap: 1.4rem;
  }

  .aw-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 27rem 20rem 20rem;
    min-height: 0;
  }

  .aw-featured-story,
  .aw-featured-story-main {
    grid-column: 1;
    grid-row: span 1;
  }

  .aw-path-accordion {
    flex-direction: column;
    min-height: 0;
  }

  .aw-path,
  .aw-path:hover,
  .aw-path.is-open {
    flex: none;
    min-height: 9rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .aw-path:last-child {
    border-bottom: 0;
  }

  .aw-path-copy {
    max-height: 7rem;
    margin-top: 0.75rem;
    opacity: 1;
  }

  .aw-blog-index .aw-library-grid {
    grid-template-columns: 1fr;
  }

  .aw-blog-index .aw-library-card,
  .aw-blog-index .aw-library-card:nth-child(3n + 1) {
    min-height: 13rem;
  }

  .aw-library-tools {
    top: 5.75rem;
  }

  .aw-quote-stage {
    min-height: 36rem;
    padding-block: 0;
  }

  .aw-quote-slides {
    min-height: 21rem;
  }
}

/* ---------------- CTA band ---------------- */
.aw-band {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(124, 77, 255, 0.35) 0%, transparent 65%),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(3rem, 6vw, 5.5rem);
  text-align: center;
}

.aw-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.aw-band p {
  color: rgba(236, 236, 241, 0.75);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

/* ---------------- Scrub statement ---------------- */
.aw-statement {
  text-align: center;
}

.aw-statement h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 72rem;
  margin: 0 auto;
  color: #fff;
}

.aw-statement .aw-word {
  opacity: 0.12;
}

.aw-statement .aw-hot {
  background: linear-gradient(100deg, #b79aff, #4dd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Orbit: one seat vs a circle of vendors ---------------- */
.aw-orbit {
  position: relative;
  width: min(44rem, 100%);
  aspect-ratio: 16 / 10;
  margin: 2rem auto 1rem;
}

.aw-orbit::before {
  content: "";
  position: absolute;
  inset: 4% 8%;
  border: 1px dashed rgba(183, 154, 255, 0.25);
  border-radius: 50%;
}

.aw-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(124, 77, 255, 0.45) 0%, #1a1230 70%);
  border: 1px solid rgba(183, 154, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.aw-orbit-center strong {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.aw-orbit-center span {
  font-size: 0.8125rem;
  color: #b79aff;
  margin-top: 0.25rem;
}

.aw-orbit-chip {
  position: absolute;
  left: calc(50% + var(--ox));
  top: calc(50% + var(--oy));
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(236, 236, 241, 0.75);
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.aw-orbit-chip:hover {
  border-color: #7c4dff;
  color: #b79aff;
  transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 700px) {
  .aw-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    aspect-ratio: auto;
  }

  .aw-orbit::before {
    display: none;
  }

  .aw-orbit-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    padding: 1.5rem;
    order: -1;
    animation: none;
  }

  .aw-orbit-chip {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .aw-subhero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aw-blog .aw-subhero-grid {
    grid-template-columns: 1fr;
  }

  .aw-cat-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .aw-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-grid-varied>* {
    grid-column: span 1;
  }

  .aw-grid-varied> :last-child {
    grid-column: span 2;
  }

  /* odd-count grids close cleanly */
  .aw-story {
    grid-template-columns: 1fr;
  }

  .aw-story-left {
    position: static;
  }

  .aw-docs {
    grid-template-columns: 1fr;
  }

  .aw-docs-side {
    position: relative;
    top: 0;
  }

  .aw-docs-side nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .aw-blog-side {
    position: relative;
    top: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-matters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-blog-library-section .aw-head {
    display: block;
  }

  .aw-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-matter,
  .aw-matter:nth-child(1),
  .aw-matter:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .aw .aw-bento {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .aw .aw-bento>.aw-card {
    grid-column: 1 !important;
    width: 100%;
  }

  .aw-feature-grid {
    grid-template-columns: 1fr;
  }

  /* Must outrank the desktop span-2 rules, or a span-2 card in a 1fr grid
     creates an implicit narrow column and squeezes its neighbours. */
  .aw-feature-grid.aw-grid-varied > :nth-child(n) {
    grid-column: auto;
  }

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

  .aw-section {
    padding: 5rem 1.25rem;
  }

  .aw-subhero {
    padding: 10rem 1.25rem 4rem;
  }

  .aw-blog-side,
  .aw-matters-grid {
    grid-template-columns: 1fr;
  }

  .aw-library-grid {
    grid-template-columns: 1fr;
  }

  .aw-article-card {
    padding: 1.5rem;
  }

  .aw-article-meta span {
    width: 100%;
    justify-content: center;
  }

  .aw-blog-cta-actions .aw-btn {
    width: 100%;
  }
}

/* ---------------- Examples page ----------------
   One accent (brand violet / signal lavender) across every example.
   Grids are sized to their content: 5 repos = 1 tall + 4, 7 domains =
   1 wide + 6, so no row ever ends in an empty cell. */

/* Repo cards: tall restaurant card on the right, 2x2 on the left */
.aw-doc-cards-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  margin-bottom: 4.5rem;
}

.aw-doc-cards-featured .aw-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.aw-doc-cards-featured .aw-card:hover {
  border-color: rgba(183, 154, 255, 0.42);
}

.aw-doc-cards-featured .aw-card:active {
  transform: translateY(-2px) scale(0.99);
}

.aw-doc-cards-featured .aw-card:focus-visible {
  outline: 2px solid #b79aff;
  outline-offset: 3px;
}

.aw-doc-cards .aw-card .aw-repo-kicker {
  display: block;
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(236, 236, 241, 0.55);
}

.aw-docs-body .aw-doc-cards-featured h3 {
  margin: 0 0 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.aw-doc-cards-featured p {
  text-wrap: pretty;
}

.aw-doc-cards .aw-card .aw-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: #b79aff;
}

.aw-doc-cards .aw-card .aw-repo-link i {
  font-size: 0.85em;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-doc-cards .aw-card:hover .aw-repo-link i {
  transform: translate(2px, -2px);
}

.aw-card-restaurant {
  grid-column: 3;
  grid-row: 1 / span 2;
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(124, 77, 255, 0.16), transparent 65%),
    #121218;
}

.aw-restaurant-photo {
  flex: 1 1 auto;
  min-height: 11rem;
  margin: -0.5rem -0.5rem 1.35rem;
  border-radius: 1rem;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 14, 0.05), rgba(10, 10, 14, 0.55)),
    url('https://picsum.photos/seed/tdk-restaurant-service-pass/900/1100');
  background-position: center;
  background-size: cover;
  filter: grayscale(0.35) contrast(1.1) saturate(0.85);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.aw-card-restaurant:hover .aw-restaurant-photo {
  transform: scale(1.03);
  filter: grayscale(0.15) contrast(1.14) saturate(0.95);
}

.aw-card-erp .aw-repo-kicker {
  padding-right: 4rem;
}

.aw-erp-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(124, 77, 255, 0.14);
  border: 1px solid rgba(183, 154, 255, 0.35);
  color: #b79aff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.aw-erp-badge small {
  margin-top: 0.15rem;
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(236, 236, 241, 0.55);
}

/* Showcases (restaurant + scale fixture) */
.aw-example-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin: 1.75rem 0 2rem;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border: 1px solid rgba(183, 154, 255, 0.16);
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 95% 0%, rgba(124, 77, 255, 0.2), transparent 60%),
    #101015;
}

.aw-restaurant-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('https://picsum.photos/seed/tdk-evening-restaurant-floor/1600/1000');
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.12;
}

.aw-example-copy,
.aw-example-stage {
  position: relative;
  z-index: 1;
}

.aw-docs-body .aw-example-copy h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.aw-example-copy p {
  max-width: 34rem;
  margin: 0;
  color: rgba(236, 236, 241, 0.68);
  text-wrap: pretty;
}

.aw-example-copy p a {
  color: #b79aff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.aw-example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.aw-example-actions .aw-btn {
  padding: 0.8rem 1.6rem;
  font-size: 0.9375rem;
}

.aw-docs-body .aw-example-actions .aw-btn-solid,
.aw-docs-body .aw-example-actions .aw-btn-solid:hover {
  color: #0a0a0e;
  text-decoration: none;
}

.aw-docs-body .aw-example-actions .aw-btn-ghost,
.aw-docs-body .aw-example-actions .aw-btn-ghost:hover {
  color: #fff;
  text-decoration: none;
}

.aw-example-actions .aw-btn:focus-visible {
  outline: 2px solid #b79aff;
  outline-offset: 3px;
}

.aw-example-actions .aw-btn:active {
  transform: scale(0.98);
}

/* Restaurant stage: three stacks, offset like a service pass */
.aw-restaurant-stage {
  display: grid;
  gap: 0.85rem;
}

.aw-restaurant-panel {
  display: grid;
  gap: 0.45rem;
  width: 86%;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(12, 12, 17, 0.78);
  box-shadow: 0 20px 50px rgba(6, 4, 16, 0.45);
  backdrop-filter: blur(16px);
}

.aw-restaurant-panel-kitchen {
  margin-left: auto;
  border-color: rgba(183, 154, 255, 0.34);
}

.aw-restaurant-panel-floor {
  margin-left: 7%;
}

.aw-restaurant-panel strong,
.aw-erp-panel strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aw-restaurant-panel span,
.aw-erp-panel span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(236, 236, 241, 0.7);
}

/* ERP stage: 7 domains = 6 halves + 1 full-width row */
.aw-erp-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.aw-erp-panel {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  background: rgba(18, 18, 24, 0.85);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease;
}

.aw-erp-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 154, 255, 0.4);
}

.aw-erp-panel-analytics {
  grid-column: 1 / -1;
}

/* Resource / domain link grids */
.aw-restaurant-resource-grid,
.aw-erp-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.aw-restaurant-resource-grid a,
.aw-erp-domain-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  background: #121218;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, background 0.45s ease;
}

.aw-restaurant-resource-grid a:hover,
.aw-erp-domain-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 154, 255, 0.4);
}

.aw-restaurant-resource-grid a:focus-visible,
.aw-erp-domain-grid a:focus-visible {
  outline: 2px solid #b79aff;
  outline-offset: 3px;
}

.aw-restaurant-resource-grid a:nth-child(1),
.aw-erp-domain-grid a.is-wide {
  background:
    radial-gradient(ellipse 90% 90% at 10% 0%, rgba(124, 77, 255, 0.18), transparent 62%),
    #121218;
}

.aw-erp-domain-grid a.is-wide {
  grid-column: span 2;
}

.aw-restaurant-resource-grid i,
.aw-erp-domain-grid i {
  margin-bottom: 0.35rem;
  color: #b79aff;
  font-size: 1.4rem;
}

.aw-restaurant-resource-grid strong,
.aw-erp-domain-grid strong {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
}

.aw-restaurant-resource-grid span,
.aw-erp-domain-grid span {
  color: rgba(236, 236, 241, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

.aw-erp-domain-grid .aw-domain-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #b79aff;
}

.aw-docs-body .aw-example-manifest {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .aw-example-showcase {
    grid-template-columns: 1fr;
  }

  .aw-restaurant-panel {
    width: 100%;
  }

  .aw-restaurant-panel-kitchen,
  .aw-restaurant-panel-floor {
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .aw-doc-cards-featured,
  .aw-restaurant-resource-grid,
  .aw-erp-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-card-restaurant {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .aw-restaurant-photo {
    flex: none;
    height: 12rem;
  }

  .aw-erp-domain-grid a.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .aw-doc-cards-featured,
  .aw-restaurant-resource-grid,
  .aw-erp-domain-grid {
    grid-template-columns: 1fr;
  }

  .aw-erp-stage {
    gap: 0.6rem;
  }

  .aw-example-showcase {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-restaurant-photo,
  .aw-restaurant-resource-grid a,
  .aw-erp-domain-grid a,
  .aw-erp-panel,
  .aw-repo-link i,
  .aw-card {
    transition: none;
  }
}


/* Example screenshots (docs/examples) */
.aw-shot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2.5rem;
}

.aw-shot-row figure {
  margin: 0;
}

.aw-shot-row img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(183, 154, 255, 0.18);
  border-radius: 0.875rem;
}

.aw-shot-row figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(236, 236, 241, 0.55);
}

@media (max-width: 640px) {
  .aw-shot-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Adopters (social proof) ---------------- */
.aw-adopters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.aw-adopters-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b79aff;
  margin-bottom: 1rem;
}

.aw-adopters-intro h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
  margin: 0 0 1rem;
}

.aw-adopters-intro p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(236, 236, 241, 0.7);
  font-weight: 300;
  margin: 0 0 2rem;
  max-width: 28rem;
}

.aw-adopters-intro p a {
  color: #b79aff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(183, 154, 255, 0.4);
}

.aw-adopters-intro p a:hover {
  color: #fff;
}

.aw-adopters-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #121218;
  font-size: 0.875rem;
  color: rgba(236, 236, 241, 0.7);
}

.aw-adopters-count .aw-mono {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6ee7b7;
}

.aw-adopter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-adopter-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-adopter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem) 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease;
}

.aw-adopter-row:hover,
.aw-adopter-row:focus-visible {
  color: #fff;
  padding-left: 1.25rem;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.1), transparent 70%);
}

.aw-adopter-name {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.aw-adopter-ver {
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(183, 154, 255, 0.25);
  color: #b79aff;
  white-space: nowrap;
}

.aw-adopter-arrow {
  font-size: 1.25rem;
  color: rgba(236, 236, 241, 0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.aw-adopter-row:hover .aw-adopter-arrow {
  transform: translate(3px, -3px);
  color: #b79aff;
}

@media (max-width: 768px) {
  .aw-adopters-grid {
    grid-template-columns: 1fr;
  }

  .aw-adopter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.5rem;
  }

  .aw-adopter-arrow {
    display: none;
  }
}
