/* cyberbeer — technocore.chat × broke AI agent × cyber dive bar */

:root {
  --bg: #070908;
  --bg-2: #0c100e;
  --bg-3: #121816;
  --green: #39ff6a;
  --green-dim: #1a8f3c;
  --green-mute: #6a9a72;
  --cyan: #4de8ff;
  --cyan-dim: #1a8a9a;
  --amber: #f0a030;
  --amber-hot: #ffc04a;
  --foam: #e8e4d8;
  --metal: #8a9399;
  --text: #d6ddd6;
  --text-dim: #7a8a7e;
  --danger: #ff5a4d;
  --rh: #00c805;
  --font-mono: "IBM Plex Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 58px;
  --glow-cyan: 0 0 18px rgba(77, 232, 255, 0.35);
  --glow-amber: 0 0 28px rgba(240, 160, 48, 0.35);
  --glow-green: 0 0 14px rgba(57, 255, 106, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(240, 160, 48, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(57, 255, 106, 0.05), transparent 50%),
    linear-gradient(180deg, #050706 0%, var(--bg) 40%, #080b09 100%);
  overflow-x: clip;
}

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

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

a:hover {
  color: var(--amber-hot);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* atmosphere layers */
.noise,
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}

.noise {
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px);
  background-size: auto, 3px 3px, 5px 5px;
}

.scanlines {
  opacity: 0.055;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  animation: scan-drift 8s linear infinite;
}

@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 8, 0.92);
  border-bottom: 1px solid rgba(57, 255, 106, 0.22);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foam);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(77, 232, 255, 0.35);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.header-status {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--green-mute);
  margin-left: 0.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
  display: inline-block;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.status-dot.tiny {
  width: 5px;
  height: 5px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.header-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-buy {
  background: var(--rh);
  color: #041204;
  border-color: #7dff82;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.2), 0 0 16px rgba(0, 200, 5, 0.25);
}

.btn-buy:hover {
  background: #1aff20;
  color: #041204;
  box-shadow: 0 0 22px rgba(0, 200, 5, 0.45);
}

.btn-chart {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(77, 232, 255, 0.55);
}

.btn-chart:hover {
  background: rgba(77, 232, 255, 0.1);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-x {
  background: transparent;
  color: var(--foam);
  border-color: rgba(232, 228, 216, 0.35);
}

.btn-x:hover {
  border-color: var(--amber);
  color: var(--amber-hot);
}

.btn-lg {
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
}

.btn-copy {
  background: rgba(57, 255, 106, 0.08);
  color: var(--green);
  border: 1px solid rgba(57, 255, 106, 0.45);
  flex-shrink: 0;
}

.btn-copy:hover,
.btn-copy.is-copied {
  background: rgba(57, 255, 106, 0.2);
  color: #041204;
  background: var(--green);
}

.btn-copy.is-copied {
  background: var(--green);
  color: #041204;
}

/* hero */
.hero {
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.25rem) 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

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

.hero-terminal {
  border: 1px solid rgba(57, 255, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(12, 22, 16, 0.95), rgba(8, 12, 10, 0.98));
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(57, 255, 106, 0.04);
  position: relative;
}

.hero-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(57, 255, 106, 0.03) 3px,
    rgba(57, 255, 106, 0.03) 4px
  );
  opacity: 0.6;
}

.term-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(57, 255, 106, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4440;
}

.term-dot:nth-child(1) { background: #ff5a4d; }
.term-dot:nth-child(2) { background: var(--amber); }
.term-dot:nth-child(3) { background: var(--green); }

.term-title {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--green-mute);
}

.term-body {
  padding: 1rem 1rem 0.5rem;
  position: relative;
  z-index: 1;
}

.term-line {
  margin: 0 0 0.45rem;
  color: var(--green-mute);
  font-size: 0.88rem;
}

.term-muted {
  color: var(--text-dim);
}

.status-online {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.term-quote {
  margin: 0.9rem 0 1rem;
  padding: 0.85rem 0.9rem;
  border-left: 3px solid var(--amber);
  background: rgba(240, 160, 48, 0.06);
  color: var(--foam);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(240, 160, 48, 0.15);
}

.term-quote p {
  margin: 0;
}

.term-quote p + p {
  margin-top: 0.25rem;
}

.cursor-line {
  color: var(--green);
}

.blink-cursor {
  display: inline-block;
  animation: blink 1.05s step-end infinite;
  color: var(--green);
  font-weight: 700;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1.1rem;
  position: relative;
  z-index: 1;
}

/* reveal lines (stagger) */
.reveal-line {
  opacity: 0;
  transform: translateY(8px);
}

.reveal-line.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* hero stage / mascot */
.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  width: 70%;
  height: 45%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(240, 160, 48, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.stage-scan {
  position: absolute;
  inset: 8% 12% 12%;
  border: 1px dashed rgba(57, 255, 106, 0.18);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49%, rgba(57, 255, 106, 0.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(57, 255, 106, 0.06) 50%, transparent 51%);
  background-size: 100% 100%, 100% 100%;
}

.stage-frags {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  font-size: 0.65rem;
  color: rgba(57, 255, 106, 0.35);
}

.frag {
  position: absolute;
  white-space: nowrap;
}

.frag-1 { top: 6%; left: 0; }
.frag-2 { top: 18%; right: 0; }
.frag-3 { bottom: 22%; left: 2%; }
.frag-4 { bottom: 8%; right: 4%; color: rgba(77, 232, 255, 0.4); }

.stage-diag {
  position: absolute;
  top: 4%;
  right: 6%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--cyan-dim);
  pointer-events: none;
}

.diag-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.hero-mascot {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65));
  animation: mascot-float 4.5s ease-in-out infinite;
  background: transparent;
}

.antenna-pulse {
  position: absolute;
  top: 4%;
  left: 52%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(77, 232, 255, 0.55);
  box-shadow: 0 0 12px rgba(77, 232, 255, 0.8), 0 0 28px rgba(77, 232, 255, 0.35);
  z-index: 2;
  pointer-events: none;
  animation: antenna 2.2s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes antenna {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* CA strip */
.ca-strip {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
}

.ca-inner {
  border: 1px solid rgba(77, 232, 255, 0.35);
  background:
    linear-gradient(90deg, rgba(12, 28, 22, 0.95), rgba(18, 16, 10, 0.95));
  padding: 0.85rem 1rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.ca-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.ca-tag {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ca-note {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ca-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  color: var(--amber-hot);
  word-break: break-all;
  overflow-wrap: anywhere;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(240, 160, 48, 0.25);
}

/* marquee */
.marquee {
  border-block: 1px solid rgba(255, 90, 77, 0.35);
  background: rgba(40, 8, 8, 0.55);
  overflow: hidden;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--danger);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.55rem 0;
  opacity: 0.9;
}

.marquee-track span {
  padding-right: 0.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* sections shared */
.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(0.75rem, 2vw, 1.25rem);
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--green-dim);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--foam);
  letter-spacing: 0.04em;
}

/* origin chat log */
.chat-log {
  border: 1px solid rgba(106, 154, 114, 0.35);
  background: #0a0e0c;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(57, 255, 106, 0.15);
  font-size: 0.72rem;
  color: var(--green-mute);
  background: rgba(0, 0, 0, 0.4);
}

.chat-ts {
  margin-left: auto;
  color: var(--text-dim);
}

.chat-body {
  margin: 0;
  padding: 1rem 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}

.chat-body .sys {
  color: var(--text-dim);
}

.chat-body .nick {
  color: var(--amber);
  font-weight: 700;
}

.chat-body .typing {
  color: var(--cyan-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-aside {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  border-top: 1px dashed rgba(57, 255, 106, 0.2);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* answered */
.answered-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.editorial {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foam);
  text-transform: uppercase;
}

.editorial.alt {
  color: var(--amber-hot);
  margin-bottom: 1.25rem;
  text-shadow: var(--glow-amber);
}

.answered-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.answered-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--green-mute);
  border-bottom: 1px solid rgba(57, 255, 106, 0.1);
}

.answered-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
}

.answered-punch {
  margin: 0;
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 700;
}

.banner-wrap {
  margin: 0;
  position: relative;
}

.banner-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(77, 232, 255, 0.25);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.45),
    -2px -2px 0 rgba(57, 255, 106, 0.15);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}

.banner-wrap figcaption {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.banner-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}

/* vending machine */
.vending {
  max-width: 640px;
  margin: 0 auto;
  border: 3px solid #3a4448;
  background:
    linear-gradient(180deg, #1a2226 0%, #101418 40%, #0c1012 100%);
  box-shadow:
    inset 0 0 0 2px #5a6468,
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(240, 160, 48, 0.08);
  padding: 0.85rem;
}

.vending-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.65rem;
  background: #080a0c;
  border: 1px solid #2a3236;
  margin-bottom: 0.75rem;
}

.vm-brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber-hot);
  text-shadow: var(--glow-amber);
}

.vm-status {
  font-size: 0.75rem;
  color: var(--danger);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.vending-screen {
  background: #061208;
  border: 2px inset #1a3a22;
  padding: 0.9rem;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 0 30px rgba(57, 255, 106, 0.08);
}

.vm-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
  border-bottom: 1px dotted rgba(57, 255, 106, 0.2);
  font-size: 0.82rem;
  color: var(--green-mute);
}

.vm-row strong {
  color: var(--green);
  font-weight: 700;
  text-align: right;
}

.vm-dispense {
  position: relative;
  margin-top: 1rem;
  height: 72px;
  background: #020403;
  border: 2px solid #1a2a1e;
  overflow: hidden;
}

.vm-slot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 48px;
  height: 8px;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid #333;
}

.vm-can {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  background:
    linear-gradient(90deg, #1a1a1a, #2a2a2a 40%, #111 60%, #222),
    #1a1a1a;
  border-radius: 3px 3px 2px 2px;
  border: 1px solid #444;
  box-shadow: inset 0 0 0 2px rgba(77, 232, 255, 0.25);
  opacity: 0;
  pointer-events: none;
}

.vm-can.drop {
  animation: can-drop 0.85s ease-in forwards;
}

@keyframes can-drop {
  0% { top: -60px; opacity: 1; transform: rotate(0deg); }
  70% { top: 18px; opacity: 1; transform: rotate(8deg); }
  85% { top: 14px; transform: rotate(-4deg); }
  100% { top: 16px; opacity: 1; transform: rotate(2deg); }
}

.vm-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber-hot);
  background: rgba(240, 160, 48, 0.12);
  opacity: 0;
  pointer-events: none;
}

.vm-flash.show {
  animation: flash-msg 1.1s ease-out forwards;
}

@keyframes flash-msg {
  0% { opacity: 0; transform: scale(0.9); }
  20% { opacity: 1; transform: scale(1.05); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

.vending.is-flash .vending-screen {
  animation: screen-glitch 0.35s steps(2) 2;
}

@keyframes screen-glitch {
  0% { filter: none; transform: none; }
  50% { filter: hue-rotate(40deg); transform: translateX(2px); }
  100% { filter: none; transform: none; }
}

.vending-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.beer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  align-self: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #666;
  background:
    radial-gradient(circle at 35% 30%, #ffd080, var(--amber) 45%, #b86810);
  color: #2a1600;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.25),
    0 6px 0 #3a3a3a,
    0 0 20px rgba(240, 160, 48, 0.35);
  transition: transform 0.1s ease;
}

.beer-btn:hover {
  filter: brightness(1.08);
}

.beer-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 2px 0 #3a3a3a,
    0 0 12px rgba(240, 160, 48, 0.35);
}

.beer-btn-icon {
  width: 18px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, #222, #111);
  border: 1px solid #555;
  box-shadow: inset 0 0 0 1px rgba(77, 232, 255, 0.3);
}

.vm-disclaimer {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* how it works */
.cmd-list {
  border: 1px solid rgba(57, 255, 106, 0.25);
  background: rgba(6, 12, 8, 0.9);
  padding: 1rem 1.1rem;
}

.cmd {
  margin: 0;
  padding: 0.65rem 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--green);
  border-bottom: 1px solid rgba(57, 255, 106, 0.1);
}

.cmd:last-child {
  border-bottom: 0;
}

.cmd .prompt {
  color: var(--cyan);
  margin-right: 0.4rem;
}

.how-note {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 42rem;
}

/* gallery */
.attach-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: start;
}

.attach {
  margin: 0;
  background: rgba(10, 14, 12, 0.85);
  border: 1px solid rgba(138, 147, 153, 0.35);
  padding: 0.55rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attach:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.attach.a1 {
  grid-column: span 2;
  transform: rotate(-1.5deg);
}

.attach.a2 {
  grid-column: span 3;
  transform: rotate(1deg);
}

.attach.a3 {
  grid-column: span 1;
  transform: rotate(-0.8deg);
  min-width: 0;
}

.attach.a1:hover,
.attach.a2:hover,
.attach.a3:hover {
  transform: translateY(-4px) rotate(0deg);
}

.attach-meta {
  display: block;
  font-size: 0.65rem;
  color: var(--green-mute);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.attach-frame {
  overflow: hidden;
  background: #050705;
  border: 1px solid rgba(0, 0, 0, 0.5);
  position: relative;
}

.attach-frame.dark {
  background: transparent;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.attach-frame.dark img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.attach-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.attach-frame.dark img {
  aspect-ratio: auto;
}

.attach-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 3px
  );
  mix-blend-mode: multiply;
}

.attach-frame.dark::after {
  display: none;
}

.attach figcaption {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* final CTA */
.final-cta {
  border-top: 1px solid rgba(77, 232, 255, 0.15);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}

.final-hook {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--foam);
}

.final-hook.accent {
  color: var(--amber-hot);
  margin-bottom: 0.85rem;
  text-shadow: var(--glow-amber);
}

.final-sub {
  margin: 0 0 1.25rem;
  color: var(--cyan);
  font-size: 1rem;
}

.final-mascot {
  display: flex;
  justify-content: center;
}

.final-mascot img {
  width: min(100%, 360px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
  animation: mascot-float 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* footer */
.site-footer {
  border-top: 1px solid rgba(57, 255, 106, 0.2);
  background: #050706;
  padding: 1.5rem clamp(0.75rem, 2vw, 1.25rem) 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--cyan);
  font-weight: 700;
}

.footer-chain {
  color: var(--rh);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--foam);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.footer-line {
  margin: 0.5rem 0 0;
  color: var(--green-mute);
  font-size: 0.85rem;
}

/* scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cmd-list.reveal .cmd {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cmd-list.reveal.is-visible .cmd {
  opacity: 1;
  transform: none;
}

.cmd-list.reveal.is-visible .cmd:nth-child(2) {
  transition-delay: 0.12s;
}

.cmd-list.reveal.is-visible .cmd:nth-child(3) {
  transition-delay: 0.24s;
}

/* responsive */
@media (min-width: 900px) {
  .header-status {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 1rem;
  }

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

  .attach.a1,
  .attach.a2,
  .attach.a3 {
    grid-column: span 2;
  }

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

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    order: 2;
    min-height: 0;
  }

  .hero-terminal {
    order: 1;
  }

  .stage-frags,
  .stage-scan,
  .stage-diag {
    display: none;
  }

  .hero-mascot {
    width: min(100%, 360px);
  }

  .antenna-pulse {
    display: none;
  }

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

  .final-mascot {
    order: -1;
  }

  .final-mascot img {
    width: min(70%, 260px);
  }

  .attach,
  .attach.a1,
  .attach.a2,
  .attach.a3 {
    transform: none;
    grid-column: span 1;
  }

  .attach:hover,
  .attach.a1:hover,
  .attach.a2:hover,
  .attach.a3:hover {
    transform: translateY(-3px);
  }

  .attach-board {
    grid-template-columns: 1fr 1fr;
  }

  .header-nav .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-inner {
    gap: 0.4rem;
    padding-inline: 0.6rem;
  }

  .header-nav {
    gap: 0.3rem;
  }

  .term-quote {
    font-size: 1rem;
  }

  .attach-board {
    grid-template-columns: 1fr;
  }

  .vm-row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .vm-row strong {
    text-align: left;
  }

  .beer-btn {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 360px) {
  .header-nav .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
  }

  .hero-ctas .btn-lg {
    width: 100%;
  }
}

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

  .scanlines,
  .status-dot,
  .blink-cursor,
  .hero-mascot,
  .final-mascot img,
  .antenna-pulse,
  .diag-light,
  .marquee-track,
  .vm-status {
    animation: none !important;
  }

  .blink-cursor {
    opacity: 1;
  }

  .marquee-track {
    transform: none;
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .reveal-line,
  .reveal,
  .cmd-list.reveal .cmd {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vm-can.drop,
  .vm-flash.show,
  .vending.is-flash .vending-screen {
    animation: none !important;
  }

  .vm-can.drop {
    top: 16px;
    opacity: 1;
  }

  .vm-flash.show {
    opacity: 1;
  }

  .attach:hover {
    transform: none;
  }
}
