:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-alt: #101216;
  --panel: #141720;
  --panel-strong: #1d212e;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --accent-lime: #adff2f;
  --accent-blue: #135bec;
  --accent-yellow: #faff00;
  --border: #000000;
  --shadow: 8px 8px 0px 0px #000000;
  --shadow-lime: 8px 8px 0px 0px #adff2f;
  --button-shadow: 4px 4px 0px 0px var(--accent-lime);
  --button-shadow-hover: 2px 2px 0px 0px var(--accent-lime);
  --button-inner-stroke: rgba(255, 255, 255, 0.35);
  --radius: 8px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

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

body {
  background: radial-gradient(circle at top, #1b1f2e 0%, #050507 55%);
  color: var(--ink);
  font-family: var(--font-display);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #000000;
  border-bottom: 4px solid var(--border);
  box-shadow: 4px 4px 0px 0px #000000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0.3rem 0.4rem;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--accent-blue);
}

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

.icon-button {
  border: 2px solid #ffffff;
  background: transparent;
  color: var(--ink);
  padding: 0.4rem;
  transition: transform 0.1s ease, background 0.1s ease;
}

.icon-button:hover {
  background: var(--accent-blue);
}

.icon-button:active {
  transform: translate(4px, 4px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid #ffffff;
  background: var(--panel);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.search-field input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  width: 12rem;
}

.page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

body.landing-page .page {
  width: min(100%, 1280px);
  max-width: none;
  min-height: 100vh;
  padding: clamp(1.25rem, 2.6vh, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2vh, 1.5rem);
  width: 100%;
  align-content: center;
}

.landing-copy {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}

.landing-kicker {
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.landing-copy h1 {
  color: var(--accent-lime);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.landing-video-frame {
  width: min(100%, 980px);
  aspect-ratio: 1920 / 863;
  border: 4px solid #ffffff;
  background: var(--panel);
  box-shadow: 8px 8px 0px 0px var(--accent-blue);
  overflow: hidden;
}

.landing-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.landing-actions {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: min(100%, 24rem);
}

.landing-waitlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.4rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.landing-waitlist-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.04) 28%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.04) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-135%);
  animation: landing-button-sheen 4.2s ease-in-out infinite;
}

.landing-waitlist-button:hover::before {
  animation-duration: 3.1s;
}

.landing-waitlist-button span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: none;
}

.landing-try-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66.666%;
  min-height: 3.5rem;
  padding: 1rem 1.4rem;
  border: 2px solid #ffffff;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--button-shadow), inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(-4px, -4px);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    color 0.1s ease, border 0.1s ease;
}

.landing-try-product-button:hover {
  background: var(--accent-blue);
  box-shadow: var(--button-shadow-hover), inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(-2px, -2px);
}

.landing-try-product-button:active {
  box-shadow: inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(0, 0);
}

@keyframes landing-button-sheen {
  0%,
  64%,
  100% {
    opacity: 0;
    transform: translateX(-135%);
  }

  70% {
    opacity: 0.95;
  }

  88% {
    opacity: 0.15;
    transform: translateX(135%);
  }
}

.catalog-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-bottom: 4px solid var(--accent-lime);
  padding-bottom: 1rem;
}

.hero-title h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #7cff6b;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  background: #7cff6b;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124, 255, 107, 0.8);
}

.hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-pill {
  border: 2px solid #ffffff;
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--accent-lime);
  color: #000000;
  border-color: var(--accent-lime);
}

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

.product-card {
  --card-frame-gap: 1rem;
  --card-outer-border-width: 4px;
  --card-avatar-radius: calc(var(--card-frame-gap) + var(--card-outer-border-width));
  --card-avatar-size: calc((var(--card-frame-gap) * 2) + (var(--card-outer-border-width) * 2));
  --card-viewer-border: rgba(255, 255, 255, 0.62);
  background: var(--panel);
  border: 4px solid var(--card-viewer-border);
  box-shadow: var(--shadow-lime);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px 0px var(--accent-lime);
}

.card-media {
  position: relative;
  background: #000000;
  border: 2px solid var(--card-viewer-border);
  padding: 0.4rem;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--card-avatar-radius);
}

model-viewer {
  width: 100%;
  height: 100%;
  background: #000000;
}

.card-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent-lime);
  padding: 0.2rem 0.4rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--accent-lime);
  font-weight: 800;
}

.card-model-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
}

.card-avatar {
  position: absolute;
  left: calc(var(--card-avatar-radius) * -1);
  bottom: calc(var(--card-avatar-radius) * -1);
  width: var(--card-avatar-size);
  height: var(--card-avatar-size);
  z-index: 2;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: var(--card-outer-border-width) solid var(--card-viewer-border);
  background: #101216;
  pointer-events: none;
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.price-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
}

.price-value {
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-lime);
}

.primary-button,
.secondary-button {
  border: 2px solid var(--border);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 900;
  background: var(--accent-blue);
  color: #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.primary-button:hover {
  background: #0e45b3;
}

.primary-button:active,
.secondary-button:active {
  transform: translate(4px, 4px);
}

.secondary-button {
  background: #ffffff;
  color: #000000;
}

.secondary-button:hover {
  background: #000000;
  color: #ffffff;
}

.product-shell {
  display: grid;
  grid-template-areas:
    "media"
    "checkout"
    "chat";
  border: 4px solid #ffffff;
  box-shadow: 8px 8px 0px 0px var(--accent-blue);
  overflow: hidden;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.product-shell > * {
  min-width: 0;
}

.product-media {
  grid-area: media;
  background: var(--panel);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-toggle {
  border: 2px solid #ffffff;
  background: #000000;
  color: var(--accent-lime);
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 800;
  z-index: 10;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.1s ease, background 0.1s ease;
}

.chat-toggle::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -55%;
  width: 38%;
  height: 280%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 32%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.12) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  transform: rotate(18deg) translateX(0);
  animation: button-sheen 4.2s ease-in-out infinite;
}

.chat-toggle:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.chat-toggle:hover::before {
  animation-duration: 3.1s;
}

.chat-toggle:active {
  transform: translate(4px, 4px);
}

@keyframes button-sheen {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: rotate(18deg) translateX(0);
  }

  74% {
    opacity: 0.95;
  }

  86% {
    opacity: 0.2;
    transform: rotate(18deg) translateX(360%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-toggle::before {
    animation: none;
  }
}

.model-status {
  position: absolute;
  top: 4.2rem;
  right: 1rem;
  z-index: 10;
  border: 2px solid #ffffff;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 800;
}

.model-status[data-tone="ok"] {
  background: rgba(40, 167, 69, 0.9);
}

.model-status[data-tone="error"] {
  background: rgba(220, 53, 69, 0.95);
}

.primary-button,
.secondary-button,
.filter-pill,
.icon-button,
.chat-toggle {
  border-radius: 6px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    color 0.1s ease, border 0.1s ease;
  box-shadow: var(--button-shadow), inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(-4px, -4px);
}

.primary-button:hover,
.secondary-button:hover,
.filter-pill:hover,
.icon-button:hover,
.chat-toggle:hover {
  box-shadow: var(--button-shadow-hover), inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(-2px, -2px);
}

.primary-button:active,
.secondary-button:active,
.filter-pill:active,
.icon-button:active,
.chat-toggle:active {
  box-shadow: inset 0 0 0 1px var(--button-inner-stroke);
  transform: translate(0, 0);
}

.product-media model-viewer {
  flex: 1;
}

.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.media-status {
  border: 2px solid var(--accent-lime);
  padding: 0.2rem 0.6rem;
}

.product-checkout {
  grid-area: checkout;
  background: var(--accent-lime);
  color: #000000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 0;
  container-type: inline-size;
}

.product-chat {
  grid-area: chat;
  background: var(--panel-strong);
  color: var(--ink);
  border-top: 4px solid #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  height: clamp(360px, 60vh, 520px);
  min-height: 0;
  overflow: hidden;
}

.product-shell.chat-closed .product-chat {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #0b0d12;
  border-bottom: 4px solid #ffffff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.chat-header div {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px rgba(173, 255, 47, 0.7);
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.5rem 1.9rem 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  margin-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #adff2f #050507;
  overscroll-behavior: contain;
}

.chat-log::-webkit-scrollbar {
  width: 14px;
}

.chat-log::-webkit-scrollbar-track {
  background: #050507;
}

.chat-log::-webkit-scrollbar-thumb {
  background: #adff2f;
  border: 2px solid #050507;
  border-radius: 999px;
  background-clip: padding-box;
  min-height: 28px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 85%;
}

.chat-message-user {
  align-self: flex-start;
  text-align: left;
}

.chat-message-assistant {
  align-self: flex-end;
  text-align: right;
}

.chat-message-system-material {
  align-self: center;
  max-width: 100%;
  text-align: center;
}

.chat-role {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.chat-bubble {
  border: 2px solid #ffffff;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
}

.chat-bubble-assistant {
  background: var(--accent-lime);
  color: #000000;
}

.chat-bubble-user {
  background: #0d1322;
  color: #ffffff;
}

.chat-bubble-system-material {
  background: rgba(173, 255, 47, 0.14);
  border-color: rgba(173, 255, 47, 0.65);
  color: #f7ffe2;
}

.material-history-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.material-history-chip .material-swatch {
  flex: 0 0 auto;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 1rem;
  border-top: 4px solid #ffffff;
  background: #0b0d12;
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.chat-input .primary-button {
  transform: none;
}

.chat-input .primary-button:hover {
  transform: none;
}

.chat-input .primary-button:active {
  transform: translate(2px, 2px);
}

.chat-input input {
  border: 2px solid #ffffff;
  background: #000000;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  outline: none;
  min-width: 0;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.6rem;
}

.checkout-header h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 900;
}

.price-block span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  opacity: 0.7;
}

.price-block strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
}

.material-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.material-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  opacity: 0.75;
  text-transform: uppercase;
  font-weight: 800;
}

.material-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.material-button {
  border: 2px solid #000000;
  border-radius: 6px;
  background: #f2f85b;
  color: #000000;
  padding: 0.4rem 0.55rem;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transform: translate(-4px, -4px);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.material-pla-option {
  position: relative;
  padding-right: 1.35rem;
}

.material-button-surface {
  width: 100%;
  min-height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.material-button-surface:focus-visible {
  outline: none;
}

.material-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.material-button.is-active {
  transform: translate(0, 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  background: #d6dc4a;
}

.material-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.material-swatch {
  width: 2rem;
  height: 2rem;
  border: 2px solid #000000;
  background: #cccccc;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  line-height: 1;
  text-transform: none;
}

.material-swatch-aluminum {
  background: linear-gradient(135deg, #f4f6f8 0%, #b7bcc4 100%);
}

.material-swatch-copper {
  background: linear-gradient(135deg, #e8a06c 0%, #ad5d2f 100%);
}

.material-swatch-pla {
  background: linear-gradient(135deg, #9af27d 0%, #2f9a44 100%);
}

.pla-color-options {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: grid;
  gap: 0.3rem;
}

.pla-color-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #000000;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pla-color-dot[data-pla-color="red"] {
  background: #cc3a3a;
}

.pla-color-dot[data-pla-color="green"] {
  background: #2f9a44;
}

.pla-color-dot[data-pla-color="blue"] {
  background: #2f62c6;
}

.pla-color-dot:hover {
  transform: translate(-1px, -1px);
}

.pla-color-dot.is-active {
  transform: translate(1px, 1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.pla-color-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.material-name {
  font-size: 0.58rem;
  letter-spacing: 0.1rem;
  opacity: 0.75;
  text-align: center;
  padding-right: 0.25rem;
}

.stock-panel {
  background: rgba(0, 0, 0, 0.08);
  border: 3px solid #000000;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
}

.quantity-panel {
  gap: 0.75rem;
}

@container (max-width: 300px) {
  .material-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 240px) {
  .material-options {
    grid-template-columns: 1fr;
  }

  .material-pla-option {
    padding-right: 0.55rem;
    padding-bottom: 1.75rem;
  }

  .material-button-surface {
    justify-items: start;
  }

  .material-name {
    text-align: left;
    padding-right: 0;
  }

  .pla-color-options {
    top: auto;
    right: 0.55rem;
    bottom: 0.4rem;
    transform: none;
    grid-auto-flow: column;
  }
}

@media (max-width: 520px) {
  .material-options {
    gap: 0.5rem;
  }

  .material-button {
    padding: 0.45rem 0.5rem;
  }

  .material-swatch {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.68rem;
  }

  .material-name {
    font-size: 0.54rem;
    letter-spacing: 0.08rem;
  }

  .pla-color-dot {
    width: 0.6rem;
    height: 0.6rem;
  }
}

@container (max-width: 300px) {
  .material-pla-option {
    padding-right: 1.1rem;
  }

  .pla-color-dot {
    width: 0.6rem;
    height: 0.6rem;
  }
}

.quantity-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  opacity: 0.75;
}

.quantity-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: center;
  border: 2px solid #000000;
  background: #0b0d12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quantity-button,
.quantity-value {
  border: none;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
}

.quantity-button {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  background: #050507;
  transition: background 0.1s ease, color 0.1s ease, transform 0.1s ease;
}

.quantity-button:first-child {
  border-right: 2px solid rgba(255, 255, 255, 0.18);
}

.quantity-button:last-child {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.quantity-button:hover {
  background: var(--accent-blue);
}

.quantity-button:active {
  background: var(--accent-lime);
  color: #000000;
}

.quantity-value {
  width: 100%;
  min-width: 4.5rem;
  padding: 0.85rem 0.8rem;
  font-size: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08rem;
  text-align: center;
  color: var(--accent-lime);
  background: #101216;
  -moz-appearance: textfield;
}

.quantity-value::-webkit-outer-spin-button,
.quantity-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-actions {
  display: grid;
  gap: 0.8rem;
}

.product-checkout .checkout-actions .primary-button {
  box-shadow: 4px 4px 0px 0px rgba(42, 94, 31, 0.9),
    inset 0 0 0 1px var(--button-inner-stroke);
}

.product-checkout .checkout-actions .primary-button:hover {
  box-shadow: 2px 2px 0px 0px rgba(42, 94, 31, 0.9),
    inset 0 0 0 1px var(--button-inner-stroke);
}

.readme-terminal {
  border: 4px solid #ffffff;
  background: var(--panel);
  box-shadow: var(--shadow-lime);
  overflow: visible;
}

.terminal-header {
  --terminal-header-height: 3.5rem;
  display: flex;
  align-items: center;
  position: relative;
  background: #222222;
  padding: 0.8rem 1rem;
  padding-left: 4.25rem;
  border-bottom: 4px solid #ffffff;
  min-height: var(--terminal-header-height);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: rgba(255, 255, 255, 0.6);
}

.terminal-header p {
  flex: 1;
  min-width: 0;
}

.terminal-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--terminal-header-height) * 1.2);
  height: calc(var(--terminal-header-height) * 1.2);
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #ffffff;
  background: #101216;
}

.terminal-body {
  padding: 2rem;
}

.readme-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1rem;
}

.readme-content p {
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 4rem;
  background: #111111;
  border-top: 4px solid #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  color: rgba(255, 255, 255, 0.4);
  display: grid;
  gap: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 900;
  color: var(--accent-lime);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .page {
    padding: 3rem 2rem;
  }

  .product-shell {
    grid-template-areas: "checkout media";
    grid-template-columns: minmax(280px, 340px) minmax(320px, 1fr);
    min-height: 520px;
  }

  .product-shell.chat-open {
    grid-template-areas:
      "checkout media"
      "chat chat";
    grid-template-columns: minmax(260px, 320px) minmax(320px, 1fr);
    min-height: 520px;
  }

  .product-chat {
    border-top: none;
    border-left: 4px solid #ffffff;
  }

  .product-shell.chat-open .product-chat {
    border-left: none;
    border-top: 4px solid #ffffff;
    height: 420px;
  }
}

@media (min-width: 1280px) {
  .product-shell {
    grid-template-areas: "checkout media chat";
    grid-template-columns: 2fr 3fr 0fr;
    height: 520px;
    min-height: 520px;
    transition: grid-template-columns 0.28s ease;
  }

  .product-checkout,
  .product-media,
  .product-chat {
    min-height: 0;
    align-self: stretch;
  }

  .product-chat {
    border-top: none;
    border-left: 0 solid #ffffff;
    border-right: none;
    border-bottom: none;
    height: 100%;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(2rem);
    transition: transform 0.28s ease, opacity 0.2s ease, border-left-width 0.28s ease;
  }

  .product-shell.chat-closed .product-chat {
    display: flex;
    visibility: hidden;
  }

  .product-shell.chat-open {
    grid-template-areas: "checkout media chat";
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
  }

  .product-shell.chat-open .product-chat {
    visibility: visible;
    border-top: none;
    border-left: 4px solid #ffffff;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  body.landing-page .page {
    min-height: 100vh;
    padding: 1rem;
  }

  .landing-copy h1 {
    letter-spacing: -0.03em;
  }

  .landing-video-frame {
    width: 100%;
  }

  .landing-actions {
    width: 100%;
    max-width: 24rem;
  }

  .landing-try-product-button {
    width: 66.666%;
  }

  .nav-right {
    gap: 0.4rem;
  }

  .search-field {
    display: none;
  }

  .site-footer {
    text-align: center;
  }
}
