:root {
  --bg: #030305;
  --panel: #141418;
  --panel-soft: #1a1b20;
  --text: #e9e9ee;
  --muted: #9697a1;
  --accent: #ff3b47;
  --accent-dark: #b3131f;
  --grid-line-soft: rgba(255, 40, 40, 0.11);
  --grid-line-strong: rgba(255, 40, 40, 0.3);
  --cursor-glow-strong: rgba(255, 42, 55, 0.24);
  --cursor-glow-mid: rgba(255, 42, 55, 0.09);
  --cursor-glow-fade: rgba(255, 42, 55, 0);
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
}

img {
  background: transparent;
  background-color: transparent;
}

.grid-focus {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  -webkit-mask-image: radial-gradient(
    circle 130px at var(--cursor-x) var(--cursor-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    circle 130px at var(--cursor-x) var(--cursor-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0) 100%
  );
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    var(--cursor-glow-strong) 0%,
    var(--cursor-glow-mid) 35%,
    var(--cursor-glow-fade) 72%
  );
  filter: blur(14px);
}

.section-wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.kakobuy-promo {
  position: relative;
  z-index: 4;
  padding: 1.25rem 0 0.5rem;
}

.kakobuy-promo--footer {
  padding: 2.5rem 0 3rem;
  margin-top: 0.5rem;
}

.kakobuy-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #0d0d12 0%, #08080c 50%, #12121a 100%);
  border: 1px solid rgba(255, 59, 71, 0.35);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kakobuy-promo-inner:hover {
  border-color: rgba(255, 59, 71, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.15);
}

.kakobuy-promo-copy {
  flex: 1 1 min(100%, 320px);
  max-width: 520px;
}

.kakobuy-promo-head {
  margin: 0 0 1rem;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.15rem, 3.2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.kakobuy-promo-highlight {
  display: inline-block;
  margin: 0 0.15em;
  padding: 0.08em 0.28em;
  background: var(--accent);
  color: #0a0001;
}

.kakobuy-promo-cta {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #120003;
  background: var(--accent);
  border-radius: 8px;
}

.kakobuy-promo-visual {
  flex: 0 1 280px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kakobuy-promo-visual img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(3, 3, 5, 0.9), rgba(3, 3, 5, 0.55));
}

.brand {
  font-family: "Anton", sans-serif;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1.5px;
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.nav {
  display: flex;
  gap: 1.3rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

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

.hero {
  position: relative;
  z-index: 4;
  min-height: 85vh;
  padding: 2.2rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.8rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero-copy h1 {
  font-family: "Anton", sans-serif;
  line-height: 0.93;
  font-size: clamp(3rem, 8vw, 6.8rem);
  color: var(--accent);
  max-width: 10ch;
}

.actions {
  display: flex;
  gap: 0.75rem;
}

.btn,
.card a,
.card button {
  text-transform: uppercase;
  border-radius: 7px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.card a:hover,
.card button:hover {
  transform: translateY(-1px);
}

.btn-solid,
.card a,
.card button {
  background: var(--accent);
  color: #180104;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
}

.product-wall {
  height: min(78vh, 780px);
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.product-wall::before,
.product-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 3;
  pointer-events: none;
}

.product-wall::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(3, 3, 5, 1), rgba(3, 3, 5, 0));
}

.product-wall::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(3, 3, 5, 1), rgba(3, 3, 5, 0));
}

.column {
  overflow: hidden;
  border-radius: 12px;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  will-change: transform;
  /* Marquee motion is driven by main.js (Web Animations API) for reliable cross-browser scrolling. */
}

.card {
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem;
}

.chip {
  display: none;
}

.thumb {
  width: 100%;
  height: 160px;
  border-radius: 9px;
  margin-top: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card h3 {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.card p {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.86rem;
}

.card a,
.card button {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.buy-agent-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.buy-agent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.buy-agent-dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 11vh auto 0;
  background: linear-gradient(180deg, #1c1c22, #111116);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem;
}

.buy-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.buy-agent-head h2 {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buy-agent-close {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.buy-agent-sub {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buy-agent-list {
  display: grid;
  gap: 0.45rem;
}

.buy-agent-option {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.buy-agent-option:hover {
  background: rgba(255, 59, 71, 0.12);
}

.featured {
  position: relative;
  z-index: 4;
  padding: 5rem 0 5.5rem;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.title-row h2,
.faq-title {
  font-family: "Anton", sans-serif;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 6.4vw, 4rem);
}

.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.55rem;
}

.category-row a {
  display: block;
  min-height: 130px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  padding: 0.7rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.category-row a img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.category-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.category-row a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.faq {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 4rem 0 5rem;
}

.faq-title {
  margin: 0 0 0.5rem;
}

.faq-sub {
  margin: 0 0 1.75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 500;
  color: #b8b9c2;
  letter-spacing: 0.04em;
}

.faq-accordion {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: left;
}

.faq-item {
  margin-bottom: 0.55rem;
  border-radius: 10px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f4f4f5;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q:hover {
  color: #fff;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.faq-icon::after {
  content: "+";
}

.faq-item.is-open .faq-icon::after {
  content: "×";
}

.faq-a {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0.85rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.65;
  color: #d8d8e0;
  font-weight: 400;
}

.faq-community {
  margin: 0 0 1rem;
  color: #d1d2d7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.centered {
  justify-content: center;
}

.footer {
  position: relative;
  z-index: 4;
  background: #f53844;
  color: #130003;
  padding: 3.2rem 0 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.6rem;
}

.footer h3,
.footer h4 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer p {
  max-width: 40ch;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer a {
  display: block;
  margin-top: 0.4rem;
  color: #180104;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.74rem;
}

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

  .product-wall {
    height: 62vh;
  }

  .category-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 0.85rem;
    max-width: 100%;
  }

  .nav a {
    font-size: 0.62rem;
  }

  .product-wall {
    height: 68vh;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .track {
    gap: 0.45rem;
  }

  .card {
    border-radius: 10px;
    padding: 0.45rem;
  }

  .chip {
    font-size: 0.46rem;
    letter-spacing: 0.06em;
  }

  .thumb {
    height: 82px;
    margin-top: 0.45rem;
    border-radius: 7px;
  }

  .card h3 {
    margin-top: 0.4rem;
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .card a {
    font-size: 0.56rem;
    padding: 0.42rem 0.55rem;
  }

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

  .category-row {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .kakobuy-promo-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .kakobuy-promo-visual {
    flex-basis: auto;
  }
}
