:root {
  --bg-start: #0b1316;
  --bg-end: #101a2c;
  --panel: rgba(14, 22, 31, 0.82);
  --panel-border: rgba(120, 196, 255, 0.27);
  --text: #f5f8ff;
  --muted: #9db0c6;
  --accent: #7bdff6;
  --accent-2: #ffb977;
  --danger: #ff7f7f;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% -10%, #1f6c82 0, transparent 35%),
    radial-gradient(circle at 85% 15%, #33428a 0, transparent 32%),
    linear-gradient(140deg, var(--bg-start), var(--bg-end));
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 2px,
    transparent 2px,
    transparent 11px
  );
  animation: drift 16s linear infinite;
}

.page {
  width: min(1000px, 94vw);
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.hero {
  margin-bottom: 1.4rem;
}

.hero-shell .hero {
  margin-bottom: 0;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.hero-copy {
  margin-top: 0.8rem;
  max-width: 66ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 223, 246, 0.35);
  background: rgba(123, 223, 246, 0.12);
  color: #d7f8ff;
  text-decoration: none;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-guide-link:hover,
.hero-guide-link:focus-visible {
  background: rgba(123, 223, 246, 0.2);
  border-color: rgba(123, 223, 246, 0.58);
  transform: translateY(-1px);
}

.hero-guide-link-secondary {
  background: rgba(255, 185, 119, 0.14);
  border-color: rgba(255, 185, 119, 0.32);
  color: #ffe6d1;
}

.hero-guide-link-secondary:hover,
.hero-guide-link-secondary:focus-visible {
  background: rgba(255, 185, 119, 0.2);
  border-color: rgba(255, 185, 119, 0.58);
}

.news-sidebar {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 196, 119, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 153, 0.2), transparent 34%),
    linear-gradient(160deg, rgba(47, 27, 16, 0.96), rgba(23, 15, 12, 0.96));
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

.news-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 5px,
    transparent 5px,
    transparent 14px
  );
  opacity: 0.7;
}

.news-sidebar > * {
  position: relative;
  z-index: 1;
}

.news-sidebar-head h2 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.news-sidebar-head p:last-child {
  margin: 0.45rem 0 0;
  color: rgba(255, 233, 205, 0.78);
  line-height: 1.4;
  font-size: 0.8rem;
}

.news-sidebar-kicker {
  margin: 0 0 0.4rem;
  color: #ffcf9a;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.latest-news-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.latest-news-card {
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  background: rgba(255, 244, 230, 0.06);
  border: 1px solid rgba(255, 214, 163, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.latest-news-meta {
  margin: 0;
  color: #ffcf9a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6rem;
}

.latest-news-title {
  margin: 0.28rem 0 0;
  font-size: 0.83rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.latest-news-title a {
  color: #fff5e8;
  text-decoration: none;
  font-weight: 600;
}

.latest-news-title a:hover,
.latest-news-title a:focus-visible {
  color: #ffd6aa;
}

.latest-news-summary {
  margin: 0.38rem 0 0;
  color: rgba(255, 239, 219, 0.75);
  font-size: 0.75rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.58rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 119, 0.42);
  background: rgba(255, 185, 119, 0.12);
  color: #fff3e2;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.news-sidebar-link::after {
  content: "→";
}

.news-sidebar-link:hover,
.news-sidebar-link:focus-visible {
  transform: translateX(1px);
  background: rgba(255, 185, 119, 0.18);
  border-color: rgba(255, 196, 119, 0.58);
}

.workflow-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.workflow-card {
  border: 1px solid rgba(164, 216, 255, 0.18);
  border-radius: 16px;
  padding: 1.1rem;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.9), rgba(5, 13, 22, 0.86));
}

.workflow-card h3 {
  margin: 0 0 0.55rem 0;
  font-size: 1.05rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.workflow-note {
  margin-top: 0.75rem !important;
  color: rgba(245, 248, 255, 0.88) !important;
}

.workflow-note code,
.news-callout code {
  font-size: 0.85em;
  padding: 0.1rem 0.33rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.11);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

.feed-status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(123, 223, 246, 0.28);
  background: rgba(123, 223, 246, 0.05);
  color: var(--muted);
  line-height: 1.5;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 95% 8%, rgba(123, 223, 246, 0.15), transparent 38%);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel-head h2 {
  margin: 0;
}

.panel-head p {
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── Use Cases Accordion ───────────────────────────────── */
.use-cases-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.use-case-item {
  border: 1px solid rgba(164, 216, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.88), rgba(5, 13, 22, 0.88));
  overflow: hidden;
}

.use-case-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.use-case-item summary::-webkit-details-marker {
  display: none;
}

.use-case-item summary::after {
  content: "+";
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #b8f4ff;
  border: 1px solid rgba(123, 223, 246, 0.35);
  background: rgba(123, 223, 246, 0.08);
  flex-shrink: 0;
}

.use-case-item[open] summary::after {
  content: "−";
}

.use-case-title {
  line-height: 1.3;
}

.use-case-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: rgba(123, 223, 246, 0.13);
  border: 1px solid rgba(123, 223, 246, 0.28);
}

.use-case-body {
  border-top: 1px solid rgba(123, 223, 246, 0.12);
  padding: 0.85rem 0.95rem 0.95rem;
  color: var(--muted);
}

.use-case-body h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.88rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.use-case-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.use-case-steps,
.use-case-points {
  margin: 0.15rem 0 0;
  padding-left: 1.05rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.use-case-steps li + li,
.use-case-points li + li {
  margin-top: 0.22rem;
}

.use-case-body code {
  font-size: 0.83em;
  padding: 0.1rem 0.33rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.11);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 223, 246, 0.22);
  background: rgba(123, 223, 246, 0.06);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-pill:hover {
  background: rgba(123, 223, 246, 0.14);
  border-color: rgba(123, 223, 246, 0.42);
  color: var(--text);
}

.filter-pill.active {
  background: rgba(123, 223, 246, 0.2);
  border-color: rgba(123, 223, 246, 0.58);
  color: #b8f4ff;
  font-weight: 600;
}

.pill-count {
  font-size: 0.7rem;
  opacity: 0.65;
}

/* ── Grouped (all categories) view ─────────────────────── */
.category-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.category-section {
  display: flex;
  flex-direction: column;
}

.category-header {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.65rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(123, 223, 246, 0.15);
}

/* ── Resource grid ──────────────────────────────────────── */
.resource-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.category-section .resource-grid {
  margin-top: 0;
}

.resource-card {
  border: 1px solid rgba(164, 216, 255, 0.22);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.9), rgba(5, 13, 22, 0.9));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  min-width: 0;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 185, 119, 0.65);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  padding: 0.28rem 0.54rem;
  border-radius: 999px;
  background: rgba(123, 223, 246, 0.2);
  color: #b8f4ff;
  border: 1px solid rgba(123, 223, 246, 0.35);
}

.source {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(207, 224, 241, 0.82);
  text-transform: lowercase;
}

.resource-card h3 {
  margin: 0;
  line-height: 1.24;
  font-size: 1.38rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-actions {
  margin-top: auto;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d7f8ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid rgba(184, 244, 255, 0.34);
  background: rgba(123, 223, 246, 0.12);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.visit-link::after {
  content: "↗";
  font-size: 0.9rem;
}

.visit-link:hover,
.visit-link:focus-visible {
  background: rgba(255, 185, 119, 0.18);
  border-color: rgba(255, 185, 119, 0.55);
  transform: translateX(1px);
}

.visit-link:focus-visible {
  outline: 2px solid rgba(184, 244, 255, 0.6);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 700ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 220ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ── Section Nav ───────────────────────────────────────── */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 22, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(123, 223, 246, 0.12);
  padding: 0.5rem 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.section-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

.section-nav-inner {
  width: min(1000px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
}

.nav-group-label {
  color: rgba(245, 248, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-pill {
  flex: 0 1 auto;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 223, 246, 0.18);
  background: rgba(123, 223, 246, 0.05);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-pill:hover {
  background: rgba(123, 223, 246, 0.14);
  border-color: rgba(123, 223, 246, 0.4);
  color: var(--text);
}

.nav-pill.active {
  background: rgba(123, 223, 246, 0.2);
  border-color: rgba(123, 223, 246, 0.55);
  color: #b8f4ff;
  font-weight: 600;
}

/* ── Overview Grid ─────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.overview-card {
  border: 1px solid rgba(164, 216, 255, 0.18);
  border-radius: 14px;
  padding: 1.2rem;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.85), rgba(5, 13, 22, 0.85));
}

.overview-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overview-icon {
  font-size: 1.4rem;
}

.overview-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.overview-list li + li {
  margin-top: 0.35rem;
}

.overview-list code {
  font-size: 0.85em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.12);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Steps Timeline ────────────────────────────────────── */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.2rem;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(123, 223, 246, 0.12));
  border-radius: 1px;
}

.step-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(123, 223, 246, 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.step-body p {
  margin: 0 0 0.6rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 160ms ease;
  margin-right: 1rem;
}

.step-link:hover {
  color: var(--accent-2);
}

/* ── Reference Grid ────────────────────────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.ref-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(5, 13, 22, 0.7);
  border: 1px solid rgba(123, 223, 246, 0.12);
}

.ref-file {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88rem;
  color: var(--accent);
  word-break: break-all;
}

.ref-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ── Models Table ──────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(164, 216, 255, 0.15);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.3;
}

.models-table thead {
  background: rgba(123, 223, 246, 0.05);
  border-bottom: 1px solid rgba(123, 223, 246, 0.2);
}

.models-table th {
  padding: 0.6rem 0.6rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #b8f4ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.73rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.models-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(123, 223, 246, 0.08);
  color: var(--muted);
}

.models-table tbody tr {
  transition: background 140ms ease;
}

.models-table tbody tr:hover {
  background: rgba(123, 223, 246, 0.04);
}

.models-table tbody tr.highlight {
  background: rgba(255, 185, 119, 0.06);
}

.models-table tbody tr.highlight:hover {
  background: rgba(255, 185, 119, 0.08);
}

.models-table .model-name {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.76rem;
}

.cap-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.18rem 0.3rem;
  border-radius: 3px;
  background: rgba(123, 223, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(123, 223, 246, 0.25);
  margin-right: 0.2rem;
  white-space: nowrap;
}

.models-table td:nth-child(4) {
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}

.strengths {
  font-size: 0.76rem;
  color: rgba(245, 248, 255, 0.8);
  line-height: 1.35;
}

.cost-free {
  color: #7bea66;
}

.cost-low {
  color: #b8f4ff;
}

.cost-std {
  color: #ffb977;
}

.cost-high {
  color: #ff7f7f;
}

.legend-info {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: rgba(123, 223, 246, 0.06);
  border-left: 3px solid var(--accent);
  border: 1px solid rgba(123, 223, 246, 0.15);
}

.legend-info p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.legend-info a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legend-info a:hover {
  color: var(--accent-2);
}

.model-preview-grid,
.flow-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.model-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.model-preview-card,
.model-use-card,
.flow-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(123, 223, 246, 0.14);
  background: rgba(5, 13, 22, 0.68);
}

.model-preview-card h3,
.model-use-card h3,
.flow-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  color: var(--text);
}

.model-preview-card p,
.model-use-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.model-use-card p + p {
  margin-top: 0.55rem;
}

.models-table-wide {
  min-width: 1180px;
}

.models-table-wide th:nth-child(4),
.models-table-wide th:nth-child(5),
.models-table-wide td:nth-child(4),
.models-table-wide td:nth-child(5) {
  text-align: center;
}

.models-table-wide td:nth-child(6),
.models-table-wide td:nth-child(7) {
  min-width: 240px;
}

.flow-stack {
  grid-template-columns: 1fr;
}

/* ── News Page ─────────────────────────────────────────── */
.news-layout {
  display: grid;
  gap: 1rem;
}

.news-intro {
  display: grid;
  gap: 1rem;
}

.news-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.news-overview-card {
  appearance: none;
  display: grid;
  justify-items: start;
  gap: 0.38rem;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(123, 223, 246, 0.18);
  background: rgba(123, 223, 246, 0.05);
  padding: 0.68rem 0.75rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.news-overview-card:hover,
.news-overview-card:focus-visible {
  border-color: rgba(123, 223, 246, 0.34);
  background: rgba(123, 223, 246, 0.1);
  transform: translateY(-1px);
}

.news-overview-card.active {
  border-color: rgba(123, 223, 246, 0.46);
  background: rgba(123, 223, 246, 0.14);
}

.news-overview-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  background: rgba(215, 248, 255, 0.1);
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  line-height: 1.1;
  color: #d7f8ff;
}

.news-overview-card h3 {
  margin: 0;
  font-size: 0.8rem;
}

.news-callout {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 185, 119, 0.14), rgba(123, 223, 246, 0.08));
  border: 1px solid rgba(255, 185, 119, 0.26);
}

.news-callout p {
  margin: 0;
  color: rgba(245, 248, 255, 0.88);
  line-height: 1.48;
  font-size: 0.88rem;
}

.news-spotlight-grid,
.news-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.news-page-card {
  min-height: 0;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.92), rgba(5, 13, 22, 0.9));
  border-color: rgba(164, 216, 255, 0.16);
  box-shadow: none;
}

.news-page-card .latest-news-summary {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.35rem;
}

.news-company-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.news-company-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 223, 246, 0.2);
  background: rgba(123, 223, 246, 0.08);
  color: #ccefff;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.news-company-chip-aggregate {
  padding: 0.34rem 0.6rem;
  background: rgba(255, 185, 119, 0.1);
  border-color: rgba(255, 185, 119, 0.2);
  color: #ffe5cb;
}

.news-sources {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.news-sources li + li {
  margin-top: 0.35rem;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-guide-link {
    justify-content: center;
  }

  .use-case-item summary {
    padding: 0.68rem 0.72rem;
    font-size: 0.86rem;
    gap: 0.45rem;
  }

  .use-case-tag {
    font-size: 0.58rem;
    padding: 0.16rem 0.3rem;
  }

  .use-case-body {
    padding: 0.7rem 0.72rem 0.8rem;
  }

  .use-case-body p,
  .use-case-steps,
  .use-case-points {
    font-size: 0.76rem;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .models-table {
    font-size: 0.72rem;
  }

  .models-table th {
    font-size: 0.68rem;
    padding: 0.45rem 0.45rem;
  }

  .models-table td {
    padding: 0.4rem 0.45rem;
  }

  .models-table .model-name {
    font-size: 0.7rem;
  }

  .cap-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.25rem;
    margin-right: 0.15rem;
  }

  .strengths {
    font-size: 0.7rem;
  }

  .legend-info {
    margin-top: 0.8rem;
    padding: 0.6rem 0.6rem;
  }

  .legend-info p {
    font-size: 0.7rem;
  }

  .resource-card {
    min-height: 0;
  }

  .news-sidebar {
    padding: 0.82rem;
  }

  .latest-news-card {
    padding: 0.68rem 0.72rem;
  }

  .news-overview-grid,
  .news-spotlight-grid,
  .news-section-grid {
    grid-template-columns: 1fr;
  }

  .resource-card h3 {
    font-size: 1.2rem;
  }

  .note {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

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

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

  .steps-timeline::before {
    left: 0.95rem;
  }

  .step-number {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.82rem;
  }
}

/* ══════════════════════════════════════════════════════════
   Guide Page Styles
   ══════════════════════════════════════════════════════════ */

/* ── Always-visible nav for guide page ─────────────────── */
.nav-visible-always {
  transform: translateY(0);
  opacity: 1;
}

.nav-pill-back {
  background: rgba(255, 185, 119, 0.12);
  border-color: rgba(255, 185, 119, 0.35);
  color: var(--accent-2);
  font-weight: 600;
}

.nav-pill-back:hover {
  background: rgba(255, 185, 119, 0.22);
  border-color: rgba(255, 185, 119, 0.55);
  color: #ffe0c2;
}

/* ── Guide text ────────────────────────────────────────── */
.guide-text {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.guide-text code {
  font-size: 0.85em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.12);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

.guide-text-note {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--accent-2);
  font-style: italic;
  line-height: 1.4;
}

/* ── Analogy box ───────────────────────────────────────── */
.analogy-box {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(30, 60, 90, 0.35), rgba(10, 20, 35, 0.5));
  border: 1px solid rgba(123, 223, 246, 0.2);
  border-left: 4px solid var(--accent);
}

.analogy-box h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.1rem;
}

.analogy-box p {
  margin: 0 0 0.6rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.analogy-box p:last-child {
  margin-bottom: 0;
}

/* ── Guide callout ─────────────────────────────────────── */
.guide-callout {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(5, 13, 22, 0.7);
  border: 1px solid rgba(255, 185, 119, 0.2);
  border-left: 4px solid var(--accent-2);
}

.guide-callout h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--accent-2);
}

.guide-callout p {
  margin: 0 0 0.5rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

.guide-callout-spaced {
  margin-top: 1rem;
}

.guide-callout code {
  font-size: 0.83em;
  padding: 0.1rem 0.33rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.11);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

.guide-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.guide-link:hover {
  color: var(--accent-2);
}

/* ── Location cards (where agents/skills live) ─────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.location-card {
  border: 1px solid rgba(164, 216, 255, 0.18);
  border-radius: 14px;
  padding: 1.2rem;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.85), rgba(5, 13, 22, 0.85));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.location-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.location-badge-workspace {
  background: rgba(123, 223, 246, 0.15);
  border: 1px solid rgba(123, 223, 246, 0.35);
  color: #b8f4ff;
}

.location-badge-user {
  background: rgba(255, 185, 119, 0.15);
  border: 1px solid rgba(255, 185, 119, 0.35);
  color: var(--accent-2);
}

.path-display {
  display: block;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(5, 13, 22, 0.8);
  border: 1px solid rgba(123, 223, 246, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  word-break: break-all;
}

.path-display em {
  color: var(--accent-2);
  font-style: normal;
}

/* ── Comparison cards ──────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.compare-card {
  border-radius: 14px;
  padding: 1.2rem;
  background: linear-gradient(165deg, rgba(9, 20, 33, 0.85), rgba(5, 13, 22, 0.85));
}

.compare-card-user {
  border: 1px solid rgba(255, 185, 119, 0.25);
}

.compare-card-workspace {
  border: 1px solid rgba(123, 223, 246, 0.25);
}

.compare-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.15rem;
}

.compare-list {
  margin: 0;
}

.compare-list dt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 0.7rem;
}

.compare-list dt:first-child {
  margin-top: 0;
}

.compare-list dd {
  margin: 0.15rem 0 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.compare-list code {
  font-size: 0.83em;
  padding: 0.1rem 0.33rem;
  border-radius: 4px;
  background: rgba(123, 223, 246, 0.11);
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── File tree diagrams ────────────────────────────────── */
.file-tree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.file-tree-block {
  background: rgba(5, 13, 22, 0.7);
  border: 1px solid rgba(123, 223, 246, 0.12);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
}

.file-tree-label {
  margin: 0 0 0.7rem 0;
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.file-tree {
  margin: 0;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
}

/* ── Guide page responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .location-grid,
  .compare-grid,
  .file-tree-grid {
    grid-template-columns: 1fr;
  }

  .analogy-box {
    padding: 0.9rem 1rem;
  }

  .guide-callout {
    padding: 0.8rem 0.9rem;
  }

  .file-tree {
    font-size: 0.7rem;
  }
}
