/* Cartridge marketing site
   Palette mirrors the plugin's design system (Theme.h):
   background  #141414, surface #222, surfaceHi #2E2E2E
   primary     #B82030 (cartridge red), hot #D43040, accent #D04828
   text        #D8D4D0 / #909090 / #606060
*/

:root {
  --bg:        #141414;
  --surface:   #222222;
  --surface-2: #2e2e2e;
  --surface-3: #383838;
  --outline:   #505050;
  --outline-dim: #404040;
  --primary:   #b82030;
  --primary-dim: #801828;
  --hot:       #d43040;
  --hot-bright: #e84050;
  --vrc6:      #d04828;
  --text-1:    #d8d4d0;
  --text-2:    #909090;
  --text-3:    #606060;
  --mono:      "JetBrains Mono", "Menlo", ui-monospace, monospace;
  --sans:      -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-1); text-decoration: none; }
a:hover { color: var(--hot-bright); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--vrc6);
}

/* ───────────── Top bar ───────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-logo {
  color: var(--hot);
  width: 26px;
  height: 15px;
  display: block;
  overflow: visible;
  animation: breathe 3.5s ease-in-out infinite;
}

/* SVG can't take text-shadow, so the glow is a drop-shadow filter */
@keyframes breathe {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 5px rgba(232,64,80,0.55)); }
  50%      { opacity: 1.0;  filter: drop-shadow(0 0 9px rgba(232,64,80,0.85)); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-logo { animation: none; opacity: 1; }
}

.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1rem;
  color: var(--text-1);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--vrc6);
  border: 1px solid var(--vrc6);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.brand-name.small { font-size: 0.85rem; }
.brand-tag.small  { color: var(--text-3); border: none; padding: 0; }

nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.2rem;
}

nav a:hover { color: var(--text-1); }

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--hot);
  transition: right 0.18s ease;
}

nav a:hover::after { right: 0; }

/* ───────────── Hero ───────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.accent {
  color: var(--hot);
  text-shadow: 0 0 30px rgba(216,48,64,0.35);
}

.lede {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36em;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cta.primary {
  background: var(--primary);
  color: var(--text-1);
  border-color: var(--hot);
  box-shadow: 0 0 0 0 rgba(216,48,64,0);
}

.cta.primary:hover {
  background: var(--hot);
  color: var(--text-1);
  box-shadow: 0 0 24px -4px rgba(216,48,64,0.6);
  transform: translateY(-1px);
}

.cta.primary.big {
  padding: 1.1rem 2.4rem;
  font-size: 0.95rem;
}

.cta.ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--outline);
}

.cta.ghost:hover {
  border-color: var(--text-1);
  background: var(--surface);
  color: var(--text-1);
}

.meta-row {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-row .dot { color: var(--outline); }

/* ───────────── Hero art / screenshot frames ───────────── */
.hero-art {
  position: relative;
}

.screenshot-frame {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 1rem;
  box-shadow:
    0 0 0 1px rgba(216,48,64,0.15),
    0 30px 60px -20px rgba(0,0,0,0.7);
  aspect-ratio: 940 / 720;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--outline);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}

.screenshot-placeholder small {
  font-size: 0.7rem;
  color: var(--text-3);
  opacity: 0.7;
}

/* Replace placeholder content with <img> for actual screenshots */
.screenshot-frame img,
.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ───────────── Features ───────────── */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features h2,
.screenshots h2 {
  font-family: var(--mono);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 1rem;
}

.features h2::after,
.screenshots h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--hot);
  box-shadow: 0 0 12px rgba(216,48,64,0.5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  padding: 1.6rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  border-color: var(--outline);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.4rem;
  color: var(--hot);
  margin-bottom: 0.8rem;
  font-family: var(--mono);
}

.card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--text-1);
}

.card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card strong { color: var(--text-1); font-weight: 600; }

/* ───────────── Screenshots gallery ───────────── */
.screenshots {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--outline-dim);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
}

.screenshot-grid figure {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  overflow: hidden;
}

.screenshot-grid .screenshot-placeholder {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--outline-dim);
}

.screenshot-grid figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-2);
  font-family: var(--sans);
}

/* ───────────── Buy section ───────────── */
.buy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
  border-top: 1px solid var(--outline-dim);
}

.buy-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}

.buy-card:first-child {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(216,48,64,0.18), 0 30px 60px -30px rgba(216,48,64,0.4);
}

.buy-card:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.price {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--hot);
}

.price-meta {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.includes {
  list-style: none;
  margin-bottom: 1.2rem;
}

.includes li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--outline-dim);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-1);
}

.includes li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--hot);
}

.includes li:last-child { border-bottom: none; }

.source-card h3 {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.source-card p {
  color: var(--text-2);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.source-card a:not(.cta) {
  color: var(--hot);
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-style: italic;
}

/* ───────────── Footer ───────────── */
footer {
  border-top: 1px solid var(--outline-dim);
  background: var(--surface);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

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

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  /* Hero keeps its copy-then-screenshot order; the 1.8rem gap is the same
     image/text spacing used by every stacked block below it. */
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 3rem 1.5rem 2rem;
  }
  .buy {
    grid-template-columns: 1fr;
  }
  .topbar { padding: 0.8rem 1.2rem; }
  nav { gap: 1rem; }
  .features, .screenshots { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  nav a { font-size: 0.72rem; }
  .price { font-size: 2.5rem; }
  .features h2, .screenshots h2 { font-size: 1.7rem; }
}

/* Trademark disclaimer — small print in the footer */
.tm-disclaimer {
  width: 100%;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 90ch;
}

/* ═══════════════ Audio players ═══════════════ */
.section-lede {
  color: var(--text-2);
  font-size: 1rem;
  margin: -1.5rem 0 2rem;
  max-width: 44em;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "play label time" "play bar bar";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.player:hover { border-color: var(--outline); background: var(--surface-2); }
.player.playing { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(216,48,64,0.25); }

.player-play {
  grid-area: play;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-1);
  font-size: 0.85rem;
  border: 1px solid var(--hot);
  transition: background 0.15s ease;
}
.player:hover .player-play { background: var(--hot); }

.player-label {
  grid-area: label;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.player-label strong { font-family: var(--mono); font-size: 0.9rem; color: var(--text-1); }
.player-label em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-time {
  grid-area: time;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.player-bar {
  grid-area: bar;
  height: 4px;
  background: var(--outline-dim);
  border-radius: 2px;
  overflow: hidden;
}
.player-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--hot));
  transition: width 0.1s linear;
}

/* Big hero player */
.hero-player {
  margin: 2rem 0;
  max-width: 34rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--outline);
}
.hero-player .player-play { width: 52px; height: 52px; font-size: 1rem; }
.hero-player .player-label strong { font-size: 1rem; }

.sound { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }

/* ═══════════════ Two engines ═══════════════ */
.engines { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }
.engines h2, .sound h2, .faq h2 {
  font-family: var(--mono);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 1rem;
}
.engines h2::after, .sound h2::after, .faq h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px; background: var(--hot); box-shadow: 0 0 12px rgba(216,48,64,0.5);
}
.engine-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.engine-card {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  overflow: hidden;
}
.engine-shot { border-bottom: 1px solid var(--outline-dim); background: var(--bg); }
.engine-shot img { width: 100%; display: block; aspect-ratio: 16 / 11; object-fit: cover; }
.engine-card h3 { font-family: var(--mono); font-size: 1.3rem; margin: 1.4rem 1.6rem 0.7rem; text-align: center; }
.engine-card p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; margin: 0 1.6rem 1.6rem; }

/* ═══════════════ Feature-wide (screenshot + copy) ═══════════════ */
.card.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.feature-shot { align-self: stretch; background: var(--bg); border-right: 1px solid var(--outline-dim); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.feature-copy { padding: 1.8rem 2rem; }
.card.feature-wide:hover { transform: none; }

/* ═══════════════ FAQ ═══════════════ */
.faq { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text-1);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  color: var(--hot); font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--outline-dim); }
.faq details p { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; padding: 1rem 1.3rem; margin: 0; }

/* ═══════════════ Buy extras ═══════════════ */
.buy-urgency {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--vrc6);
  margin: -0.6rem 0 1.4rem;
}
.made-by { margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-3); font-style: italic; line-height: 1.5; }

/* ═══════════════ Trademark disclaimer ═══════════════ */
.tm-disclaimer {
  width: 100%;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 90ch;
}

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 900px) {
  .engine-split { grid-template-columns: 1fr; }
  .card.feature-wide { grid-template-columns: 1fr; }
  .feature-shot { border-right: none; border-bottom: 1px solid var(--outline-dim); }
  .sound, .engines, .faq { padding: 3rem 1.5rem; }
  .engines h2, .sound h2, .faq h2 { font-size: 1.7rem; }
}

/* ═══════════════ Small-screen ═══════════════ */
/* Grid/flex tracks must be allowed to shrink below their content min-width
   (the classic 1fr / flex min-width:auto overflow bug). */
.player { grid-template-columns: auto minmax(0, 1fr) auto; }
img { max-width: 100%; }

@media (max-width: 720px) {
  .player-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  html, body { overflow-x: clip; }
  .topbar { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .topbar nav { gap: 0.9rem; flex-wrap: wrap; }

  /* Flex-column hero; min-width:0 lets items shrink and text wrap. */
  .hero { display: flex; flex-direction: column; padding: 2rem 1.1rem; }
  .hero-inner, .hero-art { min-width: 0; width: 100%; max-width: 100%; }
  .hero-inner > * { max-width: 100%; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.6rem); line-height: 1.12; overflow-wrap: anywhere; }
  .hero .lede { font-size: 0.98rem; }
  .screenshot-frame, .screenshot-frame img { max-width: 100%; min-width: 0; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .cta { text-align: center; }
  .player-label em { white-space: normal; }
}

/* ═══════════════ Glow-up: nav, showcase, balanced cards ═══════════════ */

/* Nav fix — anchored sections must clear the sticky top bar */
section[id] { scroll-margin-top: 84px; }

/* ── Sequencer showcase ── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.4rem;
  align-items: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--outline-dim);
  border-radius: 10px;
  padding: 2.4rem;
  margin-bottom: 2.4rem;
}
.showcase-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 0.9rem;
}
.showcase-copy h3 { font-family: var(--mono); font-size: 1.5rem; line-height: 1.2; margin-bottom: 1rem; }
.showcase-copy p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.4rem; }
.showcase-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
}
.showcase-points li {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-1);
  padding-left: 1.3rem;
  position: relative;
}
.showcase-points li::before { content: "▸"; position: absolute; left: 0; color: var(--hot); }
.showcase-shot {
  border: 1px solid var(--outline);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(216,48,64,0.12);
}
.showcase-shot img { display: block; width: 100%; }

/* ── Balanced feature grid ── */
.features .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.features .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--hot);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  background: rgba(184,32,48,0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.features .card:hover .card-badge { background: rgba(216,48,64,0.18); border-color: var(--hot); }
.features .card h3 { font-family: var(--mono); font-size: 1.2rem; margin-bottom: 0.6rem; }
.features .card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; margin: 0; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.8rem; }
  .showcase-shot { order: -1; }
  .features .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .features .grid { grid-template-columns: 1fr; }
  .showcase-points { grid-template-columns: 1fr; }
  .showcase-copy h3 { font-size: 1.3rem; }
}

/* ─── Beta agreement gate ───────────────────────────────────────────── */
.beta-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}
.beta-agree input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-links a {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ─── Launch-notification signup ────────────────────────────────────── */
.notify-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.2rem 0 0.4rem; }
/* Email + submit sit on one row so they read as a single signup control. */
.notify-row { display: flex; gap: 0.6rem; align-items: stretch; }
.notify-email {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--outline-dim, #444);
  background: var(--surface-hi, #1b1b1b);
  color: inherit;
}
.notify-email::placeholder { color: var(--text-3, #888); }
.notify-email:focus { outline: 2px solid var(--primary, #b82030); outline-offset: 1px; }
.notify-row button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.notify-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  color: var(--text-2, #a8a8a8);
}
.notify-consent input { margin-top: 0.15rem; flex: 0 0 auto; }
@media (max-width: 620px) {
  .notify-row { flex-direction: column; }
  .notify-row button { width: 100%; }
}

/* ═══════════════ Accent animations ═══════════════ */
/* All motion is gated on prefers-reduced-motion: no-preference. The reveal
   classes are added by JS (see index.html) and removed once the animation
   finishes, so hover transitions and static styles stay untouched. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal.in { opacity: 1; transform: none; }

  .reveal-group > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal-group.in > * { opacity: 1; transform: none; }
  .reveal-group.in > *:nth-child(2) { transition-delay: 0.06s; }
  .reveal-group.in > *:nth-child(3) { transition-delay: 0.12s; }
  .reveal-group.in > *:nth-child(4) { transition-delay: 0.18s; }
  .reveal-group.in > *:nth-child(5) { transition-delay: 0.24s; }
  .reveal-group.in > *:nth-child(6) { transition-delay: 0.30s; }

  /* Section underline draws in with the heading */
  h2.reveal::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
  }
  h2.reveal.in::after { transform: scaleX(1); }

  /* A playing clip pulses a soft glow */
  .player.playing .player-play { animation: play-pulse 1.4s ease-in-out infinite; }
  @keyframes play-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216, 48, 64, 0); }
    50%      { box-shadow: 0 0 0 5px rgba(216, 48, 64, 0.18); }
  }

  /* Hero accent breathes a gentle glow */
  .hero .accent { animation: accent-glow 4.5s ease-in-out infinite; }
  @keyframes accent-glow {
    0%, 100% { text-shadow: 0 0 30px rgba(216, 48, 64, 0.25); }
    50%      { text-shadow: 0 0 44px rgba(216, 48, 64, 0.50); }
  }
}
