/* Python GUI Frameworks — site design system */

:root {
  --ink: #0e1a17;
  --ink-soft: #243530;
  --muted: #5a6e67;
  --paper: #eef3f0;
  --paper-2: #e2ebe6;
  --surface: #f7faf8;
  --line: rgba(14, 26, 23, 0.1);
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --amber: #c2410c;
  --amber-soft: #fdba74;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(14, 26, 23, 0.08);
  --radius: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(194, 65, 12, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8f6 0%, var(--paper) 40%, #e8f0ec 100%);
  pointer-events: none;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 248, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

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

.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal) 0%, #115e59 100%);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: white;
}

.btn--primary:hover {
  background: var(--teal);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--accent {
  background: var(--teal);
  color: white;
}

.btn--accent:hover {
  background: #0d5f59;
  color: white;
}

/* —— Hero —— */
.hero {
  padding: 3.25rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: min(72vh, 620px);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  color: var(--ink);
  animation: rise 0.7s ease both;
}

.hero__brand em {
  font-style: normal;
  color: var(--teal);
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.5rem;
  animation: rise 0.7s ease 0.08s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rise 0.7s ease 0.14s both;
}

.hero__visual {
  position: relative;
  min-height: 240px;
  animation: rise 0.8s ease 0.12s both;
}

.hero-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.hero-window__bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.hero-window__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5d4ce;
  display: block;
}

.hero-window__bar i:nth-child(1) {
  background: #f87171;
}
.hero-window__bar i:nth-child(2) {
  background: #fbbf24;
}
.hero-window__bar i:nth-child(3) {
  background: #34d399;
}

.hero-window__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-window__body .kw {
  color: var(--teal);
}
.hero-window__body .str {
  color: var(--amber);
}

.hero-window--back {
  position: absolute;
  inset: 12% -4% auto 12%;
  opacity: 0.55;
  transform: rotate(3deg) scale(0.95);
  z-index: -1;
  animation: floaty 7s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(3deg) scale(0.95) translateY(0);
  }
  50% {
    transform: rotate(2deg) scale(0.95) translateY(-8px);
  }
}

/* —— Sections —— */
.section {
  padding: 2.5rem 0;
}

.section__head {
  margin-bottom: 1.25rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* —— Intent / filters —— */
.intent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.intent__btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.intent__btn:hover,
.intent__btn.is-active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  box-shadow: 0 4px 20px rgba(14, 26, 23, 0.04);
}

.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  outline: none;
  min-width: 0;
  color: var(--ink);
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar .btn {
  flex-shrink: 0;
}

/* —— Comparison table —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper-2);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table a {
  font-weight: 600;
  text-decoration: none;
}

.compare-table a:hover {
  text-decoration: underline;
}

/* —— Choose list —— */
.choose-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choose-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.choose-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.choose-list span.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.45rem;
}

/* —— Framework groups & cards —— */
.group {
  margin-bottom: 2.5rem;
}

.group__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.group__title .count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.group__desc {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fw-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.fw-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, var(--teal));
  opacity: 0.85;
}

.fw-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow);
  color: inherit;
}

.fw-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.fw-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  background: var(--card-accent, var(--teal));
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.fw-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fw-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.fw-card__best {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  flex: 1;
}

.fw-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.sponsored {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: transparent;
}

.fw-card.is-hidden,
.group.is-hidden {
  display: none !important;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.empty-state.is-visible {
  display: block;
}

/* —— FAQ —— */
.faq {
  max-width: 720px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

/* —— Detail pages —— */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.detail-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .detail-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.detail-hero__icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  background: var(--card-accent, var(--teal));
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.25);
}

.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.35rem;
  line-height: 1.05;
}

.detail-hero__tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 20px rgba(14, 26, 23, 0.03);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.panel li {
  margin-bottom: 0.35rem;
}

.panel pre,
pre.code {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: #d7ebe4;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
}

.related a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.preview-pane {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, #1a2e29, #0e1a17);
  margin-bottom: 1.15rem;
  position: relative;
  box-shadow: var(--shadow);
}

.demo {
  margin-bottom: 1.75rem;
}

.demo__head {
  margin-bottom: 0.75rem;
}

.demo__head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.demo__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-pane__chrome {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-pane__dots {
  display: flex;
  gap: 6px;
}

.preview-pane__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5d4ce;
  display: block;
}

.preview-pane__dots i:nth-child(1) {
  background: #f87171;
}
.preview-pane__dots i:nth-child(2) {
  background: #fbbf24;
}
.preview-pane__dots i:nth-child(3) {
  background: #34d399;
}

.preview-pane__title {
  font-size: 0.78rem;
  color: #b7c9c2;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-pane__ui {
  width: min(92%, 380px);
  margin: 1.15rem auto 1.35rem;
  background: #f4f7f5;
  border-radius: 10px;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 0.86rem;
}

.preview-pane__headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.preview-pane__widgets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-menubar,
.demo-toolbar,
.demo-headerbar {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}

.demo-headerbar {
  background: var(--card-accent, var(--teal));
  color: white;
  border-color: transparent;
}

.demo-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.demo-input {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  color: var(--muted);
}

.demo-btn {
  appearance: none;
  border: 0;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
}

.demo-btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.demo-slider {
  height: 8px;
  border-radius: 999px;
  background: #d5e0db;
  position: relative;
  margin: 0.35rem 0;
}

.demo-slider span {
  position: absolute;
  left: 55%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card-accent, var(--teal));
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.demo-fab {
  align-self: flex-end;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-accent, var(--teal));
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.demo-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: white;
  box-shadow: 0 4px 14px rgba(14, 26, 23, 0.06);
}

.demo-plot {
  height: 88px;
  border-radius: 8px;
  background: #0e1a17;
  color: var(--teal-bright);
  padding: 0.5rem;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.demo-plot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-stage {
  min-height: 88px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #d7ebe4;
  background:
    radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.35), transparent 45%),
    linear-gradient(145deg, #1a2e29, #0e1a17);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  padding: 0.75rem;
}

.demo-palette {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.demo-tree,
.demo-term {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #d7ebe4;
  background: #0e1a17;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
}

.demo-cursor {
  font-size: 1.4rem;
  color: var(--amber);
  animation: cursor-nudge 1.8s ease-in-out infinite;
  width: fit-content;
}

@keyframes cursor-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 6px);
  }
}

/* Variant accents */
.preview-pane--mobile .preview-pane__ui {
  width: min(72%, 280px);
  border-radius: 18px;
  min-height: 220px;
}

.preview-pane--terminal .preview-pane__ui {
  background: #0e1a17;
  color: #d7ebe4;
  font-family: var(--font-mono);
}

.preview-pane--terminal .preview-pane__headline {
  color: #d7ebe4;
}

.preview-pane--terminal .demo-term {
  background: transparent;
  padding: 0;
}

.preview-pane--web .preview-pane__ui {
  border-radius: 4px 4px 10px 10px;
}

.preview-pane--gpu .preview-pane__ui {
  background: #111c19;
  color: #d7ebe4;
}

.preview-pane--gpu .preview-pane__headline,
.preview-pane--gpu .demo-label {
  color: #d7ebe4;
}

.preview-pane--game .preview-pane__ui,
.preview-pane--media .preview-pane__ui {
  background: #121f1c;
  color: #d7ebe4;
}

.preview-pane--game .preview-pane__headline,
.preview-pane--media .preview-pane__headline,
.preview-pane--game .demo-label,
.preview-pane--media .demo-label {
  color: #d7ebe4;
}

.preview-pane--automation .demo-cursor {
  margin: 0.35rem 0;
}

.preview-pane--designer .demo-stage,
.preview-pane--designer .demo-palette {
  min-height: 72px;
}

/* —— Footer —— */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: #b7c9c2;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: #d7ebe4;
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  color: white;
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.site-footer h2 {
  font-size: 1.35rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.publisher {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 560px) {
  .brand__name span {
    display: none;
  }
  .nav-actions .btn--ghost {
    display: none;
  }
}

/* —— Forms —— */
.form-panel {
  max-width: 560px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--teal);
}

.form-status {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-status.is-ok {
  color: #047857;
}

.form-status[hidden] {
  display: none;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
