:root {
  color-scheme: dark;
  --ink: #050706;
  --ink-soft: #09100c;
  --panel: rgba(10, 17, 13, 0.9);
  --panel-solid: #0c130f;
  --ivory: #f4f0e5;
  --muted: #a9b4ab;
  --line: rgba(143, 255, 165, 0.18);
  --line-strong: rgba(143, 255, 165, 0.32);
  --green: #74ff91;
  --green-strong: #22e65d;
  --cyan: #6ce8ff;
  --red: #ff4d57;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 1.1rem;
  --max: 74rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 78% -8%, rgba(34, 230, 93, 0.17), transparent 30rem),
    radial-gradient(circle at -8% 42%, rgba(108, 232, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, #040605 0%, #08120d 48%, #040605 100%);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(116, 255, 145, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 255, 145, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.42));
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 0.55rem;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.code-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

main,
.status-bar,
.site-footer {
  position: relative;
  z-index: 1;
}

.code-rain span {
  position: absolute;
  top: -24rem;
  width: 0.8rem;
  color: var(--green);
  font: 500 0.66rem/1.12 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.25rem;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px rgba(116, 255, 145, 0.7);
  writing-mode: vertical-rl;
  animation: signal-fall linear infinite;
}

@keyframes signal-fall {
  to {
    transform: translateY(calc(100vh + 38rem));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(116, 255, 145, 0.12);
  background: rgba(4, 7, 5, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.8rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 0.38rem;
  color: var(--green);
  font: 600 0.62rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.16em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-menu a {
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  color: #c6cec7;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(116, 255, 145, 0.08);
  color: var(--ivory);
}

.nav-menu a:hover {
  transform: translateY(-1px);
}

.nav-menu .nav-cta {
  margin-left: 0.55rem;
  border: 1px solid rgba(116, 255, 145, 0.38);
  color: var(--green);
}

.menu-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(116, 255, 145, 0.06);
  color: var(--ivory);
  cursor: pointer;
}

.status-bar {
  border-bottom: 1px solid rgba(108, 232, 255, 0.16);
  background: rgba(10, 20, 15, 0.9);
  color: #cad5cc;
  font: 600 0.72rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.05em;
  text-align: center;
}

.status-bar p {
  width: min(calc(100% - 2rem), var(--max));
  margin: auto;
  padding: 0.55rem 0;
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(108, 232, 255, 0.85);
}

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

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.3rem 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 7.6rem);
  display: grid;
  align-items: center;
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(23rem, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.eyebrow,
.terminal-label {
  color: var(--green);
  font: 700 0.73rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  margin-right: 0.55rem;
  content: ">";
  color: var(--cyan);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-top: 1.1rem;
  font-size: clamp(3.3rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.accent-text {
  color: var(--green);
  text-shadow: 0 0 22px rgba(116, 255, 145, 0.18);
}

.lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: #c5cec6;
  font-size: clamp(1.08rem, 1.8vw, 1.33rem);
  line-height: 1.62;
}

.hero .lead {
  max-width: 36rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #a7ffb8 0%, #49e979 58%, #24d85e 100%);
  color: #031006;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 230, 93, 0.19);
}

.button-secondary {
  border-color: rgba(244, 240, 229, 0.2);
  background: linear-gradient(145deg, rgba(244, 240, 229, 0.1), rgba(244, 240, 229, 0.035));
  color: var(--ivory);
}

.button-cyan {
  border-color: rgba(108, 232, 255, 0.36);
  background: rgba(108, 232, 255, 0.08);
  color: var(--cyan);
}

.micro-note {
  margin-top: 1rem;
  color: #849087;
  font: 500 0.75rem/1.5 "Cascadia Code", Consolas, monospace;
}

.hero-console {
  position: relative;
  padding: 0.75rem;
  border: 1px solid rgba(116, 255, 145, 0.24);
  border-radius: 1.2rem;
  background: rgba(5, 10, 7, 0.76);
  box-shadow: var(--shadow), 0 0 80px rgba(34, 230, 93, 0.09);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.65rem 0.95rem;
  color: #8f9b92;
  font: 600 0.65rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.console-lights {
  display: flex;
  gap: 0.35rem;
}

.console-lights span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #334038;
}

.console-lights span:first-child {
  background: var(--red);
}

.console-lights span:nth-child(2) {
  background: var(--green);
}

.console-lights span:last-child {
  background: var(--cyan);
}

.image-matrix {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: 13.5rem 10.5rem;
  gap: 0.65rem;
}

.image-matrix figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #111914;
}

.image-matrix figure:first-child {
  grid-row: 1 / span 2;
}

.image-matrix img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.image-matrix figure:hover img {
  transform: scale(1.035);
}

.image-matrix figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.1rem 0.8rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  color: #e7ece7;
  font: 600 0.63rem/1.25 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.proof-item {
  padding: 1.25rem 1.6rem;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item strong {
  display: block;
  color: var(--green);
  font: 700 1.45rem/1.15 "Cascadia Code", Consolas, monospace;
}

.proof-item span {
  color: #a8b2aa;
  font-size: 0.83rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hosting-price-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.hosting-price-card {
  display: grid;
  align-content: space-between;
  min-height: 11rem;
}

.hosting-price {
  display: grid;
  gap: 0.3rem;
  margin: 1.5rem 0 0;
}

.hosting-price strong {
  color: var(--green);
  font: 800 clamp(1.35rem, 2.6vw, 2rem)/1.1 "Cascadia Code", Consolas, monospace;
}

.hosting-price span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hosting-price-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hosting-price-options p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(244, 240, 229, 0.09);
}

.hosting-price-options span {
  color: var(--muted);
  font-size: 0.75rem;
}

.hosting-price-options strong {
  color: var(--green);
  font: 800 0.9rem/1.2 "Cascadia Code", Consolas, monospace;
}

.pillar-card {
  min-height: 21rem;
}

.pillar-card .pillar-index {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 3rem;
  place-items: center;
  border: 1px solid rgba(116, 255, 145, 0.32);
  border-radius: 50%;
  color: var(--green);
  font: 700 0.72rem/1 "Cascadia Code", Consolas, monospace;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(108, 232, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  font: 700 0.62rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-chip::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
}

.status-chip-live {
  border-color: rgba(116, 255, 145, 0.3);
  color: var(--green);
}

.app-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.app-console {
  overflow: hidden;
  border: 1px solid rgba(116, 255, 145, 0.25);
  border-radius: 1.1rem;
  background: rgba(3, 8, 5, 0.88);
  box-shadow: var(--shadow), 0 0 75px rgba(34, 230, 93, 0.07);
}

.app-console-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: #86938a;
  font: 600 0.65rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-console-body {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.app-module {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(244, 240, 229, 0.08);
  border-radius: 0.7rem;
  background: rgba(244, 240, 229, 0.025);
}

.app-module-index {
  color: var(--green);
  font: 700 0.68rem/1 "Cascadia Code", Consolas, monospace;
}

.app-module strong {
  display: block;
  font-size: 0.9rem;
}

.app-module small {
  color: #7f8b83;
  font: 500 0.65rem/1.4 "Cascadia Code", Consolas, monospace;
}

.app-module-state {
  color: var(--cyan);
  font: 700 0.62rem/1 "Cascadia Code", Consolas, monospace;
  text-transform: uppercase;
}

.app-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-preview-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 24, 18, 0.96), rgba(7, 12, 9, 0.96));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.app-feature-image {
  height: clamp(24rem, 55vw, 38rem);
  margin: -1.35rem -1.35rem 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020404;
}

.app-feature-image img {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  object-fit: contain;
  object-position: center;
}

.service-path-grid .info-card {
  min-height: 15rem;
}

.app-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.app-preview-icon {
  display: grid;
  width: 4.35rem;
  height: 4.35rem;
  place-items: center;
  border: 1px solid rgba(244, 240, 229, 0.18);
  border-radius: 1rem;
  background: linear-gradient(145deg, #252a27, #050706 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.35);
  color: var(--green);
  font: 800 0.72rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: -0.05em;
}

.app-icon-lexicon {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(108, 232, 255, 0.48);
}

.app-icon-ghost {
  color: #e8f6ec;
  text-shadow: 0 0 14px rgba(232, 246, 236, 0.35);
}

.app-icon-image {
  overflow: hidden;
  padding: 0;
  background: #020404;
}

.app-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-speek {
  position: relative;
}

.app-icon-speek span {
  position: relative;
  display: block;
  width: 1.55rem;
  height: 0.36rem;
  border-radius: 0.22rem;
  background: #4f8dff;
  box-shadow: 0 0 10px rgba(79, 141, 255, 0.7);
  transform: rotate(-45deg);
}

.app-icon-speek span::after {
  position: absolute;
  right: -0.34rem;
  top: -0.16rem;
  width: 0;
  height: 0;
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.45rem solid #4f8dff;
  content: "";
}

.app-preview-status {
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(108, 232, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  font: 700 0.62rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-preview-card h3 {
  margin-top: 0;
}

.app-preview-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-preview-card ul {
  display: grid;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 1.3rem 0 0;
  color: #b9c4bb;
  list-style: none;
  font-size: 0.82rem;
}

.app-preview-card li::before {
  margin-right: 0.45rem;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.principle {
  padding: 1.25rem;
  border-top: 2px solid var(--green);
  background: rgba(116, 255, 145, 0.035);
}

.principle strong {
  display: block;
  margin-bottom: 0.45rem;
}

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

.product-card,
.info-card,
.step-card,
.license-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 24, 18, 0.96), rgba(7, 12, 9, 0.96));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.info-card:hover,
.license-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.product-card::after,
.info-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.product-image {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
  background: #0b100d;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease, filter 380ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.list-card .product-image {
  height: 20rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(108, 232, 255, 0.09), transparent 48%),
    #040806;
}

.list-card .product-image img {
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.38rem 0.52rem;
  border: 1px solid rgba(116, 255, 145, 0.4);
  border-radius: 999px;
  background: rgba(2, 8, 4, 0.88);
  color: var(--green);
  font: 700 0.62rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.product-body p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(116, 255, 145, 0.12);
}

.product-price span {
  color: #829087;
  font: 600 0.62rem/1.3 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-price strong {
  color: var(--green);
  font: 800 1.18rem/1 "Cascadia Code", Consolas, monospace;
}

.pricing-note {
  margin: -0.35rem 0 1.2rem;
  color: #849087;
  font: 500 0.72rem/1.5 "Cascadia Code", Consolas, monospace;
}

.release-note {
  max-width: 48rem;
  margin: -0.8rem 0 1.4rem;
  color: #9ca8a0;
  font-size: 0.8rem;
}

.planned-price {
  margin: 1rem 0 0 !important;
  color: var(--green) !important;
  font: 800 1.25rem/1.25 "Cascadia Code", Consolas, monospace;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.product-meta li {
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(244, 240, 229, 0.1);
  border-radius: 0.35rem;
  color: #aeb8b0;
  font: 600 0.65rem/1.2 "Cascadia Code", Consolas, monospace;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.3rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.text-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: step;
}

.step-card {
  min-height: 15rem;
  padding: 1.35rem;
  counter-increment: step;
}

.step-card::before {
  display: block;
  margin-bottom: 2.3rem;
  color: var(--green);
  content: "0" counter(step);
  font: 700 0.8rem/1 "Cascadia Code", Consolas, monospace;
}

.step-card p,
.info-card p,
.license-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid rgba(116, 255, 145, 0.28);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 100% 0, rgba(34, 230, 93, 0.15), transparent 30rem),
    linear-gradient(145deg, rgba(14, 24, 17, 0.98), rgba(5, 9, 6, 0.98));
  box-shadow: var(--shadow);
}

.signal-panel::before {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(116, 255, 145, 0.28);
  content: "010 / JSM / 101";
  font: 600 0.68rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.12em;
}

.signal-panel p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: #bbc6bd;
}

.page-hero {
  padding: 5rem 0 3.3rem;
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.breadcrumb {
  margin-bottom: 1.15rem;
  color: #849088;
  font: 600 0.7rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.filter-button {
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(244, 240, 229, 0.14);
  border-radius: 999px;
  background: rgba(244, 240, 229, 0.035);
  color: #c0cac2;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: rgba(116, 255, 145, 0.5);
  background: rgba(116, 255, 145, 0.1);
  color: var(--green);
}

.filter-status {
  margin: 0 0 1rem;
  color: #8e9a91;
  font: 600 0.72rem/1.4 "Cascadia Code", Consolas, monospace;
}

[hidden] {
  display: none !important;
}

.bundle-card {
  border-color: rgba(108, 232, 255, 0.25);
}

.bundle-card .product-badge {
  border-color: rgba(108, 232, 255, 0.44);
  color: var(--cyan);
}

.bundle-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 13.5rem;
}

.bundle-visual.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.bundle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col,
.contact-grid,
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.license-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.info-card ul,
.license-card ul,
.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.info-card li + li,
.license-card li + li,
.plain-list li + li {
  margin-top: 0.55rem;
}

.check-list,
.x-list {
  padding: 0 !important;
  list-style: none;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
  font: 800 1rem/1.5 "Cascadia Code", Consolas, monospace;
}

.x-list li::before {
  color: var(--red);
  content: "×";
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 0.65rem 0.65rem 0;
  background: rgba(108, 232, 255, 0.065);
  color: #c4d0c6;
}

.notice strong {
  color: var(--cyan);
}

.form-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.verify-panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(108, 232, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(9, 20, 17, 0.95), rgba(4, 9, 7, 0.92));
}

.verify-panel .section-heading {
  margin-bottom: 1.25rem;
}

.verify-row {
  display: flex;
  align-items: end;
  gap: 0.85rem;
}

.verify-row .field {
  flex: 1;
  margin-bottom: 0;
}

.verify-row .button {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.verify-row .button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.verify-challenge {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(108, 232, 255, 0.26);
  border-radius: 0.8rem;
  background: rgba(108, 232, 255, 0.05);
}

.verify-phrase {
  display: block;
  margin: 0.45rem 0 0.15rem;
  color: var(--green);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.verify-continue {
  margin: 1rem 0 0;
}

.form-help {
  margin: 0.8rem 0 0;
  color: #8d9b91;
  font-size: 0.8rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.85rem;
}

.field label {
  color: #c7d0c8;
  font-size: 0.82rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 229, 0.14);
  border-radius: 0.6rem;
  background: rgba(2, 6, 3, 0.7);
  color: var(--ivory);
  padding: 0.82rem 0.9rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #667069;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(108, 232, 255, 0.2);
  border-radius: 0.55rem;
  background: rgba(108, 232, 255, 0.05);
  color: var(--cyan);
  font: 600 0.75rem/1.5 "Cascadia Code", Consolas, monospace;
}

.checkout-layout,
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.checkout-product-card,
.checkout-options,
.quote-summary {
  min-width: 0;
}

.checkout-product-head {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  margin: 1rem 0 1.35rem;
}

.checkout-product-head img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.checkout-product-head h2,
.checkout-product-head p {
  overflow-wrap: anywhere;
}

.checkout-id,
.planned-price {
  color: var(--muted);
  font: 600 0.76rem/1.5 "Cascadia Code", Consolas, monospace;
}

.planned-price {
  color: var(--green);
}

.checkout-specs,
.quote-summary {
  display: grid;
  gap: 0.55rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(244, 240, 229, 0.09);
}

.summary-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-row strong {
  max-width: 65%;
  color: var(--ivory);
  font-size: 0.8rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.choice-list,
.choice-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  border: 0;
}

.choice-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(244, 240, 229, 0.025);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: rgba(108, 232, 255, 0.58);
  background: rgba(108, 232, 255, 0.07);
}

.choice-card span {
  display: grid;
  gap: 0.2rem;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.quote-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quote-form legend {
  margin-bottom: 1.2rem;
  color: var(--ivory);
  font-size: 1.35rem;
  font-weight: 800;
}

.quote-progress {
  margin-bottom: 1.4rem;
  color: var(--cyan);
  font: 700 0.68rem/1.3 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.checkout-options {
  position: sticky;
  top: 1rem;
}

.verify-status[data-state="success"] {
  border-color: rgba(116, 255, 145, 0.35);
  background: rgba(116, 255, 145, 0.08);
  color: var(--green);
}

.verify-status[data-state="error"] {
  border-color: rgba(255, 130, 102, 0.35);
  background: rgba(255, 130, 102, 0.08);
  color: #ffb5a3;
}

.verify-status[data-state="pending"] {
  border-color: rgba(245, 214, 113, 0.35);
  background: rgba(245, 214, 113, 0.08);
  color: #f5d671;
}

.checkout-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.checkout-rail div {
  padding: 1rem;
  border-left: 1px solid var(--line);
}

.checkout-rail div:first-child {
  border-left: 0;
}

.checkout-rail strong {
  display: block;
  color: var(--green);
  font: 700 0.73rem/1.2 "Cascadia Code", Consolas, monospace;
  text-transform: uppercase;
}

.checkout-rail span {
  color: var(--muted);
  font-size: 0.83rem;
}

dialog.sample-dialog {
  width: min(92vw, 65rem);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 255, 145, 0.35);
  border-radius: 1rem;
  background: #050806;
  color: var(--ivory);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.75);
}

dialog.sample-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.dialog-head strong {
  font: 700 0.78rem/1.3 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-close {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(244, 240, 229, 0.16);
  border-radius: 50%;
  background: rgba(244, 240, 229, 0.05);
  color: var(--ivory);
  cursor: pointer;
}

.dialog-media {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  max-height: calc(90vh - 4.4rem);
  place-items: center;
  overflow: auto;
  background: #020402;
}

.dialog-media > img {
  width: 100%;
  min-height: 0;
  max-height: calc(90vh - 12rem);
  object-fit: contain;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr));
  gap: 0.55rem;
  width: 100%;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 4, 0.96);
}

.dialog-gallery:empty {
  display: none;
}

.dialog-thumb {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 229, 0.18);
  border-radius: 0.45rem;
  background: #050806;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.dialog-thumb:hover,
.dialog-thumb:focus-visible,
.dialog-thumb[aria-current="true"] {
  border-color: var(--green);
  opacity: 1;
  transform: translateY(-1px);
}

.dialog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1.14fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.demo-copy { align-self: center; }

.demo-copy h2 {
  max-width: 15ch;
  margin: 0.55rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 0.98;
}

.demo-copy > p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.demo-points {
  display: grid;
  gap: 0.62rem;
  margin: 1.45rem 0;
  padding: 0;
  list-style: none;
}

.demo-points li::before {
  margin-right: 0.6rem;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(91, 236, 214, 0.22);
  border-radius: 999px;
  background: rgba(30, 241, 159, 0.065);
  color: var(--green);
  font: 700 0.72rem/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-device-shell { min-width: 0; }

.demo-device {
  position: relative;
  width: min(100%, 31rem);
  margin-inline: auto;
  padding: 1.1rem 1.05rem 2.2rem;
  border: 2px solid rgba(108, 232, 255, 0.46);
  border-radius: 3.65rem;
  background: linear-gradient(145deg, #111715, #020403 72%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.66), 0 0 70px rgba(54, 236, 214, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.demo-speaker {
  position: absolute;
  z-index: 6;
  top: 1.55rem;
  left: 50%;
  width: 7.8rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.demo-screen {
  position: relative;
  aspect-ratio: 2336 / 3350;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2.72rem;
  background: #020202;
  isolation: isolate;
}

.demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transition: opacity 620ms ease, transform 1650ms cubic-bezier(0.2, 0.84, 0.2, 1), filter 620ms ease;
  -webkit-user-drag: none;
}

.demo-frame-reveal { opacity: 0; }
.demo-device-shell[data-state="changing"] .demo-frame-default { filter: brightness(0.62); }

.demo-device-shell[data-state="reveal"] .demo-frame-default,
.demo-device-shell[data-state="pinch"] .demo-frame-default,
.demo-device-shell[data-state="zoom"] .demo-frame-default,
.demo-device-shell[data-state="flash"] .demo-frame-default,
.demo-device-shell[data-state="complete"] .demo-frame-default { opacity: 0; }

.demo-device-shell[data-state="reveal"] .demo-frame-reveal,
.demo-device-shell[data-state="pinch"] .demo-frame-reveal,
.demo-device-shell[data-state="zoom"] .demo-frame-reveal,
.demo-device-shell[data-state="flash"] .demo-frame-reveal,
.demo-device-shell[data-state="complete"] .demo-frame-reveal { opacity: 1; }

.demo-device-shell[data-state="zoom"] .demo-frame,
.demo-device-shell[data-state="flash"] .demo-frame,
.demo-device-shell[data-state="complete"] .demo-frame { transform: scale(5.8) translateY(4.5%); }

.demo-caption {
  position: absolute;
  z-index: 5;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.82rem;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
  transition: opacity 280ms ease;
}

.demo-caption small {
  color: var(--green);
  font: 700 0.56rem/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
}

.demo-device-shell[data-state="zoom"] .demo-caption,
.demo-device-shell[data-state="flash"] .demo-caption,
.demo-device-shell[data-state="complete"] .demo-caption { opacity: 0; }

.demo-touch {
  position: absolute;
  z-index: 7;
  top: 44%;
  left: 50%;
  width: 2.55rem;
  height: 2.55rem;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(108, 232, 255, 0.18);
  box-shadow: 0 0 0 0.42rem rgba(108, 232, 255, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease, transform 820ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.demo-device-shell[data-state="pinch"] .demo-touch { opacity: 1; }
.demo-device-shell[data-state="pinch"] .demo-touch-left { transform: translate(-185%, -50%); }
.demo-device-shell[data-state="pinch"] .demo-touch-right { transform: translate(85%, -50%); }

.mirror-symbol-flash {
  position: absolute;
  z-index: 9;
  top: 39.5%;
  width: 3rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 7%, rgba(108, 232, 255, 0.42) 20%, rgba(108, 232, 255, 0.06) 54%, transparent 70%);
  box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.95), 0 0 1.5rem rgba(108, 232, 255, 0.95), 0 0 3.2rem rgba(108, 232, 255, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.38);
}

.mirror-symbol-flash-ace { left: 28%; }
.mirror-symbol-flash-spade { left: 77%; }

.demo-device-shell[data-state="flash"] .mirror-symbol-flash {
  animation: mirror-symbol-pulse 920ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.demo-device-shell[data-state="flash"] .mirror-symbol-flash-spade { animation-delay: 90ms; }

@keyframes mirror-symbol-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  58% { opacity: 0.86; transform: translate(-50%, -50%) scale(0.78); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.42); }
}

.demo-home {
  width: 7rem;
  height: 0.48rem;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.demo-actions .button[hidden] { display: none; }

.demo-disclaimer {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: #8e9991;
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
}

.coin-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transition: opacity 1050ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 900ms ease, transform 1100ms ease;
  -webkit-user-drag: none;
}

.coin-demo-frame-vanished { opacity: 0; }

.coin-demo-message {
  position: absolute;
  z-index: 8;
  top: 12%;
  right: 8%;
  left: 8%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(91, 236, 214, 0.34);
  border-radius: 0.92rem;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.42), 0 0 24px rgba(39, 238, 190, 0.08);
  color: #fff;
  font-size: clamp(0.77rem, 2.1vw, 0.96rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: border-color 360ms ease, color 360ms ease, transform 360ms ease;
  backdrop-filter: blur(9px);
}

.coin-choice,
.coin-burst {
  position: absolute;
  z-index: 7;
  top: 49.2%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.68);
}

.coin-choice {
  border: 3px solid rgba(91, 236, 214, 0.92);
  box-shadow: 0 0 0 0.38rem rgba(91, 236, 214, 0.12), 0 0 2.2rem rgba(91, 236, 214, 0.66);
  transition: opacity 330ms ease, transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.coin-burst {
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 2.8rem rgba(91, 236, 214, 0.9), inset 0 0 2rem rgba(91, 236, 214, 0.4);
  transition: opacity 620ms ease, transform 920ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.coin-choice-nickel,
.coin-burst-nickel { left: 35.4%; }

.coin-choice-quarter,
.coin-burst-quarter { left: 82%; width: 25%; }

.coin-demo-shell[data-state="chosen"] .coin-choice {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.coin-demo-shell[data-state="vanish"] .coin-choice { opacity: 0; }

.coin-demo-shell[data-state="vanish"] .coin-burst {
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(1.5);
}

.coin-demo-shell[data-state="vanish"] .coin-demo-frame-all,
.coin-demo-shell[data-state="complete"] .coin-demo-frame-all {
  opacity: 0;
  filter: brightness(1.28) blur(2px);
  transform: scale(1.012);
}

.coin-demo-shell[data-state="vanish"] .coin-demo-frame-vanished,
.coin-demo-shell[data-state="complete"] .coin-demo-frame-vanished { opacity: 1; }

.coin-demo-shell[data-state="chosen"] .coin-demo-message {
  border-color: rgba(91, 236, 214, 0.72);
  color: var(--green);
  transform: translateY(-2px);
}

.coin-demo-shell[data-state="complete"] .coin-demo-message {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.poppet-style-switch {
  display: inline-flex;
  gap: 0.4rem;
  margin: 0.3rem 0 0.8rem;
  padding: 0.3rem;
  border: 1px solid rgba(91, 236, 214, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
}

.poppet-style-switch button {
  padding: 0.58rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9aa69e;
  font: 750 0.7rem/1.2 "Cascadia Code", Consolas, monospace;
  cursor: pointer;
}

.poppet-style-switch button[aria-pressed="true"] {
  background: rgba(30, 241, 159, 0.13);
  box-shadow: inset 0 0 0 1px rgba(91, 236, 214, 0.28);
  color: var(--green);
}

.poppet-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 780ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 620ms ease, transform 980ms ease;
  -webkit-user-drag: none;
}

.poppet-demo-shell[data-style="black"] .poppet-black-neutral,
.poppet-demo-shell[data-style="straw"] .poppet-straw-neutral,
.poppet-demo-shell[data-style="ventriloquist"] .poppet-ventriloquist-neutral,
.poppet-demo-shell[data-style="cute"] .poppet-cute-neutral { opacity: 1; }

.poppet-demo-shell[data-state="touch"] .poppet-participant { opacity: 1; }
.poppet-demo-shell[data-state="touch"] .poppet-black-neutral,
.poppet-demo-shell[data-state="touch"] .poppet-straw-neutral,
.poppet-demo-shell[data-state="touch"] .poppet-ventriloquist-neutral,
.poppet-demo-shell[data-state="touch"] .poppet-cute-neutral { opacity: 0; }

.poppet-demo-shell[data-state="marked"][data-style="black"] .poppet-black-neutral,
.poppet-demo-shell[data-state="complete"][data-style="black"] .poppet-black-neutral,
.poppet-demo-shell[data-state="marked"][data-style="straw"] .poppet-straw-neutral,
.poppet-demo-shell[data-state="complete"][data-style="straw"] .poppet-straw-neutral,
.poppet-demo-shell[data-state="marked"][data-style="ventriloquist"] .poppet-ventriloquist-neutral,
.poppet-demo-shell[data-state="complete"][data-style="ventriloquist"] .poppet-ventriloquist-neutral,
.poppet-demo-shell[data-state="marked"][data-style="cute"] .poppet-cute-neutral,
.poppet-demo-shell[data-state="complete"][data-style="cute"] .poppet-cute-neutral { opacity: 0; }

.poppet-demo-shell[data-state="marked"][data-style="black"] .poppet-black-marked,
.poppet-demo-shell[data-state="complete"][data-style="black"] .poppet-black-marked,
.poppet-demo-shell[data-state="marked"][data-style="straw"] .poppet-straw-marked,
.poppet-demo-shell[data-state="complete"][data-style="straw"] .poppet-straw-marked,
.poppet-demo-shell[data-state="marked"][data-style="ventriloquist"] .poppet-ventriloquist-marked,
.poppet-demo-shell[data-state="complete"][data-style="ventriloquist"] .poppet-ventriloquist-marked,
.poppet-demo-shell[data-state="marked"][data-style="cute"] .poppet-cute-marked,
.poppet-demo-shell[data-state="complete"][data-style="cute"] .poppet-cute-marked { opacity: 1; }

.poppet-demo-message {
  position: absolute;
  z-index: 8;
  top: 9%;
  right: 7%;
  left: 7%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(91, 236, 214, 0.32);
  border-radius: 0.92rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: clamp(0.76rem, 2.1vw, 0.96rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  backdrop-filter: blur(9px);
}

.poppet-reveal-pulse {
  position: absolute;
  z-index: 7;
  top: 49%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 77, 77, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 2.8rem rgba(255, 36, 36, 0.75), inset 0 0 1.8rem rgba(255, 40, 40, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 640ms ease, transform 900ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.poppet-demo-shell[data-state="marked"] .poppet-reveal-pulse {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.22);
}

@media (max-width: 540px) {
  .poppet-style-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 1rem;
  }

  .poppet-style-switch button { width: 100%; }
}

.color-demo-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1rem;
}

.color-demo-switch[hidden] { display: none; }

.color-demo-switch button {
  padding: 0.62rem 0.82rem;
  border: 1px solid rgba(91, 236, 214, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #9aa69e;
  font: 750 0.7rem/1.2 "Cascadia Code", Consolas, monospace;
  cursor: pointer;
}

.color-demo-switch button[aria-pressed="true"] {
  border-color: rgba(91, 236, 214, 0.52);
  background: rgba(30, 241, 159, 0.13);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(91, 236, 214, 0.18), 0 0 1.5rem rgba(30, 241, 159, 0.08);
}

.color-demo-shell {
  max-width: 66rem;
  margin: 0 auto;
}

.color-demo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(91, 236, 214, 0.2);
  border-radius: 1.35rem;
  background: #020405;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), 0 0 3.6rem rgba(30, 241, 159, 0.05);
  isolation: isolate;
}

.color-demo-phone-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.color-demo-phone-stage-portrait { opacity: 0; }
.color-demo-shell[data-orientation="portrait"] .color-demo-phone-stage:not(.color-demo-phone-stage-portrait) { opacity: 0; }
.color-demo-shell[data-orientation="portrait"] .color-demo-phone-stage-portrait { opacity: 1; }

.color-demo-phone-screen {
  position: absolute;
  z-index: 2;
  top: 31.99%;
  left: 28.71%;
  width: 43.3%;
  height: 35.6%;
  overflow: hidden;
  border-radius: 4.4% / 9.5%;
  background: #050706;
  clip-path: inset(0 round 1.15rem);
}

.color-demo-phone-screen-portrait {
  top: 7.87%;
  left: 38.52%;
  width: 21.59%;
  height: 81.5%;
  border-radius: 8% / 3.8%;
  clip-path: inset(0 round 1.35rem);
  opacity: 0;
}

.color-demo-shell[data-orientation="portrait"] .color-demo-phone-screen:not(.color-demo-phone-screen-portrait) { opacity: 0; }
.color-demo-shell[data-orientation="portrait"] .color-demo-phone-screen-portrait { opacity: 1; }

.color-demo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050706;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 560ms ease, transform 1850ms cubic-bezier(0.2, 0.82, 0.2, 1), filter 560ms ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.color-demo-shell[data-frame="1"] .color-demo-frame-1,
.color-demo-shell[data-frame="2"] .color-demo-frame-2,
.color-demo-shell[data-frame="3"] .color-demo-frame-3,
.color-demo-shell[data-frame="4"] .color-demo-frame-4 { opacity: 1; }

.color-demo-shell[data-state="idle"] .color-demo-image,
.color-demo-shell[data-state="choice"] .color-demo-image,
.color-demo-shell[data-state="closeup"] .color-demo-image {
  transform: scale(5.3) translate(0.6%, -4%);
  filter: saturate(0.72) brightness(0.88);
}

/* LOVE begins on the upper reflection only, keeping every letter hidden until
   the prediction pulls back. The fixed origin preserves a genuine zoom-out. */
.color-demo-shell[data-product="love-ladder"] .color-demo-image {
  transform-origin: 50% 15%;
}

.color-demo-shell[data-product="love-ladder"][data-state="idle"] .color-demo-image,
.color-demo-shell[data-product="love-ladder"][data-state="choice"] .color-demo-image,
.color-demo-shell[data-product="love-ladder"][data-state="closeup"] .color-demo-image {
  transform: scale(5.6);
}

/* FEAR Duality begins in the upper scenery, above all four characters. */
.color-demo-shell[data-product="fear-duality"] .color-demo-image {
  transform-origin: 50% 13%;
}

.color-demo-shell[data-product="fear-duality"][data-state="idle"] .color-demo-image,
.color-demo-shell[data-product="fear-duality"][data-state="choice"] .color-demo-image,
.color-demo-shell[data-product="fear-duality"][data-state="closeup"] .color-demo-image {
  transform: scale(5.8);
}

/* Poems work in plain sight: the spectator reads the complete image while the
   quiet four-color word remains available for the later observation. */
.color-demo-shell[data-poem="true"][data-state="idle"] .color-demo-image,
.color-demo-shell[data-poem="true"][data-state="choice"] .color-demo-image,
.color-demo-shell[data-poem="true"][data-state="closeup"] .color-demo-image,
.color-demo-shell[data-poem="true"][data-state="match"] .color-demo-image,
.color-demo-shell[data-poem="true"][data-state="album"] .color-demo-image,
.color-demo-shell[data-poem="true"][data-state="complete"] .color-demo-image {
  transform: scale(1.03);
  filter: none;
}

.color-demo-shell[data-state="match"] .color-demo-image,
.color-demo-shell[data-state="album"] .color-demo-image,
.color-demo-shell[data-state="complete"] .color-demo-image {
  transform: scale(1.03);
  filter: none;
}

.color-demo-choice-card {
  position: absolute;
  z-index: 8;
  top: 14%;
  right: 5%;
  display: grid;
  gap: 0.45rem;
  width: min(17rem, 30%);
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.9rem;
  background: rgba(4, 7, 6, 0.84);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.44);
  opacity: 0;
  transform: translateY(-0.55rem) scale(0.96);
  transition: opacity 360ms ease, transform 560ms cubic-bezier(0.2, 0.86, 0.2, 1);
  backdrop-filter: blur(10px);
}

.color-demo-choice-card > span {
  color: rgba(255, 255, 255, 0.72);
  font: 800 clamp(0.48rem, 1.05vw, 0.7rem)/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
}

.color-demo-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.color-demo-swatches i { display: block; aspect-ratio: 1.9; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.24); }
.swatch-red { background: #ef3d37; }
.swatch-green { background: #29d86c; }
.swatch-blue { background: #3187ed; }
.swatch-yellow { background: #ffd438; }

.color-demo-shell[data-state="choice"] .color-demo-choice-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.color-demo-coloring-sheet {
  position: absolute;
  z-index: 8;
  top: 8%;
  right: 5%;
  width: min(18rem, 31%);
  overflow: hidden;
  border: 0.4rem solid rgba(255, 255, 255, 0.92);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: rotate(2.5deg) translateY(-0.6rem) scale(0.94);
  transition: opacity 360ms ease, transform 650ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.color-demo-coloring-sheet img { display: block; width: 100%; height: auto; }

.color-demo-coloring-sheet > span {
  position: absolute;
  right: 0.4rem;
  bottom: 0.35rem;
  left: 0.4rem;
  padding: 0.36rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font: 800 clamp(0.42rem, 0.88vw, 0.62rem)/1.2 "Cascadia Code", Consolas, monospace;
  text-align: center;
}

.color-demo-pencil-strokes { position: absolute; inset: 12% 10% 24%; pointer-events: none; }
.color-demo-pencil-strokes i { position: absolute; display: block; width: 44%; height: 0.48rem; border-radius: 999px; opacity: 0.78; transform: rotate(-7deg) scaleX(0); transform-origin: left center; }
.color-demo-pencil-strokes i:nth-child(1) { top: 16%; left: 7%; background: #ef3d37; }
.color-demo-pencil-strokes i:nth-child(2) { top: 36%; left: 46%; background: #29d86c; animation-delay: 180ms; }
.color-demo-pencil-strokes i:nth-child(3) { top: 60%; left: 8%; background: #3187ed; animation-delay: 360ms; }
.color-demo-pencil-strokes i:nth-child(4) { top: 78%; left: 48%; background: #ffd438; animation-delay: 540ms; }

.color-demo-shell[data-coloring="true"][data-state="choice"] .color-demo-choice-card { opacity: 0; }
.color-demo-shell[data-coloring="true"][data-state="choice"] .color-demo-coloring-sheet { opacity: 1; transform: rotate(2.5deg) translateY(0) scale(1); }
.color-demo-shell[data-coloring="true"][data-state="choice"] .color-demo-pencil-strokes i { animation: color-demo-draw 1.15s ease forwards; }

@keyframes color-demo-draw { to { transform: rotate(-7deg) scaleX(1); } }

.color-demo-message {
  position: absolute;
  z-index: 9;
  right: 7%;
  bottom: 7%;
  left: 7%;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(91, 236, 214, 0.34);
  border-radius: 0.92rem;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font-size: clamp(0.74rem, 1.85vw, 1.05rem);
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  transition: border-color 360ms ease, color 360ms ease, transform 360ms ease;
  backdrop-filter: blur(10px);
}

.color-demo-shell[data-state="match"] .color-demo-message,
.color-demo-shell[data-state="complete"] .color-demo-message {
  border-color: rgba(91, 236, 214, 0.72);
  color: var(--green);
  transform: translateY(-2px);
}

.demo-corner-badge {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.78);
  font: 800 clamp(0.45rem, 0.9vw, 0.62rem)/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.05em;
}

@media (max-width: 680px) {
  .color-demo-stage { border-radius: 0.9rem; }
  .color-demo-phone-screen { clip-path: inset(0 round 0.56rem); }
  .color-demo-choice-card { top: 10%; right: 3%; width: 36%; padding: 0.48rem; }
  .color-demo-message { right: 3%; bottom: 4%; left: 3%; padding: 0.5rem; }
  .demo-corner-badge { top: 0.45rem; left: 0.45rem; padding: 0.3rem 0.42rem; }
}

.puzzle-demo-heading {
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.puzzle-demo-heading h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.puzzle-demo-heading p {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.puzzle-control-stack {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.puzzle-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
}

.puzzle-switch button {
  padding: 0.62rem 0.82rem;
  border: 1px solid rgba(91, 236, 214, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #9aa69e;
  font: 750 0.68rem/1.2 "Cascadia Code", Consolas, monospace;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease, color 170ms ease, transform 170ms ease;
}

.puzzle-switch button:hover,
.puzzle-switch button:focus-visible { transform: translateY(-1px); }

.puzzle-switch button[aria-pressed="true"] {
  border-color: rgba(91, 236, 214, 0.58);
  background: rgba(30, 241, 159, 0.14);
  box-shadow: inset 0 0 0 1px rgba(91, 236, 214, 0.15), 0 0 1.4rem rgba(30, 241, 159, 0.08);
  color: var(--green);
}

.puzzle-theme-switch button {
  padding: 0.48rem 0.68rem;
  font-size: 0.61rem;
}

.word-search-demo-stage,
.tic-tac-toe-demo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 70rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(91, 236, 214, 0.22);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 52% 42%, rgba(22, 174, 146, 0.12), transparent 38%),
    linear-gradient(145deg, #08100d, #020403 72%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 4rem rgba(30, 241, 159, 0.055);
  isolation: isolate;
}

.word-search-demo-stage::before,
.tic-tac-toe-demo-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(91, 236, 214, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 236, 214, 0.035) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

.word-search-paper {
  position: absolute;
  top: 12%;
  left: 6.5%;
  width: 45%;
  max-height: 69%;
  padding: 0.62rem 0.62rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  background: #f4f0e6;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  transform: rotate(-2.1deg) scale(1);
  transition: opacity 520ms ease, transform 900ms cubic-bezier(0.18, 0.82, 0.2, 1), filter 520ms ease;
}

.word-search-paper img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.word-search-paper > span,
.tic-board-label {
  position: absolute;
  right: 0.45rem;
  bottom: 0.38rem;
  left: 0.45rem;
  color: #111;
  font: 850 clamp(0.46rem, 1.05vw, 0.72rem)/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}

.word-search-phone {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 43%;
  padding: 1rem 0.78rem 1.45rem;
  border: 2px solid rgba(108, 232, 255, 0.46);
  border-radius: 2.25rem;
  background: linear-gradient(145deg, #131a18, #020403 74%);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.62), 0 0 44px rgba(54, 236, 214, 0.08);
  opacity: 0.28;
  transform: translateX(7%) scale(0.93);
  transition: opacity 620ms ease, transform 950ms cubic-bezier(0.18, 0.84, 0.2, 1);
}

.word-search-speaker,
.tic-phone-speaker {
  position: absolute;
  z-index: 4;
  top: 0.36rem;
  left: 50%;
  width: 24%;
  height: 0.36rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.word-search-phone-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.25rem;
  background: #020504;
}

.word-search-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity 650ms ease, transform 1250ms cubic-bezier(0.18, 0.84, 0.2, 1), filter 650ms ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.word-search-phone-home,
.tic-phone-home {
  width: 28%;
  height: 0.27rem;
  margin: 0.68rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.word-search-result-glow {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(91, 236, 214, 0.82);
  border-radius: 0.75rem;
  box-shadow: 0 0 2.7rem rgba(30, 241, 159, 0.58), inset 0 0 2.2rem rgba(30, 241, 159, 0.12);
  opacity: 0;
}

.word-search-transition,
.tic-match-link {
  position: absolute;
  z-index: 5;
  top: 47%;
  left: 48.5%;
  display: flex;
  gap: 0.34rem;
  align-items: center;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.word-search-transition i,
.tic-match-link i {
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 1rem rgba(30, 241, 159, 0.8);
}

.puzzle-demo-message {
  position: absolute;
  z-index: 9;
  right: 8%;
  bottom: 5.5%;
  left: 8%;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(91, 236, 214, 0.32);
  border-radius: 0.86rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: clamp(0.72rem, 1.65vw, 1rem);
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  backdrop-filter: blur(9px);
  transition: border-color 320ms ease, color 320ms ease, transform 320ms ease;
}

.puzzle-demo-status {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 1rem auto 0;
}

.word-search-demo-shell[data-state="work"] .word-search-paper,
.word-search-demo-shell[data-state="choice"] .word-search-paper {
  transform: rotate(0.6deg) scale(1.035);
  filter: saturate(1.08) brightness(1.04);
}

.word-search-demo-shell[data-state="reveal"] .word-search-paper,
.word-search-demo-shell[data-state="complete"] .word-search-paper {
  opacity: 0.64;
  transform: translateX(-6%) rotate(-3deg) scale(0.88);
  filter: saturate(0.65) brightness(0.72);
}

.word-search-demo-shell[data-state="reveal"] .word-search-phone,
.word-search-demo-shell[data-state="complete"] .word-search-phone {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.word-search-demo-shell[data-state="reveal"] .word-search-phone-screen img,
.word-search-demo-shell[data-state="complete"] .word-search-phone-screen img {
  opacity: 1;
  transform: scale(1);
}

.word-search-demo-shell[data-state="reveal"] .word-search-transition,
.word-search-demo-shell[data-state="complete"] .word-search-transition { opacity: 1; }

.word-search-demo-shell[data-state="reveal"] .word-search-transition i,
.tic-tac-toe-demo-shell[data-state="match"] .tic-match-link i {
  animation: puzzle-dot-pulse 820ms ease infinite alternate;
}

.word-search-demo-shell[data-state="reveal"] .word-search-transition i:nth-child(2),
.tic-tac-toe-demo-shell[data-state="match"] .tic-match-link i:nth-child(2) { animation-delay: 130ms; }
.word-search-demo-shell[data-state="reveal"] .word-search-transition i:nth-child(3),
.tic-tac-toe-demo-shell[data-state="match"] .tic-match-link i:nth-child(3) { animation-delay: 260ms; }

.word-search-demo-shell[data-state="complete"] .word-search-result-glow {
  animation: puzzle-result-glow 1250ms ease both;
}

.word-search-demo-shell[data-state="complete"] .puzzle-demo-message,
.tic-tac-toe-demo-shell[data-state="complete"] .puzzle-demo-message {
  border-color: rgba(91, 236, 214, 0.7);
  color: var(--green);
  transform: translateY(-2px);
}

@keyframes puzzle-dot-pulse {
  from { opacity: 0.35; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes puzzle-result-glow {
  0% { opacity: 0; transform: scale(0.82); }
  42% { opacity: 0.9; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.1); }
}

.tic-board-card {
  position: absolute;
  top: 12%;
  left: 7%;
  width: 38%;
  padding: 1.05rem 1.05rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.72rem;
  background: #f6f2e9;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.8deg);
  transition: transform 820ms cubic-bezier(0.18, 0.84, 0.2, 1), filter 520ms ease;
}

.tic-live-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  aspect-ratio: 1;
  border: clamp(0.28rem, 0.6vw, 0.52rem) solid #111;
  background: #111;
  gap: clamp(0.24rem, 0.55vw, 0.46rem);
}

.tic-live-board span {
  position: relative;
  display: grid;
  place-items: center;
  background: #faf8f1;
}

.tic-live-board span::after {
  color: #111;
  content: attr(data-symbol);
  font: 900 clamp(1.5rem, 5.8vw, 5rem)/1 Arial, sans-serif;
  opacity: 0;
  transform: scale(0.3) rotate(-12deg);
  transition: opacity 220ms ease, transform 480ms cubic-bezier(0.16, 0.9, 0.24, 1.25);
}

.tic-live-board span.is-played::after {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.tic-phone-wrap {
  position: absolute;
  top: 9%;
  right: 8%;
  width: 37%;
  transition: transform 920ms cubic-bezier(0.18, 0.84, 0.2, 1);
}

.tic-phone {
  padding: 0.95rem 0.72rem 1.35rem;
  border: 2px solid rgba(108, 232, 255, 0.46);
  border-radius: 2.1rem;
  background: linear-gradient(145deg, #131a18, #020403 74%);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.64), 0 0 45px rgba(54, 236, 214, 0.08);
}

.tic-phone-screen {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.4rem;
  background: #030605;
}

.tic-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 650ms ease, transform 1100ms cubic-bezier(0.18, 0.84, 0.2, 1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tic-phone-locked {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--green);
  text-align: center;
  transition: opacity 420ms ease, transform 620ms ease;
}

.tic-phone-locked strong { font: 850 clamp(0.62rem, 1.8vw, 1rem)/1.3 "Cascadia Code", Consolas, monospace; letter-spacing: 0.08em; }
.tic-phone-locked small { color: #8e9991; font-size: clamp(0.52rem, 1.3vw, 0.78rem); }

.tic-orientation-note {
  display: block;
  margin-top: 0.65rem;
  color: var(--green);
  font: 850 clamp(0.48rem, 1.2vw, 0.7rem)/1.35 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  opacity: 0;
  text-align: center;
  transform: translateY(-0.4rem);
  transition: opacity 420ms ease, transform 620ms ease;
}

.tic-match-link { left: 50%; }

.tic-tac-toe-demo-shell[data-state="playing"] .tic-board-card { transform: rotate(0.7deg) scale(1.03); }

.tic-tac-toe-demo-shell[data-state="reveal"] .tic-phone-locked,
.tic-tac-toe-demo-shell[data-state="orient"] .tic-phone-locked,
.tic-tac-toe-demo-shell[data-state="match"] .tic-phone-locked,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-phone-locked {
  opacity: 0;
  transform: scale(0.9);
}

.tic-tac-toe-demo-shell[data-state="reveal"] .tic-phone-screen img,
.tic-tac-toe-demo-shell[data-state="orient"] .tic-phone-screen img,
.tic-tac-toe-demo-shell[data-state="match"] .tic-phone-screen img,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-phone-screen img {
  opacity: 1;
  transform: scale(1);
}

.tic-tac-toe-demo-shell[data-state="orient"] .tic-phone-wrap,
.tic-tac-toe-demo-shell[data-state="match"] .tic-phone-wrap,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-phone-wrap { transform: rotate(-3deg) scale(1.035); }

.tic-tac-toe-demo-shell[data-state="orient"] .tic-orientation-note,
.tic-tac-toe-demo-shell[data-state="match"] .tic-orientation-note,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-orientation-note {
  opacity: 1;
  transform: translateY(0);
}

.tic-tac-toe-demo-shell[data-state="match"] .tic-match-link,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-match-link { opacity: 1; }

.tic-tac-toe-demo-shell[data-state="match"] .tic-board-card,
.tic-tac-toe-demo-shell[data-state="complete"] .tic-board-card {
  filter: drop-shadow(0 0 1rem rgba(30, 241, 159, 0.24));
}

@media (max-width: 720px) {
  .puzzle-switch { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle-switch button { width: 100%; }
  .puzzle-theme-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle-theme-switch button:last-child { grid-column: 1 / -1; }
  .word-search-demo-stage,
  .tic-tac-toe-demo-stage { aspect-ratio: 4 / 5; border-radius: 0.9rem; }
  .word-search-paper { top: 9%; left: 7%; width: 55%; max-height: 39%; }
  .word-search-phone { top: 44%; right: 7%; width: 66%; }
  .word-search-transition { top: 43%; left: 49%; transform: rotate(90deg); }
  .puzzle-demo-message { right: 4%; bottom: 3.5%; left: 4%; padding: 0.52rem 0.62rem; }
  .word-search-demo-shell[data-state="reveal"] .word-search-paper,
  .word-search-demo-shell[data-state="complete"] .word-search-paper { transform: translate(-10%, -4%) rotate(-3deg) scale(0.84); }
  .tic-board-card { top: 7%; left: 8%; width: 51%; }
  .tic-phone-wrap { top: 42%; right: 7%; width: 56%; }
  .tic-match-link { top: 46%; left: 49%; transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .word-search-transition i,
  .tic-match-link i,
  .word-search-result-glow { animation: none !important; }
}

.stanford-control-stack { gap: 0.45rem; }

.stanford-select-label {
  color: var(--green);
  font: 800 0.62rem/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stanford-category-select {
  width: min(100%, 26rem);
  padding: 0.74rem 2.8rem 0.74rem 0.9rem;
  border: 1px solid rgba(91, 236, 214, 0.32);
  border-radius: 0.75rem;
  background: #08100d;
  color: #fff;
  font: 750 0.82rem/1.2 "Cascadia Code", Consolas, monospace;
}

.stanford-demo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 70rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(91, 236, 214, 0.22);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 52% 44%, rgba(22, 174, 146, 0.13), transparent 42%),
    linear-gradient(145deg, #08100d, #020403 72%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 4rem rgba(30, 241, 159, 0.055);
  isolation: isolate;
}

.stanford-list-phone {
  position: absolute;
  top: 6%;
  left: 12%;
  width: 32%;
  padding: 0.9rem 0.7rem 1.2rem;
  border: 2px solid rgba(108, 232, 255, 0.46);
  border-radius: 2.25rem;
  background: linear-gradient(145deg, #131a18, #020403 74%);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.64), 0 0 44px rgba(54, 236, 214, 0.08);
  transform: rotate(-1.8deg);
  transition: transform 850ms cubic-bezier(0.18, 0.84, 0.2, 1), filter 520ms ease;
}

.stanford-phone-speaker {
  position: absolute;
  z-index: 4;
  top: 0.32rem;
  left: 50%;
  width: 24%;
  height: 0.34rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.stanford-list-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.45rem;
  background: #030605;
}

.stanford-list-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.stanford-phone-home {
  width: 28%;
  height: 0.27rem;
  margin: 0.58rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.stanford-number-choice {
  position: absolute;
  top: 22%;
  right: 10%;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  width: 31%;
  padding: clamp(0.9rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(91, 236, 214, 0.35);
  border-radius: 1.15rem;
  background: rgba(3, 8, 6, 0.85);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0.32;
  transform: translateY(-0.7rem) scale(0.94);
  transition: opacity 420ms ease, transform 620ms cubic-bezier(0.18, 0.86, 0.2, 1), border-color 420ms ease;
  backdrop-filter: blur(10px);
}

.stanford-number-choice small {
  color: #9aa69e;
  font: 800 clamp(0.48rem, 1vw, 0.7rem)/1.25 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}

.stanford-number-choice strong {
  color: var(--green);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  text-shadow: 0 0 2rem rgba(30, 241, 159, 0.42);
}

.stanford-number-choice span { color: #fff; font-weight: 750; }

.stanford-row-flash {
  position: absolute;
  z-index: 4;
  top: 35.3%;
  right: 7.5%;
  left: 7.5%;
  height: 6.15%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.35rem;
  background: rgba(30, 241, 159, 0.08);
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.82), 0 0 2.5rem rgba(30, 241, 159, 0.82), inset 0 0 1rem rgba(30, 241, 159, 0.2);
  opacity: 0;
  transform: scaleX(0.7);
}

.stanford-demo-shell[data-state="choice"] .stanford-number-choice,
.stanford-demo-shell[data-state="highlight"] .stanford-number-choice,
.stanford-demo-shell[data-state="complete"] .stanford-number-choice {
  border-color: rgba(91, 236, 214, 0.68);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stanford-demo-shell[data-state="choice"] .stanford-list-phone,
.stanford-demo-shell[data-state="highlight"] .stanford-list-phone,
.stanford-demo-shell[data-state="complete"] .stanford-list-phone { transform: rotate(0deg) scale(1.025); }

.stanford-demo-shell[data-state="highlight"] .stanford-row-flash,
.stanford-demo-shell[data-state="complete"] .stanford-row-flash {
  animation: stanford-row-pulse 1.25s ease both;
}

.stanford-demo-shell[data-state="complete"] .puzzle-demo-message {
  border-color: rgba(91, 236, 214, 0.7);
  color: var(--green);
  transform: translateY(-2px);
}

@keyframes stanford-row-pulse {
  0% { opacity: 0; transform: scaleX(0.68); }
  34% { opacity: 1; transform: scaleX(1.03); }
  72% { opacity: 0.75; transform: scaleX(1); }
  100% { opacity: 0.36; transform: scaleX(1); }
}

@media (max-width: 720px) {
  .stanford-demo-stage { aspect-ratio: 4 / 5; border-radius: 0.9rem; }
  .stanford-list-phone { top: 5%; left: 6%; width: 49%; }
  .stanford-number-choice { top: 19%; right: 5%; width: 35%; padding: 0.65rem; }
  .stanford-number-choice strong { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stanford-row-flash { animation: none !important; }
}

.compact-demo-switch {
  width: fit-content;
  margin: 0 auto 1.2rem;
}

.demo-control-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.demo-control-pair .compact-demo-switch { margin: 0; }

.choice-demo-shell {
  max-width: 70rem;
  margin: 0 auto;
}

.choice-demo-stage,
.zodiac-demo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) 5.5rem minmax(15rem, 0.76fr);
  align-items: center;
  min-height: 35rem;
  overflow: hidden;
  padding: clamp(3.9rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem) clamp(1rem, 4vw, 2.4rem);
  border: 1px solid rgba(91, 236, 214, 0.24);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 15% 40%, rgba(30, 241, 159, 0.14), transparent 35%),
    radial-gradient(circle at 86% 54%, rgba(43, 111, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #07120d, #020504 66%);
  box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.5), 0 2rem 5rem rgba(0, 0, 0, 0.34);
}

.choice-prompt-card,
.coin-table-card,
.rps-move-card {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 0.7rem;
  min-height: 20rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.2rem;
  background: rgba(3, 7, 5, 0.76);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.38);
  text-align: center;
}

.choice-prompt-card small,
.coin-table-card small,
.rps-move-card small,
.zodiac-participant small,
.zodiac-performer small {
  color: var(--green);
  font: 800 0.65rem/1.3 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.13em;
}

.choice-prompt-card strong {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.92;
  text-shadow: 0 0 2rem rgba(255, 198, 74, 0.32);
}

.choice-prompt-card span,
.coin-table-card span,
.zodiac-participant > span {
  color: #9ba79f;
  font-size: 0.75rem;
}

.choice-flow,
.zodiac-signal {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.choice-flow::before,
.zodiac-signal::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 236, 214, 0.78), transparent);
  content: "";
}

.choice-flow i,
.zodiac-signal i {
  width: 0.58rem;
  aspect-ratio: 1;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #06150f;
  box-shadow: 0 0 1rem rgba(30, 241, 159, 0.58);
  opacity: 0.22;
}

.choice-phone {
  position: relative;
  z-index: 3;
  width: min(100%, 18rem);
  margin: 0 auto;
  padding: 0.72rem 0.58rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.33);
  border-radius: 2.5rem;
  background: #090b0a;
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.55), inset 0 0 0 0.25rem rgba(255, 255, 255, 0.04);
}

.choice-phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 2rem;
  background: #010201;
}

.choice-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 760ms ease, transform 1100ms ease;
}

.choice-phone-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: 1rem;
  background: radial-gradient(circle, rgba(30, 241, 159, 0.13), transparent 47%), #030605;
  color: #fff;
  text-align: center;
  transition: opacity 560ms ease;
}

.choice-phone-lock strong { color: var(--green); font: 850 0.8rem/1.3 "Cascadia Code", Consolas, monospace; letter-spacing: 0.08em; }
.choice-phone-lock small { color: #8f9a92; font-size: 0.68rem; }
.choice-phone-speaker { width: 5.8rem; height: 0.52rem; margin: 0 auto 0.5rem; border-radius: 999px; background: #1a1f1c; }
.choice-phone-home { width: 4.8rem; height: 0.28rem; margin: 0.65rem auto 0; border-radius: 999px; background: #454b47; }

.choice-demo-shell[data-state="choice"] .choice-flow i,
.choice-demo-shell[data-state="browse"] .choice-flow i,
.choice-demo-shell[data-state="reveal"] .choice-flow i,
.choice-demo-shell[data-state="complete"] .choice-flow i,
.choice-demo-shell[data-state="signal"] .choice-flow i {
  animation: choice-signal 1.1s ease infinite alternate;
}

.choice-demo-shell[data-state="reveal"] .choice-phone-lock,
.choice-demo-shell[data-state="complete"] .choice-phone-lock,
.choice-demo-shell[data-state="signal"] .choice-phone-lock { opacity: 0; pointer-events: none; }

.choice-demo-shell[data-state="reveal"] .choice-phone-screen img,
.choice-demo-shell[data-state="complete"] .choice-phone-screen img,
.choice-demo-shell[data-state="signal"] .choice-phone-screen img { opacity: 1; transform: scale(1); }

.choice-demo-shell[data-state="complete"] .puzzle-demo-message { border-color: rgba(91, 236, 214, 0.7); color: var(--green); }

@keyframes choice-signal { to { opacity: 1; transform: scale(1.45); } }

.rps-move-card img {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  filter: saturate(0.9);
}

.rps-move-card strong { color: #fff; font-size: clamp(1.5rem, 4vw, 2.6rem); letter-spacing: 0.08em; }
.coin-table-card { align-content: center; }
.coin-table-row { display: flex; justify-content: center; gap: 0.45rem; width: 100%; }

.coin-token {
  display: grid;
  place-items: center;
  width: clamp(2.65rem, 6vw, 4.65rem);
  aspect-ratio: 1;
  border: 2px solid #d6d1bd;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f4f0dc, #8e8a7a 58%, #343630 64%, #d2cdb7 68%);
  color: #111;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.4);
  font: 900 clamp(0.48rem, 1vw, 0.72rem)/1 "Cascadia Code", Consolas, monospace;
  text-align: center;
}

.coin-token.is-penny { border-color: #d78b62; background: radial-gradient(circle at 38% 32%, #f3b58d, #9c4c2f 62%, #3b2119 67%, #b96843 71%); }
.coin-token em { display: block; font-size: 0.56em; font-style: normal; }

.zodiac-demo-stage { grid-template-columns: minmax(13rem, 0.8fr) 5rem minmax(13rem, 0.8fr); }
.zodiac-participant, .zodiac-performer { position: relative; z-index: 3; display: grid; place-items: center; gap: 0.7rem; text-align: center; }
.zodiac-album-phone { width: min(100%, 17rem); padding: 0.58rem; border: 2px solid rgba(255,255,255,.3); border-radius: 2.2rem; background: #090b0a; box-shadow: 0 1.5rem 3.5rem rgba(0,0,0,.5); }
.zodiac-album-screen { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 1.72rem; background: #010201; }
.zodiac-card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(105%); transition: opacity 520ms ease, transform 720ms cubic-bezier(.2,.76,.2,1); }
.zodiac-card-38 { opacity: 1; transform: translateX(0); }
.choice-demo-shell[data-state="browse"] .zodiac-card-38 { opacity: 0; transform: translateX(-105%); }
.choice-demo-shell[data-state="browse"] .zodiac-card-39 { opacity: 1; transform: translateX(0); }
.choice-demo-shell[data-state="signal"] .zodiac-card-39,
.choice-demo-shell[data-state="complete"] .zodiac-card-39 { opacity: 0; transform: translateX(-105%); }
.choice-demo-shell[data-state="signal"] .zodiac-card-40,
.choice-demo-shell[data-state="complete"] .zodiac-card-40 { opacity: 1; transform: translateX(0); }
.zodiac-notification { display: grid; gap: 0.7rem; width: min(100%, 18rem); padding: 1.4rem; border: 1px solid rgba(91,236,214,.25); border-radius: 1.2rem; background: rgba(2,7,5,.82); box-shadow: 0 1.3rem 3rem rgba(0,0,0,.44); opacity: 0.28; transform: scale(.94); transition: opacity 620ms ease, transform 760ms ease, box-shadow 620ms ease; }
.zodiac-notification span { color: #8f9a92; font: 800 .62rem/1.3 "Cascadia Code", Consolas, monospace; letter-spacing: .1em; }
.zodiac-notification strong { color: var(--green); font-size: clamp(1.2rem,3vw,2rem); }
.zodiac-notification em { color: #fff; font-size: .78rem; font-style: normal; }
.choice-demo-shell[data-state="signal"] .zodiac-notification,
.choice-demo-shell[data-state="complete"] .zodiac-notification { opacity: 1; transform: scale(1); box-shadow: 0 0 2.6rem rgba(30,241,159,.22), 0 1.3rem 3rem rgba(0,0,0,.44); }
.choice-demo-shell[data-state="browse"] .zodiac-signal i,
.choice-demo-shell[data-state="signal"] .zodiac-signal i,
.choice-demo-shell[data-state="complete"] .zodiac-signal i { animation: choice-signal 1.1s ease infinite alternate; }

@media (max-width: 760px) {
  .choice-demo-stage,
  .zodiac-demo-stage { grid-template-columns: minmax(0, .82fr) 2.25rem minmax(0, .78fr); min-height: 29rem; padding: 4.3rem 0.55rem 1rem; border-radius: 0.9rem; }
  .choice-prompt-card, .coin-table-card, .rps-move-card { min-height: 15rem; padding: 0.55rem; border-radius: 0.8rem; }
  .choice-phone { padding: 0.4rem 0.34rem 0.64rem; border-radius: 1.6rem; }
  .choice-phone-screen { border-radius: 1.28rem; }
  .choice-phone-speaker { width: 3.6rem; height: 0.34rem; margin-bottom: 0.34rem; }
  .choice-phone-home { width: 3rem; }
  .choice-flow, .zodiac-signal { gap: 0.12rem; }
  .choice-flow i, .zodiac-signal i { width: 0.38rem; }
  .choice-prompt-card strong { font-size: clamp(1rem, 5vw, 2rem); overflow-wrap: anywhere; }
  .choice-prompt-card span, .coin-table-card span { font-size: 0.57rem; }
  .coin-table-row { flex-wrap: wrap; }
  .coin-token { width: min(3.2rem, 38%); }
  .rps-move-card img { width: 100%; }
  .zodiac-album-phone { padding: 0.32rem; border-radius: 1.35rem; }
  .zodiac-album-screen { border-radius: 1.08rem; }
  .zodiac-notification { padding: 0.65rem; border-radius: 0.72rem; }
  .zodiac-notification strong { font-size: 0.92rem; }
  .zodiac-notification em { font-size: 0.56rem; }
}

@media (max-width: 520px) {
  .compact-demo-switch { width: 100%; }
  .demo-control-pair { display: grid; }
  .demo-control-pair .compact-demo-switch { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-flow i, .zodiac-signal i { animation: none !important; }
}

.bundle-demo-stage {
  position: relative;
  isolation: isolate;
  min-height: 37rem;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 5.8rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 3vw, 2.3rem);
  border: 1px solid rgba(91, 236, 214, 0.24);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 18% 28%, rgba(30, 241, 159, 0.14), transparent 36%),
    radial-gradient(circle at 82% 68%, rgba(43, 111, 255, 0.2), transparent 40%),
    #020504;
}

.bundle-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  height: 29rem;
  opacity: 0.33;
  transform: scale(0.96);
  transition: opacity 700ms ease, transform 900ms ease;
}

.bundle-demo-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.9rem;
  background: #050806;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.bundle-demo-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) brightness(0.72); transition: filter 620ms ease, transform 800ms ease; }
.bundle-demo-tile span { position: absolute; right: 0.4rem; bottom: 0.4rem; left: 0.4rem; padding: 0.45rem; border-radius: 0.5rem; background: rgba(0,0,0,.75); color: #fff; font: 800 0.56rem/1.25 "Cascadia Code", Consolas, monospace; letter-spacing: .06em; text-align: center; }

.bundle-demo-focus {
  position: absolute;
  z-index: 4;
  inset: 18% 26%;
  overflow: hidden;
  border: 2px solid rgba(91, 236, 214, 0.56);
  border-radius: 1.15rem;
  background: #020403;
  box-shadow: 0 0 3.5rem rgba(30, 241, 159, 0.24), 0 2rem 5rem rgba(0,0,0,.7);
  opacity: 0;
  transform: scale(0.8) rotate(-2deg);
  transition: opacity 620ms ease, transform 820ms cubic-bezier(.18,.82,.2,1);
}

.bundle-demo-focus img { width: 100%; height: 100%; object-fit: cover; transition: opacity 440ms ease; }
.bundle-demo-focus span { position: absolute; right: .65rem; bottom: .65rem; left: .65rem; padding: .65rem; border: 1px solid rgba(91,236,214,.34); border-radius: .65rem; background: rgba(0,0,0,.78); color: var(--green); font: 850 .72rem/1.25 "Cascadia Code", Consolas, monospace; text-align: center; }
.choice-demo-shell[data-state="browse"] .bundle-demo-grid,
.choice-demo-shell[data-state="focus"] .bundle-demo-grid,
.choice-demo-shell[data-state="complete"] .bundle-demo-grid { opacity: 0.72; transform: scale(1); }
.choice-demo-shell[data-state="browse"] .bundle-demo-tile img { filter: saturate(1) brightness(.92); transform: scale(1.03); }
.choice-demo-shell[data-state="focus"] .bundle-demo-focus,
.choice-demo-shell[data-state="complete"] .bundle-demo-focus { opacity: 1; transform: scale(1) rotate(0); }

@media (max-width: 720px) {
  .bundle-demo-stage { min-height: 32rem; padding: 4.4rem .55rem 1rem; border-radius: .9rem; }
  .bundle-demo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); height: 25rem; gap: .4rem; }
  .bundle-demo-grid .bundle-demo-tile:last-child { display: none; }
  .bundle-demo-focus { inset: 21% 13%; }
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 4, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 0.8fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-grid p {
  max-width: 30rem;
  color: #849087;
  font-size: 0.86rem;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-nav strong {
  margin-bottom: 0.3rem;
  color: var(--green);
  font: 700 0.68rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  color: #aab5ac;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(116, 255, 145, 0.1);
  color: #6f7b72;
  font: 500 0.67rem/1.5 "Cascadia Code", Consolas, monospace;
}

@media (max-width: 950px) {
  .demo-showcase {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    max-width: 44rem;
  }

  .demo-copy h2 {
    max-width: 18ch;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .hero-console {
    width: min(100%, 42rem);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hosting-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-lab {
    grid-template-columns: 1fr;
  }

  .checkout-layout,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .checkout-options {
    position: static;
  }

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0 0 0.85rem 0.85rem;
    background: rgba(4, 8, 5, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-menu[data-open="true"] {
    display: grid;
  }

  .nav-menu a {
    padding: 0.8rem;
  }

  .nav-menu .nav-cta {
    margin: 0;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-grid {
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4.9rem);
  }

  .image-matrix {
    grid-template-rows: 18rem 8rem;
  }

  .proof-strip,
  .card-grid,
  .hosting-price-grid,
  .two-col,
  .contact-grid,
  .license-grid,
  .field-grid,
  .checkout-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-preview-grid {
    grid-template-columns: 1fr;
  }

  .checkout-product-head {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .quote-actions {
    justify-content: stretch;
  }

  .quote-actions .button {
    flex: 1;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .verify-row {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-row .button {
    width: 100%;
  }

  .checkout-rail div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .checkout-rail div:first-child {
    border-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .demo-device {
    padding: 0.72rem 0.67rem 1.4rem;
    border-radius: 2.75rem;
  }

  .demo-screen {
    border-radius: 2.15rem;
  }

  .demo-speaker {
    top: 1rem;
    width: 6rem;
    height: 1rem;
  }

  .demo-home {
    width: 5.3rem;
    margin-top: 0.85rem;
  }

  .demo-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .container,
  .nav-wrap {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }

  .checkout-product-head {
    grid-template-columns: 1fr;
  }

  .checkout-product-head img {
    max-width: 12rem;
  }

  .summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .summary-row strong {
    max-width: 100%;
    text-align: left;
  }

  .product-image,
  .bundle-visual {
    height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .code-rain {
    display: none;
  }

  .demo-touch {
    display: none;
  }
}
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.hosting-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hosting-faq-grid .info-card {
  height: 100%;
}

.hosting-faq-grid code {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .hosting-faq-grid {
    grid-template-columns: 1fr;
  }
}
