/* ── Ticker strip ── */
.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #fea620;
  border-bottom: 2px solid #000;
  z-index: 100;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-code   { padding: 0 32px; }
.ticker-urgent { padding: 0 32px; color: #1a1a1a; }
.ticker-sep    { padding: 0 8px; opacity: 0.5; }

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

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

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background-color: #fff;
  font-family: 'Black Han Sans', sans-serif;
  padding-top: 32px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('bg.jpg') center center / cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px 44px;
}

/* ── Scroll hint ── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  animation: hint-bounce 1.8s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 0.6;
}

.scroll-hint svg {
  width: 32px;
  height: 22px;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Header */
header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.logo {
  position: absolute;
  left: -34px;
  width: 180px;
  height: 180px;
  object-fit: contain;
  z-index: 2;
  /* filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.22)); */
}

h1 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(43px, 6.6vw, 84px);
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 2px;
  line-height: 1;
  user-select: none;
  text-align: center;
  width: 100%;
  text-shadow: 5px 5px 0 rgba(0,0,0,0.18);
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 4px;
}

/* ── Keyboard flow ─────────────────────────────────────── */

.flow {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible;
  padding-bottom: 130px; /* room for action list floating below center key */
  margin-top: 120px;
}

/* Key groups */
.kbd-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Toast (appears above keys) ── */
.toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-wide {
  max-width: 320px;
  white-space: normal;
  text-align: left;
  line-height: 1.55;
}

/* ── Keys ── */
.key {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 #000;
  user-select: none;
  white-space: nowrap;
  min-width: 90px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.key.pressed {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.key-name {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.key-symbol {
  font-size: 13px;
  color: #000;
  opacity: 0.4;
  letter-spacing: 2px;
}

.k {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

/* Orange center key */
.key-center {
  background: #fea620;
  min-width: 130px;
  padding: 12px 24px;
}
.key-center .key-name   { color: #000; }
.key-center .key-symbol { color: #000; opacity: 0.35; }
.key-center .k          { font-size: 30px; color: #000; }

.key-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Action cycling list (floats below center key group) ── */
.action-list-wrap {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 72px;        /* 3 items × 24px */
  overflow: hidden;
}

/* Custom prompt chip — floats above the orange key */
.prompt-chip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff8e8;
  border: 2px solid #fea620;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #e8940f;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #b37200;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prompt-chip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Shift toast further up when chip is also showing */
#group-action.has-prompt .toast {
  bottom: calc(100% + 50px);
}

.action-list {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-item {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: #aaa;
  flex-shrink: 0;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.08);
}

.action-item.active {
  color: #000;
  font-weight: 700;
  font-size: 16px;
  /* text-shadow: 3px 3px 0 rgba(0,0,0,0.15); */
}

/* ── Arrows ── */
.flow-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 18px;  /* visually align with key midpoint */
}

.flow-arrow.thin svg  { width: 52px; height: 20px; }
.flow-arrow.thick svg { width: 72px; height: 28px; }

/* ── Text boxes ── */
.textbox {
  width: 148px;
  border: 3px solid #000;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  flex-shrink: 0;
}

.textbox-body {
  background: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #000;
  padding: 10px;
  line-height: 1.65;
  min-height: 70px;
}

.output-body {
  transition: opacity 0.3s ease;
}

.output-body.populating {
  animation: popIn 0.4s ease;
}

.placeholder { color: #bbb; }

/* ── Key press + fade animations ── */
@keyframes popIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Description ── */
.description {
  width: calc(100vw - 120px);
  max-width: 1300px;
  text-align: center;
}

.description p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22.5px;
  font-weight: 700;
  color: #333;
  line-height: 1.65;
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 20px rgba(255,255,255,1),
    0 0 30px rgba(255,255,255,0.9),
    2px 2px 0 rgba(255,255,255,0.8),
    -2px -2px 0 rgba(255,255,255,0.8),
    2px -2px 0 rgba(255,255,255,0.8),
    -2px 2px 0 rgba(255,255,255,0.8);
}

.description strong { color: #000; font-weight: 900; }
.description em     { color: #fea620; font-style: normal; font-weight: 900; }

/* ── Download button ── */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 52px;
  background: #fea620;
  border: 3px solid #000;
  border-radius: 60px;
  box-shadow: 5px 5px 0 #000;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 28px;
  color: #000;
  text-decoration: none;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.download-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #000;
}

.download-btn:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 1px 1px 0 #000 !important;
  transition: none !important;
}

.dl-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ── Download section wrapper ── */
.download-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 56px 56px;
}

/* ── Split panel ── */
.download-split {
  display: none;
  align-items: stretch;
  gap: 0;
}

/* ── Individual card pop-in animation ── */
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(0.72) translateY(14px); }
  65%  { transform: scale(1.04) translateY(-3px); }
  82%  { transform: scale(0.98) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Individual cards ── */
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #000;
  padding: 18px 20px;
  width: 300px;
}

.dl-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #000;
}

/* ── Command block ── */
.dl-cmd-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f5f5f5;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
}

.dl-cmd-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  color: #000;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.dl-copy-btn {
  flex-shrink: 0;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #000;
  background: #fea620;
  border: none;
  border-left: 2px solid #000;
  padding: 0 12px;
  height: 100%;
  min-height: 34px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.dl-copy-btn:hover  { background: #e8940f; }
.dl-copy-btn.copied { background: #000; color: #fea620; }

.dl-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #888;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   MOBILE  (≤ 768px) — desktop rules untouched
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Enable vertical scrolling */
  html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Page: natural flow, not fixed 100vh */
  .page {
    height: auto;
    min-height: 100vh;
    padding: 24px 20px 40px;
    justify-content: flex-start;
    gap: 28px;
  }

  .download-section {
    padding: 32px 20px 40px;
  }

  /* Header: stack logo above title */
  header {
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    gap: 0;
  }

  .logo {
    position: static;
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .tagline {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  /* Flow: vertical column */
  .flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    margin-top: 0;
    width: 100%;
  }

  /* Hide horizontal SVG arrows — vertical order is self-evident */
  .flow-arrow {
    display: none;
  }

  /* Textboxes: expand for mobile */
  .textbox {
    width: min(300px, 88vw);
  }

  /* Keys: larger touch targets */
  .key {
    min-width: 130px;
    min-height: 60px;
    padding: 12px 28px;
  }

  .key-center {
    min-width: 160px;
  }

  /* Action list: pull into normal flow instead of absolute */
  .action-list-wrap {
    position: static;
    left: auto;
    transform: none;
    width: 180px;
    margin-top: 4px;
  }

  /* Description: full-width with breathing room */
  .description {
    width: calc(100vw - 40px);
  }

  .description p {
    font-size: 19.5px;
    line-height: 1.75;
  }

  /* Download button: slightly smaller */
  .download-btn {
    font-size: 22px;
    padding: 16px 36px;
  }

  /* Download card: flexible width */
  .dl-card {
    width: min(320px, calc(100vw - 40px));
  }

  /* Command text: keep single-line with ellipsis */
  .dl-cmd-text {
    font-size: 8.5px;
  }
}

/* ── Feedback section ── */
.feedback-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 64px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.feedback-heading {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: #000;
  letter-spacing: 1px;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.12);
}

.feedback-scroller {
  width: 100%;
  overflow: hidden;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.feedback-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: feedback-scroll 38s linear infinite;
  will-change: transform;
}

.feedback-track:hover {
  animation-play-state: paused;
}

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

.feedback-card {
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #000;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 272px;
  flex-shrink: 0;
}

.feedback-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f0f0f0;
}

.x-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #000;
}

.feedback-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.3px;
}

.feedback-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: #333;
  line-height: 1.75;
}

/* ── Contact footer ── */
.contact-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 2px solid #e8e8e8;
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #ccc;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  background: #fff;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.contact-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}

@media (max-width: 768px) {
  .feedback-section {
    padding: 48px 0 36px;
  }

  .contact-footer {
    padding: 24px 20px 40px;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
  }
}

