/*
 * css/raaghu_spec_kit.css
 * Raaghu Spec Kit — aligned with home.css spacing and site design system
 */

/* ── Shared spacing tokens (mirror home.css) ─────────────────── */

:root {
  --home-section-gap: 80px;
  --home-section-gap-split: 40px;
  --home-section-gap-tight: 32px;
  --home-section-header-gap: 64px;
  --home-hero-space-top: 40px;
}

@media (max-width: 1024px) {
  :root {
    --home-section-gap: 64px;
    --home-section-gap-split: 32px;
    --home-section-gap-tight: 24px;
    --home-section-header-gap: 48px;
    --home-hero-space-top: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --home-section-gap: 56px;
    --home-section-gap-split: 28px;
    --home-section-gap-tight: 20px;
    --home-section-header-gap: 40px;
    --home-hero-space-top: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --home-section-gap: 48px;
    --home-section-gap-split: 24px;
    --home-section-gap-tight: 16px;
    --home-section-header-gap: 32px;
    --home-hero-space-top: 20px;
  }
}

/* Hero demo button hover — see styles.css .btn--hero-demo */

/* Footer current page link — see footer.css */

/* ── Section header (mirror products__header) ────────────────── */

.spec-kit-section-header {
  max-width: 640px;
  margin: 0 auto calc(var(--home-section-header-gap) - 16px);
  text-align: center;
}

.spec-kit-section-title {
  margin-bottom: 0;
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ── Hero ────────────────────────────────────────────────────── */

.spec-kit-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--border-primary) 40%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--border-primary) 40%, transparent) 1px,
      transparent 1px
    ),
    var(--gradient-hero);
  background-size: 48px 48px, 48px 48px, auto;
}

.spec-kit-hero::before,
.spec-kit-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.spec-kit-hero::before {
  top: -8%;
  right: -4%;
  width: min(52vw, 640px);
  height: min(68vh, 720px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--fabric-blue) 16%, transparent) 0%,
    transparent 72%
  );
}

.spec-kit-hero::after {
  bottom: -6%;
  right: 8%;
  width: min(40vw, 480px);
  height: min(44vh, 480px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%,
    transparent 70%
  );
}

.spec-kit-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: var(--home-hero-space-top) var(--layout-gutter) var(--home-section-gap-tight);
}

.spec-kit-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  text-align: left;
}

.spec-kit-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 28px;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  white-space: nowrap;
}

.spec-kit-hero__badge-icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}

.spec-kit-hero__badge-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  overflow: visible;
  border: none;
  outline: none;
}

.spec-kit-hero__badge-icon__spark {
  transform-box: fill-box;
  transform-origin: center;
}

.spec-kit-hero__badge-text {
  display: inline;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.spec-kit-hero__title {
  margin-bottom: 20px;
  font-size: var(--fs-hero-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.spec-kit-hero__title--animated {
  overflow: hidden;
}

.spec-kit-hero__title-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(16px);
  animation: spec-kit-hero-title-rise 0.6s ease-out forwards;
}

.spec-kit-hero__title-line--lead,
.spec-kit-hero__title-line--emphasis,
.spec-kit-hero__title-line--body {
  font-size: 1em;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
  background: none;
}

.spec-kit-hero__title-line--gradient {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 1em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: spec-kit-hero-title-rise 0.6s ease-out forwards;
}

.spec-kit-hero__title-line:nth-child(1) { animation-delay: 0.1s; }
.spec-kit-hero__title-line:nth-child(2) { animation-delay: 0.3s; }
.spec-kit-hero__title-line:nth-child(3) { animation-delay: 0.5s; }
.spec-kit-hero__title-line:nth-child(4) { animation-delay: 0.7s; }

@media (min-width: 1600px) {
  .spec-kit-hero__title {
    font-size: clamp(var(--fontsize-5xl), 3.2vw, var(--fontsize-6xl));
  }
}

@media (min-width: 2200px) {
  .spec-kit-hero__title {
    font-size: clamp(var(--fontsize-6xl), 2.8vw, var(--fontsize-7xl));
  }
}

@keyframes spec-kit-hero-title-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spec-kit-hero__title-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.spec-kit-hero__description {
  width: 100%;
  max-width: 520px;
  margin-bottom: 28px;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

.spec-kit-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.spec-kit-hero__actions .btn {
  min-height: 0;
  padding: 7px 15px;
  font-size: var(--fs-sm);
}

.spec-kit-hero__actions .btn--primary {
  padding: 7px 17px;
  font-weight: 600;
}

.spec-kit-hero__actions .btn--outline,
.spec-kit-hero__actions .btn--hero-demo {
  padding: 7px 13px;
  font-weight: 500;
}

.spec-kit-hero__actions .btn__icon {
  width: 16px;
  height: 16px;
}

.spec-kit-hero__highlights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px 32px;
  width: 100%;
  padding: 36px 0 12px;
}

.spec-kit-hero__highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  gap: 12px;
  padding-inline: 8px;
}

.spec-kit-hero__highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.spec-kit-hero__highlight-icon svg,
.spec-kit-hero__highlight-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.spec-kit-hero__highlight-icon--ai {
  color: var(--ai-cyan);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--ai-cyan) 50%, transparent));
}

.spec-kit-hero__highlight-icon--ado {
  color: var(--brand-light);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--brand-primary) 50%, transparent));
}

.spec-kit-hero__highlight-icon--shield,
.spec-kit-hero__highlight-icon--people {
  color: var(--brand-light);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--brand-primary) 50%, transparent));
}

.spec-kit-hero__highlight-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.spec-kit-hero__highlight-text {
  max-width: 220px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Hero visual — full dashboard fit in wide 80% column ───── */

.spec-kit-hero__visual {
  min-width: 0;
  width: 100%;
}

.spec-kit-hero__frame {
  width: 100%;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--text-primary) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--border-primary) 60%, transparent);
  overflow: hidden;
}

.spec-kit-hero__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1025px) {
  .spec-kit-hero__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: clamp(40px, 5vw, 88px);
  }

  .spec-kit-hero__content {
    align-self: start;
    max-width: none;
    width: 100%;
  }

  .spec-kit-hero__title {
    font-size: var(--fs-hero-title);
    line-height: 1.15;
  }

  .spec-kit-hero__description {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: var(--fs-base);
    line-height: 1.65;
  }

  .spec-kit-hero__actions {
    justify-content: flex-start;
    width: auto;
  }

  .spec-kit-hero__actions .btn {
    min-height: 0;
    padding: 7px 15px;
    font-size: var(--fs-sm);
  }

  .spec-kit-hero__actions .btn--primary {
    padding: 7px 17px;
  }

  .spec-kit-hero__actions .btn--outline,
  .spec-kit-hero__actions .btn--hero-demo {
    padding: 7px 13px;
  }

  .spec-kit-hero__visual {
    width: 100%;
    min-width: 0;
    align-self: center;
  }
}

/* ── Pipeline (From Documents to Delivery) ───────────────────── */

.spec-kit-pipeline {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-top: calc(var(--home-section-gap-split) - 8px);
  padding-bottom: calc(var(--home-section-gap-split) - 8px);
  padding-inline: var(--layout-gutter);
}

.spec-kit-pipeline__inner {
  max-width: var(--layout-content);
  margin-inline: auto;
}

.spec-kit-pipeline__header {
  max-width: 640px;
  margin: 0 auto calc(var(--home-section-header-gap) - 16px);
  text-align: center;
}

.spec-kit-pipeline__title {
  margin-bottom: 16px;
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.spec-kit-pipeline__title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec-kit-pipeline__subtitle {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.spec-kit-pipeline__track {
  position: relative;
  padding: 24px 0 8px;
}

.spec-kit-pipeline__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-kit-pipeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.spec-kit-pipeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
  background-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--brand-light);
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.spec-kit-pipeline__icon svg {
  width: 28px;
  height: 28px;
}

.spec-kit-pipeline__icon--engine {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  border-color: color-mix(in srgb, var(--ai-cyan) 55%, transparent);
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--ai-cyan) 18%, transparent) 0%,
      color-mix(in srgb, var(--ai-cyan) 4%, transparent) 70%
    );
  color: var(--ai-cyan);
  box-shadow:
    0 0 32px color-mix(in srgb, var(--ai-cyan) 28%, transparent),
    inset 0 0 16px color-mix(in srgb, var(--ai-cyan) 8%, transparent);
}

.spec-kit-pipeline__icon--engine svg {
  width: 44px;
  height: 44px;
}

.spec-kit-pipeline__icon--ado {
  border-color: color-mix(in srgb, var(--fabric-blue) 45%, transparent);
  background-color: color-mix(in srgb, var(--fabric-blue) 8%, transparent);
  color: var(--fabric-blue-light);
  box-shadow: 0 0 20px color-mix(in srgb, var(--fabric-blue) 12%, transparent);
}

.spec-kit-pipeline__step-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.spec-kit-pipeline__step-text {
  max-width: 148px;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--text-muted);
}

.spec-kit-pipeline__connectors {
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 12px;
  pointer-events: none;
}

.spec-kit-pipeline__connector {
  position: absolute;
  top: 50%;
  height: 0;
  border-top: 1.5px dashed color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

.spec-kit-pipeline__connector:nth-child(1) {
  left: 0;
  width: 22%;
}

.spec-kit-pipeline__connector:nth-child(2) {
  left: 22%;
  width: 22%;
}

.spec-kit-pipeline__connector:nth-child(3) {
  left: 56%;
  width: 22%;
}

.spec-kit-pipeline__connector:nth-child(4) {
  left: 78%;
  width: 22%;
}

.spec-kit-pipeline__connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
}

/* ── Feature grid ────────────────────────────────────────────── */

.spec-kit-features {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-top: var(--home-section-gap-split);
  padding-bottom: var(--home-section-gap-tight);
  padding-inline: var(--layout-gutter);
}

.spec-kit-features__inner {
  max-width: var(--layout-content);
  margin-inline: auto;
  position: relative;
}

.spec-kit-features .spec-kit-section-header {
  max-width: 820px;
}

.spec-kit-features__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.spec-kit-features__gradient-start {
  stop-color: var(--brand-primary);
}

.spec-kit-features__gradient-end {
  stop-color: var(--brand-light);
}

.spec-kit-features__card {
  --feature-divider-inset: 24px;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  box-shadow: none;
  overflow: hidden;
}

.spec-kit-features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.spec-kit-features__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 16px;
}

.spec-kit-features__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--feature-divider-inset);
  right: 0;
  bottom: var(--feature-divider-inset);
  width: 1px;
  background-color: var(--border-primary);
}

.spec-kit-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.spec-kit-features__icon svg,
.spec-kit-features__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.spec-kit-features__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.spec-kit-features__text {
  max-width: 168px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Visualize + Dashboard panels ────────────────────────────── */

.spec-kit-visuals {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-top: var(--home-section-gap-tight);
  padding-bottom: var(--home-section-gap-split);
  padding-inline: var(--layout-gutter);
}

.spec-kit-visuals__inner {
  max-width: var(--layout-content);
  margin-inline: auto;
}

.spec-kit-visuals__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.spec-kit-panel {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  height: 100%;
  padding: 24px 28px;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  box-shadow: none;
}

.spec-kit-panel--visualize {
  padding: 18px 22px;
  min-height: 0;
}

.spec-kit-panel--visualize .spec-kit-panel__split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1.38fr);
  gap: 8px 12px;
  align-items: center;
  min-height: 0;
}

.spec-kit-panel--visualize .spec-kit-panel__split > * {
  min-width: 0;
}

.spec-kit-panel__split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px 24px;
  align-items: center;
}

.spec-kit-panel__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spec-kit-panel__intro--visualize {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.spec-kit-panel__intro-head {
  flex-shrink: 0;
}

.spec-kit-panel__intro-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.spec-kit-panel--visualize .spec-kit-panel__title {
  margin-bottom: 8px;
}

.spec-kit-panel--visualize .spec-kit-panel__description {
  margin-bottom: 0;
}

.spec-kit-panel--visualize .spec-kit-panel__btn {
  margin-top: 0;
}

.spec-kit-panel__tree-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.spec-kit-panel__title {
  margin-bottom: 10px;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.spec-kit-panel__description {
  margin-bottom: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.spec-kit-panel__btn {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ai-cyan);
  background-color: transparent;
  border: 1px solid color-mix(in srgb, var(--ai-cyan) 45%, transparent);
  border-radius: var(--border-radius);
}

.spec-kit-panel__btn:hover,
.spec-kit-panel__btn:focus-visible {
  border-color: color-mix(in srgb, var(--ai-cyan) 65%, transparent);
  background-color: color-mix(in srgb, var(--ai-cyan) 8%, transparent);
}

.spec-kit-panel--dashboard .spec-kit-panel__intro {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.spec-kit-panel--dashboard .spec-kit-panel__btn {
  margin-top: 20px;
}

.spec-kit-panel--dashboard .spec-kit-metrics {
  flex: 1;
  align-content: start;
}

.spec-kit-tree-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1180 / 780;
  object-fit: contain;
  margin-inline: auto;
  flex-shrink: 0;
}

/* Metrics dashboard */

.spec-kit-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 0;
}

.spec-kit-metrics__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  background-color: color-mix(in srgb, var(--bg-secondary) 45%, transparent);
}

.spec-kit-metrics__label {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-muted);
}

.spec-kit-metrics__value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.spec-kit-metrics__bar {
  height: 4px;
  margin-top: 4px;
  border-radius: var(--border-radius);
  background-color: color-mix(in srgb, var(--text-muted) 22%, transparent);
  overflow: hidden;
}

.spec-kit-metrics__fill {
  height: 100%;
  border-radius: var(--border-radius);
}

.spec-kit-metrics__fill--cyan {
  background-color: var(--ai-cyan);
}

.spec-kit-metrics__fill--green {
  background-color: var(--governance-green);
}

.spec-kit-metrics__fill--purple {
  background-color: var(--brand-primary);
}

.spec-kit-metrics__fill--blue {
  background-color: var(--fabric-blue);
}

.spec-kit-metrics__fill[data-mc-bar] {
  width: 0%;
}

/* ── Logo strip ──────────────────────────────────────────────── */

.spec-kit-logos {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-top: var(--home-section-gap-tight);
  padding-bottom: var(--home-section-gap-tight);
  padding-inline: var(--layout-gutter);
}

.spec-kit-logos__inner {
  max-width: var(--layout-content);
  margin-inline: auto;
}

.spec-kit-logos__card {
  padding: 0;
  border: none;
  border-radius: var(--border-radius);
  background: transparent;
  box-shadow: none;
}

.spec-kit-logos__title {
  margin-bottom: 28px;
  font-size: var(--fs-base);
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
}

.spec-kit-logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-kit-logos__item {
  position: relative;
  flex-shrink: 0;
  padding: 0 24px;
}

.spec-kit-logos__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 28px;
  background-color: var(--border-primary);
  transform: translateY(-50%);
}

.spec-kit-logos__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.spec-kit-logos__mark {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.spec-kit-logos__mark--img {
  object-fit: contain;
  background: transparent;
}

.spec-kit-logos__mark--svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.spec-kit-logos__brand--ado {
  color: var(--fabric-blue-light);
}

.spec-kit-logos__brand--openai {
  color: var(--text-primary);
}

.spec-kit-logos__brand--github {
  color: var(--text-primary);
}

.spec-kit-logos__name {
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
}

.spec-kit-logos__name--azure {
  color: var(--fabric-blue-light);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .spec-kit-visuals__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spec-kit-panel,
  .spec-kit-panel--visualize {
    min-height: auto;
    height: auto;
  }

  .spec-kit-panel--visualize .spec-kit-panel__split {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
  }

  .spec-kit-panel__intro--visualize {
    align-items: center;
    text-align: center;
    align-self: auto;
    min-height: 0;
    gap: 16px;
  }

  .spec-kit-panel__intro-action {
    flex: 0 0 auto;
    margin-top: 0;
    justify-content: center;
    width: 100%;
  }

  .spec-kit-panel__tree-wrap {
    min-height: 0;
    padding: 0;
  }

  .spec-kit-tree-image {
    max-width: min(100%, 520px);
  }

  .spec-kit-panel--dashboard .spec-kit-panel__intro {
    align-items: center;
    text-align: center;
  }

  .spec-kit-panel--dashboard .spec-kit-panel__btn {
    align-self: center;
    margin-top: 16px;
  }
}

@media (max-width: 1024px) {
  .spec-kit-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: var(--home-hero-space-top) var(--layout-gutter) var(--home-section-gap-tight);
  }

  .spec-kit-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: none;
  }

  .spec-kit-hero__title,
  .spec-kit-hero__description {
    text-align: center;
  }

  .spec-kit-hero__title-line {
    margin-inline: auto;
    font-size: 1em;
  }

  .spec-kit-hero__badge {
    align-self: center;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
    white-space: normal;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    line-height: 1.4;
    padding: 8px 12px;
  }

  .spec-kit-hero__badge-text {
    white-space: normal;
    line-height: 1.4;
  }

  .spec-kit-hero__description {
    text-align: center;
    max-width: none;
    margin-inline: auto;
  }

  .spec-kit-hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .spec-kit-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .spec-kit-hero__visual {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  .spec-kit-hero__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 32px;
    padding: 28px 0 8px;
  }

  .spec-kit-pipeline__steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }

  .spec-kit-pipeline__connectors {
    display: none;
  }

  .spec-kit-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .spec-kit-features__item {
    border-right: none;
    border-bottom: none;
  }

  .spec-kit-features__item::after,
  .spec-kit-features__item::before {
    content: none;
  }

  .spec-kit-features__item:not(:nth-child(3n))::after {
    content: "";
    position: absolute;
    top: var(--feature-divider-inset);
    right: 0;
    bottom: var(--feature-divider-inset);
    width: 1px;
    background-color: var(--border-primary);
  }

  .spec-kit-features__item:nth-child(-n + 3)::before {
    content: "";
    position: absolute;
    left: var(--feature-divider-inset);
    right: var(--feature-divider-inset);
    bottom: 0;
    height: 1px;
    background-color: var(--border-primary);
  }

  .spec-kit-visuals__grid {
    grid-template-columns: 1fr;
  }

  .spec-kit-panel--visualize .spec-kit-panel__split,
  .spec-kit-panel__split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .spec-kit-panel__intro--visualize {
    align-self: auto;
    min-height: 0;
  }

  .spec-kit-panel__intro-action {
    flex: 0;
    margin-top: 0;
  }

  .spec-kit-tree-image {
    max-width: 100%;
  }

  .spec-kit-logos__item {
    padding: 0 18px;
  }

  .spec-kit-logos__item:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .spec-kit-hero__badge {
    padding: 6px 10px;
    margin-bottom: 20px;
    max-width: 100%;
    white-space: normal;
    font-size: var(--fs-mobile-badge);
    letter-spacing: 0.03em;
    line-height: 1.45;
  }

  .spec-kit-hero__badge-text {
    white-space: normal;
    line-height: 1.45;
  }

  .spec-kit-pipeline__steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .spec-kit-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-kit-features__item {
    border-right: none;
    border-bottom: none;
    padding: 24px 16px;
  }

  .spec-kit-features__item::after,
  .spec-kit-features__item::before {
    content: none;
  }

  .spec-kit-features__item:nth-child(odd):not(:last-child)::after {
    content: "";
    position: absolute;
    top: var(--feature-divider-inset);
    right: 0;
    bottom: var(--feature-divider-inset);
    width: 1px;
    background-color: var(--border-primary);
  }

  .spec-kit-features__item:not(:nth-last-child(-n + 2))::before {
    content: "";
    position: absolute;
    left: var(--feature-divider-inset);
    right: var(--feature-divider-inset);
    bottom: 0;
    height: 1px;
    background-color: var(--border-primary);
  }

  .spec-kit-features__item:last-child:nth-child(odd) {
    border-right: none;
    grid-column: 1 / -1;
  }

  .spec-kit-panel {
    padding: 22px 20px;
    min-height: auto;
  }

  .spec-kit-panel--visualize .spec-kit-panel__split,
  .spec-kit-panel__split {
    grid-template-columns: 1fr;
  }

  .spec-kit-panel__intro--visualize {
    align-items: center;
    text-align: center;
    min-height: 0;
  }

  .spec-kit-panel__intro-action {
    flex: 0 0 auto;
    margin-top: 16px;
    justify-content: center;
    width: 100%;
  }

  .spec-kit-panel__tree-wrap {
    min-height: 0;
  }

  .spec-kit-tree-image {
    max-width: 100%;
  }

  .spec-kit-metrics {
    grid-template-columns: 1fr;
  }

  .spec-kit-logos__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .spec-kit-logos__list::-webkit-scrollbar {
    display: none;
  }

  .spec-kit-logos__item:nth-child(3)::after {
    display: block;
  }
}

@media (max-width: 650px) {
  .spec-kit-panel {
    padding: 18px 14px;
  }

  .spec-kit-panel--visualize .spec-kit-panel__split {
    gap: 20px;
  }

  .spec-kit-panel__title {
    font-size: var(--fs-lg);
  }

  .spec-kit-panel__tree-wrap {
    min-height: 0;
    width: 100%;
  }

  .spec-kit-tree-image {
    max-width: 100%;
  }

  .spec-kit-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec-kit-metrics__item {
    padding: 14px 16px;
  }

  .spec-kit-metrics__value {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 480px) {
  .spec-kit-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .spec-kit-hero__actions .btn {
    width: 100%;
  }

  .spec-kit-hero__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-top: 28px;
    padding: 24px 0 4px;
  }

  .spec-kit-hero__highlight {
    padding-inline: 4px;
  }

  .spec-kit-hero__highlight-text {
    max-width: none;
  }

  .spec-kit-pipeline__steps {
    grid-template-columns: 1fr;
  }
}

/* CTA banner — spacing matches styles.css .cta-banner */
.cta-banner--spec-kit {
  padding: 40px var(--layout-gutter) 80px;
}

.cta-banner--spec-kit .cta-banner__inner {
  gap: 24px 32px;
  padding: 32px 40px;
}

.cta-banner--spec-kit .cta-banner__visual {
  width: 76px;
  height: 76px;
}

.cta-banner--spec-kit .cta-banner__icon {
  width: 100px;
  height: 100px;
}

.cta-banner--spec-kit .cta-banner__title {
  margin-bottom: 8px;
  font-size: var(--fs-card-title);
  line-height: 1.3;
}

.cta-banner--spec-kit .cta-banner__text {
  max-width: 520px;
  font-size: var(--fs-base);
  line-height: 1.55;
}

.cta-banner--spec-kit .cta-banner__actions {
  flex-wrap: nowrap;
  gap: 12px;
}

.cta-banner--spec-kit .cta-banner__actions .btn {
  min-height: 0;
  padding: 7px 15px;
  font-size: var(--fs-sm);
}

.cta-banner--spec-kit .cta-banner__actions .btn--primary {
  padding: 7px 17px;
  font-weight: 600;
}

.cta-banner--spec-kit .cta-banner__actions .btn--outline,
.cta-banner--spec-kit .cta-banner__actions .btn--hero-demo {
  padding: 7px 13px;
  font-weight: 500;
}

.cta-banner--spec-kit .cta-banner__actions .btn__icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1280px) {
  .cta-banner--spec-kit .cta-banner__actions .btn {
    padding: 7px 15px;
    font-size: var(--fs-sm);
  }

  .cta-banner--spec-kit .cta-banner__actions .btn--primary {
    padding: 7px 17px;
  }

  .cta-banner--spec-kit .cta-banner__actions .btn--outline,
  .cta-banner--spec-kit .cta-banner__actions .btn--hero-demo {
    padding: 7px 13px;
  }
}

@media (max-width: 1024px) {
  .cta-banner--spec-kit {
    padding: 32px var(--layout-gutter) 64px;
  }

  .cta-banner--spec-kit .cta-banner__inner {
    gap: 20px;
    padding: 28px 32px;
  }

  .cta-banner--spec-kit .cta-banner__visual {
    width: 96px;
    height: 96px;
  }

  .cta-banner--spec-kit .cta-banner__icon {
    width: 100px;
    height: 100px;
  }

  .cta-banner--spec-kit .cta-banner__actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cta-banner--spec-kit .cta-banner__visual {
    width: 96px;
    height: 96px;
    overflow: visible;
  }

  .cta-banner--spec-kit .cta-banner__icon {
    width: 96px;
    height: 96px;
  }

  .cta-banner--spec-kit .cta-banner__actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .cta-banner--spec-kit .cta-banner__actions .btn {
    width: auto;
    flex: 0 1 auto;
    padding: 6px 10px;
    font-size: var(--fs-caption);
  }
}

@media (max-width: 400px) {
  .cta-banner--spec-kit .cta-banner__actions .btn {
    padding: 6px 8px;
    font-size: var(--fs-micro);
  }

  .cta-banner--spec-kit .cta-banner__actions .btn__icon {
    width: 12px;
    height: 12px;
  }
}

/* Spec Kit page — 4px radius on shared bordered components */
.btn {
  border-radius: var(--border-radius);
}

.site-footer__social-link {
  border-radius: var(--border-radius);
}
