/* ==========================================================================
   Hephaestus Engine · site styles
   Dark theme, purple/blue accents, premium dev-tool aesthetic
   ========================================================================== */

:root {
  --bg-deep: #07080f;
  --bg-raised: #0c0e18;
  --bg-card: #111425;
  --bg-card-hover: #15192e;
  --border-subtle: rgba(120, 140, 200, 0.12);
  --border-strong: rgba(130, 110, 220, 0.35);
  --text: #e8eaf4;
  --text-muted: #9499b5;
  --text-dim: #6a7088;
  --accent: #7c5cff;
  --accent-bright: #9b85ff;
  --accent-cyan: #3dd6e0;
  --accent-blue: #4a7dff;
  --gradient-hero: linear-gradient(135deg, #5b3fd9 0%, #2d4fd9 45%, #1a6fd4 100%);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(100, 80, 220, 0.15);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Section rhythm: breathing room + hairline so hard cuts read as intentional */
  --section-pad-y: clamp(4.75rem, 9vw, 7.25rem);
  --section-divider: rgba(120, 140, 200, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s;
}

a:hover {
  color: #c4b5ff;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  background: rgba(80, 90, 140, 0.25);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ----- Background ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(100, 120, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 120, 200, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 75%);
}

/* ----- Layout ----- */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 92vw);
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__brand:hover {
  color: var(--text);
}

.nav__title {
  font-size: 1.125rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.nav__link--cta {
  padding: 0.45rem 1rem !important;
  background: rgba(100, 80, 220, 0.2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent-bright) !important;
}

.nav__link--cta:hover {
  background: rgba(120, 100, 240, 0.35);
  color: #fff !important;
}

.nav__link--cta.is-active::after {
  display: none;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(10, 12, 22, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    gap: 0;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__link:last-child {
    border-bottom: 0;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-glow), 0 4px 20px rgba(80, 60, 200, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 40px rgba(120, 100, 255, 0.35), 0 8px 28px rgba(40, 60, 180, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: rgba(120, 100, 220, 0.15);
  border-color: var(--border-strong);
  color: #fff;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: 3rem 0 5rem;
}

.hero__inner {
  max-width: 640px;
}

.hero__studio {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 1rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__title-main {
  color: var(--text-primary);
}

.hero__tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.hero__lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero__lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

/* ----- Sections ----- */
/* Hairline between stacked bands so color changes feel deliberate, not accidental */
main > .hero + .section,
main > .section + .section {
  border-top: 1px solid var(--section-divider);
}

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 0;
}

.section__header {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
  max-width: 720px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section__title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Value */
.section--value {
  background: linear-gradient(180deg, transparent, rgba(20, 24, 45, 0.35) 40%, transparent);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  padding: 1.5rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.value-card:hover {
  border-color: rgba(130, 110, 220, 0.4);
  transform: translateY(-3px);
}

.value-card--highlight {
  background: linear-gradient(145deg, rgba(40, 35, 80, 0.6), var(--bg-card));
  border-color: rgba(130, 110, 220, 0.35);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__icon i {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.value-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.value-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Features */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.5rem 1.65rem;
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.85;
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature__title {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.feature__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Architecture */
.section--architecture {
  background: rgba(12, 14, 28, 0.5);
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.arch-node--wide {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .arch-flow {
    grid-template-columns: 1fr;
  }

  .arch-node--wide {
    grid-column: 1;
  }
}

.arch-node {
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.arch-node__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--accent-bright);
}

.arch-node__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tech-card:hover {
  border-color: rgba(100, 140, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tech-card--muted {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
}

.tech-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-card__role {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.tech-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Core technologies — explicit base so the cut from architecture reads as a defined band */
.section--tech {
  background: var(--bg-deep);
  padding-top: calc(var(--section-pad-y) + clamp(0.75rem, 2vw, 1.5rem));
}

/* Split (rendering / editor) */
.section--split .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.split-block {
  padding: 2rem 2.25rem;
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.split-block--alt {
  background: linear-gradient(160deg, rgba(30, 40, 90, 0.35), var(--bg-card));
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 0.65rem;
}

.check-list strong {
  color: var(--text);
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* HephaestusUI band */
.section--hui {
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(80, 60, 180, 0.12), transparent 55%);
}

/* Strengths */
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pill {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill strong {
  color: var(--text);
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .use-grid {
    grid-template-columns: 1fr;
  }
}

.use-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.use-card--yes {
  background: linear-gradient(165deg, rgba(40, 90, 80, 0.2), var(--bg-card));
  border-color: rgba(80, 200, 180, 0.25);
}

.use-card--caution {
  background: linear-gradient(165deg, rgba(90, 60, 40, 0.2), var(--bg-card));
  border-color: rgba(220, 160, 100, 0.2);
}

.use-card__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.use-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.use-card li {
  margin-bottom: 0.5rem;
}

.use-card__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Limitations */
.section--limitations {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Roadmap */
.section--roadmap {
  padding-top: 0;
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-list li {
  padding: 1rem 1.2rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.98rem;
}

.roadmap-list strong {
  color: var(--text);
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  margin: 0;
}

.demo-article .showcase-card {
  margin-bottom: 1.5rem;
}

.showcase-card__frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.showcase-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card__img--contain {
  object-fit: cover !important;
}

.showcase-card__image-button {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.showcase-card__image-button:focus-visible {
  outline: 2px solid rgba(120, 170, 255, 0.9);
  outline-offset: -2px;
}

.showcase-card__frame--editor {
  background:
    linear-gradient(145deg, rgba(30, 35, 55, 0.9), rgba(15, 18, 35, 0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(100, 120, 200, 0.06) 20px, rgba(100, 120, 200, 0.06) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(100, 120, 200, 0.06) 20px, rgba(100, 120, 200, 0.06) 21px);
}

.showcase-card__frame--world {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(60, 100, 200, 0.45), transparent 55%),
    linear-gradient(180deg, #0a1020, #151a35);
}

.showcase-card__frame--render {
  background:
    conic-gradient(from 200deg at 50% 80%, rgba(120, 80, 220, 0.4), rgba(40, 140, 220, 0.35), rgba(80, 200, 180, 0.25), rgba(120, 80, 220, 0.4));
  opacity: 0.95;
}

.showcase-card__frame--demo {
  background:
    linear-gradient(135deg, rgba(25, 30, 50, 0.95), rgba(40, 35, 70, 0.9)),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.showcase-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.showcase-card__cap {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.showcase-card__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 16, 0.86);
  padding: 1.25rem;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__panel {
  position: relative;
  max-width: min(94vw, 1400px);
  max-height: 90vh;
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(9, 13, 26, 0.95);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(20, 26, 45, 0.98);
}

/* Tech demos (blog-style cards) */
.section--demos {
  border-top: 0;
  background: transparent;
}

.section--demos::before {
  content: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 800px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.demo-card:hover {
  border-color: rgba(130, 110, 220, 0.4);
  transform: translateY(-4px);
}

.demo-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-card__media:hover {
  color: inherit;
}

.demo-card__thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: transform 0.35s var(--ease-out);
}

.demo-card:hover .demo-card__thumb {
  transform: scale(1.03);
}

.demo-card__thumb--pbr {
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(100, 140, 255, 0.45), transparent 50%),
    conic-gradient(from 220deg at 60% 40%, rgba(120, 80, 220, 0.5), rgba(40, 160, 200, 0.35), rgba(80, 200, 160, 0.3), rgba(120, 80, 220, 0.5)),
    linear-gradient(180deg, #0a0e1c, #12182c);
}

.demo-card__thumb--lua {
  background:
    linear-gradient(135deg, rgba(25, 35, 55, 0.95) 0%, rgba(45, 40, 85, 0.9) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(61, 214, 224, 0.06) 14px, rgba(61, 214, 224, 0.06) 15px),
    repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(124, 92, 255, 0.05) 14px, rgba(124, 92, 255, 0.05) 15px);
}

.demo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.2rem 1.2rem;
  gap: 0.35rem;
}

.demo-card__meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.demo-card__meta time {
  color: var(--accent-cyan);
}

.demo-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.demo-card__title a {
  color: var(--text);
}

.demo-card__title a:hover {
  color: var(--accent-bright);
}

.demo-card__excerpt {
  margin: 0 0 0.25rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.demo-card__cta {
  align-self: flex-start;
  margin-top: 0;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

/* Demo detail pages */
.demo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.demo-page main {
  flex: 1;
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  margin-inline: auto;
  padding: 2rem 0 4rem;
}

.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.demo-back:hover {
  color: #c4b5ff;
}

.demo-article__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.5rem;
}

.demo-article__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.demo-article__lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.demo-article__body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.demo-article__body p {
  margin: 0 0 1rem;
}

.demo-article__body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.65rem;
}

.demo-article__body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.demo-article__body li {
  margin-bottom: 0.45rem;
}

/* Get started */
.section--get-started {
  background: linear-gradient(180deg, rgba(15, 18, 40, 0.6), transparent);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

.start-card {
  display: block;
  padding: 1.5rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: inherit;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.start-card:hover {
  border-color: rgba(130, 110, 220, 0.45);
  transform: translateY(-4px);
  color: inherit;
}

.start-card--static {
  cursor: default;
}

.start-card--static:hover {
  transform: none;
}

.start-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.start-card__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.start-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.start-card__hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Docs CTA */
.section--docs-cta {
  padding-block: 3rem;
}

.docs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(50, 40, 120, 0.35), rgba(20, 35, 80, 0.5));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.docs-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.docs-cta__text p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42ch;
}

.docs-cta__path {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.docs-cta__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Join team */
.section--join-team {
  padding-top: 1.5rem;
}

.join-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9rem 2.15rem;
  background: linear-gradient(135deg, rgba(40, 55, 140, 0.4), rgba(18, 28, 66, 0.5));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.join-team__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.join-team__text p {
  margin: 0;
  max-width: 46ch;
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .join-team {
    align-items: flex-start;
  }
}

/* About */
.about-panel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.about-panel__mark {
  flex-shrink: 0;
  border-radius: 14px;
}

.about-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.about-panel__text {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .about-panel {
    flex-direction: column;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
  background: rgba(5, 6, 12, 0.9);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.footer__by {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__nav a:hover {
  color: var(--accent-bright);
}

.footer__legal {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Reveal animation (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
