:root {
  --bg: #0b0f1a;
  --card: #151b2b;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --primary: #6642eb;
  --primary-hover: #5330d6;
  --accent: #22d3ee;
  --border: rgba(232, 236, 245, 0.12);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p {
  margin: 0 0 16px;
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
  color: var(--accent);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topnav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
}

.topnav-link:hover {
  color: var(--text);
  text-decoration: none;
}


.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.btn-play {
  font-size: 18px;
  padding: 12px 24px;
}

.btn-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
}

.bout-hero {
  padding: 16px 0 24px;
}

.bout-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bout-header h1 {
  margin-bottom: 0;
}

.bout-tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.bout-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.bout-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bout-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bout-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.bout-cover-scrim {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.bout-hint {
  font-size: 12px;
  color: var(--muted);
}

.bout-stage[data-gf-state="loading"] .bout-cover,
.bout-stage[data-gf-state="playing"] .bout-cover {
  display: none;
}

.bout-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card);
  padding: 24px;
  text-align: center;
}

.bout-stage[data-gf-state="loading"] .bout-loader {
  display: flex;
}

.ring-pulse {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRing 1.2s ease-in-out infinite;
}

.ring-bell {
  width: 16px;
  height: 16px;
  border-radius: var(--radius);
  background: var(--accent);
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.loader-title {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
}

.loader-sub {
  font-size: 14px;
  color: var(--muted);
}

.bout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bout-bar-left,
.bout-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

[data-gf-like][aria-pressed="true"],
[data-gf-like][data-gf-liked] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.count-pill {
  font-size: 12px;
  color: var(--muted);
}

[data-gf-like][aria-pressed="true"] .count-pill,
[data-gf-like][data-gf-liked] .count-pill {
  color: #ffffff;
}

.share-feedback {
  font-size: 14px;
  color: var(--accent);
}


.bout-strip-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-head {
  margin-bottom: 16px;
}

.strip-title {
  font-size: 18px;
  margin: 0;
}

.bout-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bout-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.bout-tile:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.bout-tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.bout-tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bout-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.bout-tile-title {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
}

.bout-tile-desc {
  font-size: 14px;
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
}

.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.overview-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.spec-list {
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-row dt {
  color: var(--muted);
  font-weight: 600;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
}

.step-track {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  padding: 24px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted);
}

.controls-wrap,
.table-card,
.prose-card {
  padding: 24px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

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


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

.bento-item {
  padding: 24px;
}

.bento-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.bento-item h3 {
  font-size: 22px;
}

.bento-item p {
  color: var(--muted);
}

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

.fix-box {
  padding: 24px;
}

.fix-box h3 {
  font-size: 18px;
}

.fix-box p {
  font-size: 14px;
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 16px 24px;
}

.faq-q {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.comment-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
}

[data-gf-comment-form][data-gf-replying] .reply-banner {
  display: flex;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 16px;
}

.field-textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-msg {
  font-size: 14px;
  color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-gf-comments]:not([data-gf-empty]) .comment-empty-hint {
  display: none;
}

[data-gf-comments][data-gf-off] {
  display: none;
}

.comment-empty-hint {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.comment-item {
  padding: 16px 24px;
}

.comment-item[data-gf-owner] {
  border-color: var(--accent);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}

.owner-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
}

.reply-target,
.comment-time {
  color: var(--muted);
  font-size: 12px;
}

.comment-body {
  color: var(--text);
  margin-bottom: 8px;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breadcrumb-bar {
  padding-top: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-header {
  margin-bottom: 24px;
}

.article-lead {
  font-size: 18px;
  color: var(--muted);
}

.prose h2 {
  margin-top: 32px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 24px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 0 0 16px;
  max-width: 70ch;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cta-banner {
  margin-top: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.footer-heading {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .section {
    padding: 48px 0;
  }
  .bout-strip,
  .overview-split,
  .step-track,
  .bento-grid,
  .fix-split,
  .comments-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .bout-cover-scrim {
    padding: 16px;
    width: 100%;
  }
  .btn-play,
  .bout-bar-right .btn-primary {
    width: 100%;
  }
  .bout-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bout-bar-left,
  .bout-bar-right {
    justify-content: space-between;
  }
}
