/* ===== Bento Feedback — Hack Club dark theme ===== */
@font-face {
  font-family: 'Phantom Sans';
  src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff2') format('woff2'),
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Phantom Sans';
  src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff2') format('woff2'),
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff') format('woff');
  font-weight: bold;
  font-display: swap;
}

:root {
  --bg: #0c1016;
  --panel: #151b24;
  --panel-2: #1a2230;
  --line: #242e3d;
  --ink: #f6f2e9;
  --muted: #9aa7b8;
  --red: #ec3750;
  --orange: #ff8c37;
  --yellow: #f1c40f;
  --green: #33d6a6;
  --blue: #338eda;
  --purple: #a633d6;
  --radius: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Phantom Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint 42px grid + red glow, à la clubs.hackclub.com */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 90%);
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(236, 55, 80, 0.18), transparent 70%);
}

img {
  max-width: 100%;
}

a {
  color: var(--red);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  font-size: 17px;
}
.nav-brand em {
  font-style: normal;
  color: var(--red);
}
.nav-flag {
  height: 30px;
}
.nav-bento {
  height: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink) !important;
}
.nav-cta:hover {
  border-color: var(--red);
}

@media (max-width: 780px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px) 40px;
  text-align: center;
}
.hero-sushi {
  position: absolute;
  top: 40px;
  right: clamp(0px, 4vw, 30px);
  width: clamp(90px, 14vw, 170px);
  transform: rotate(9deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%,
  100% {
    transform: rotate(9deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-14px);
  }
}
@media (max-width: 720px) {
  .hero-sushi {
    opacity: 0.35;
    top: 10px;
  }
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: bold;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.grad {
  background: linear-gradient(120deg, var(--red), var(--orange) 55%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 auto 26px;
  max-width: 900px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
}
.stat b {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat.c-red b {
  color: var(--red);
}
.stat.c-green b {
  color: var(--green);
}
.stat.c-blue b {
  color: var(--blue);
}
.stat.c-yellow b {
  color: var(--yellow);
}
.stat.c-purple b {
  color: var(--purple);
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--red);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(236, 55, 80, 0.35);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--red);
  box-shadow: none;
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 84px) clamp(16px, 4vw, 40px) 10px;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 15.5px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.panel-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.tag {
  font-size: 11px;
  background: rgba(236, 55, 80, 0.15);
  color: var(--red);
  border: 1px solid rgba(236, 55, 80, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.fineprint b {
  color: var(--ink);
}

/* ===== GLOBE ===== */
.globe-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  padding: 18px;
}
@media (max-width: 860px) {
  .globe-wrap {
    grid-template-columns: 1fr;
  }
}
.globe-stage {
  position: relative;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #101725 0%, #0a0e14 70%);
}
#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#globe-canvas.dragging {
  cursor: grabbing;
}
.globe-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.4s;
}
.globe-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -130%);
  background: #0a0e14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.globe-tip b {
  color: var(--red);
}

.country-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.cbar {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--panel-2);
  transition: border-color 0.15s, transform 0.12s;
  text-align: left;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.cbar:hover {
  border-color: var(--line);
  transform: translateX(3px);
}
.cbar.active {
  border-color: var(--red);
  background: rgba(236, 55, 80, 0.12);
}
.cbar .flag {
  font-size: 17px;
}
.cbar .meter {
  grid-column: 1 / -1;
  height: 5px;
  background: #0d1219;
  border-radius: 999px;
  overflow: hidden;
}
.cbar .meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 999px;
}
.cbar .count {
  font-weight: bold;
  color: var(--muted);
  font-size: 13px;
}
.cbar.active .count {
  color: var(--red);
}

/* ===== THEMES ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.theme-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.theme-card:hover {
  transform: translateY(-4px);
}
.theme-card.active {
  border-color: var(--tc, var(--red));
}
.theme-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tc);
}
.theme-card .emoji {
  font-size: 26px;
}
.theme-card .tcount {
  float: right;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  color: var(--tc);
}
.theme-card h4 {
  margin: 8px 0 6px;
  font-size: 17px;
}
.theme-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.theme-card .mini {
  margin-top: 12px;
  height: 6px;
  background: #0d1219;
  border-radius: 999px;
  overflow: hidden;
}
.theme-card .mini i {
  display: block;
  height: 100%;
  background: var(--tc);
}

/* ===== THREE COLUMN (pipeline / nps / channels) ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* NPS gauge */
.nps {
  text-align: center;
}
.nps svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}
.nps .nps-num {
  font-size: 44px;
  font-weight: bold;
  color: var(--green);
  line-height: 1;
}
.nps .split {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.nps .split b {
  color: var(--ink);
}

/* channels */
.chrow {
  margin-bottom: 12px;
  font-size: 14px;
}
.chrow .chead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.chrow .chead b {
  font-weight: bold;
}
.chrow .chead span {
  color: var(--muted);
  font-size: 13px;
}
.chtrack {
  height: 10px;
  background: #0d1219;
  border-radius: 999px;
  overflow: hidden;
}
.chtrack i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chdetail {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}

/* ===== VOICES ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  cursor: pointer;
  font: inherit;
  transition: all 0.15s;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.chip.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: bold;
}
.filter-status {
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}
.filter-status button {
  margin-left: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.filter-status button:hover {
  border-color: var(--red);
}

.masonry {
  column-count: 3;
  column-gap: 14px;
}
@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}
.quote {
  break-inside: avoid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  display: inline-block;
  width: 100%;
}
.quote .q {
  font-size: 15.5px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.quote .q::before {
  content: '“';
  color: var(--red);
  font-weight: bold;
}
.quote .q::after {
  content: '”';
  color: var(--red);
  font-weight: bold;
}
.quote .improve {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 3px solid var(--orange);
  padding-left: 10px;
  margin: 0 0 12px;
}
.quote .improve b {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.quote .who b {
  color: var(--ink);
}
.quote .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.qt {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  background: none;
  font: inherit;
  font-size: 11px;
}
/* ===== RESPONSE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.rcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s;
}
.rcard:hover {
  transform: translateY(-3px);
  border-color: #31405a;
}
.rcard.hidden {
  display: none;
}
.rcard .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rcard .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}
.rcard .who .flag {
  font-size: 18px;
}
.rcard .who small {
  color: var(--muted);
  font-weight: normal;
}
.rcard dl {
  margin: 0;
  font-size: 13.5px;
}
.rcard dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.rcard dd {
  margin: 2px 0 0;
}
.rcard .dd-well {
  color: var(--ink);
}
.rcard .dd-improve {
  color: #ffd9c2;
}
.rcard .dd-heard {
  color: var(--muted);
}
.rcard .repo {
  margin-top: auto;
  font-size: 13px;
  word-break: break-all;
}
.rcard .repo a {
  text-decoration: none;
}
.rcard .repo a:hover {
  text-decoration: underline;
}
.rcard .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: #0a0e14;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 40px) 50px;
  text-align: center;
}
.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 34px;
}
.footer p {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer .muted {
  font-size: 12.5px;
  opacity: 0.75;
}

/* ===== CODE GATE ===== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(236, 55, 80, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.gate-card {
  width: min(430px, 100%);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.gate-card img {
  height: 54px;
  margin-bottom: 10px;
}
.gate-card h2 {
  margin: 4px 0 8px;
  font-size: 27px;
  letter-spacing: -0.02em;
}
.gate-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
#gate-form {
  display: flex;
  gap: 8px;
}
#gate-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1219;
  color: var(--ink);
  font: inherit;
}
#gate-input:focus {
  outline: none;
  border-color: var(--red);
}
#gate-form button {
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: filter 0.15s;
}
#gate-form button:hover {
  filter: brightness(1.12);
}
.gate-error {
  color: var(--red);
  font-size: 13.5px;
  margin: 12px 0 0;
}
.gate-note {
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 0;
  opacity: 0.8;
}
.gate.shake {
  animation: gate-shake 0.4s;
}
@keyframes gate-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
