
:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: rgba(12, 31, 53, .88);
  --panel-light: rgba(19, 45, 70, .8);
  --border: rgba(104, 197, 255, .18);
  --text: #edf7ff;
  --muted: #9bb3ca;
  --cyan: #68edee;
  --blue: #4eabff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 10%, #123b5d 0, transparent 34%),
    radial-gradient(ellipse at 95% 34%, #073749 0, transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button:disabled { opacity: .6; cursor: wait; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(105px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: 20%; left: -190px; background: #16d9e9; }
.ambient-two { right: -190px; bottom: 2%; background: #417dff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(4, 14, 27, .9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #051321;
  font-size: 25px;
  background: linear-gradient(135deg, #52c6ff, #72f4df);
  box-shadow: 0 0 25px #38c9e72b;
}
.brand-dot, .footer-brand span { color: var(--cyan); }
.version { color: var(--muted); font-size: 11px; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nav-links a { color: #afc4d8; font-size: 13px; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-links .nav-wallet {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cyan);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--text);
}

.page-shell { width: min(1200px, calc(100% - 36px)); margin: auto; }

.hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 24px;
  padding: 50px 0 40px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 2.2px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}
.hero h1 {
  margin: 19px 0 15px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -3.5px;
  line-height: 1.02;
}
.hero h1 span {
  background: linear-gradient(95deg, #4bb6ff, #75f2dc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }

.primary-btn, .secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 12px 17px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, filter .2s, border-color .2s;
}
.primary-btn {
  color: #041321;
  border: 0;
  background: linear-gradient(100deg, #54c4ff, #75f2dc);
  box-shadow: 0 8px 25px #4ebfff22;
}
.primary-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.secondary-btn {
  color: var(--text);
  background: rgba(24, 52, 78, .65);
  border: 1px solid var(--border);
}
.secondary-btn:hover { border-color: var(--cyan); }

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.orbit {
  position: absolute;
  border: 1px solid #64e9f52c;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-one { width: 300px; height: 190px; }
.orbit-two { width: 350px; height: 235px; transform: rotate(40deg); }
.core-card {
  position: relative;
  z-index: 2;
  width: min(255px, 78%);
  padding: 25px;
  border: 1px solid #75e8f34a;
  border-radius: 25px;
  background: linear-gradient(145deg, #173e59ed, #07192bf2);
  box-shadow: 0 0 70px #26d9ed12, inset 0 1px #ffffff12;
  backdrop-filter: blur(20px);
  transform: rotate(-4deg);
}
.core-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #041321;
  font-size: 29px;
  font-weight: 900;
  background: linear-gradient(135deg, #52c6ff, #72f4df);
}
.core-caption { color: var(--cyan); font-size: 9px; letter-spacing: 1.5px; }
.core-card strong { display: block; margin-top: 9px; font-size: 22px; letter-spacing: -.6px; }
.core-line { height: 1px; margin: 22px 0 13px; background: var(--border); }
.core-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #091e31ed;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.chip-one { top: 37px; right: 4%; }
.chip-two { bottom: 30px; left: 0; }

.market-section { padding: 25px 0 50px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 8px 0; font-size: clamp(28px, 4vw, 39px); letter-spacing: -1.4px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.publish-link { color: var(--cyan); font-size: 12px; font-weight: 800; white-space: nowrap; }

.market-controls { display: flex; align-items: center; gap: 13px; margin-top: 29px; }
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #081b2d;
}
.search-box > span { color: var(--cyan); font-size: 26px; }
.search-box input { width: 100%; min-width: 0; padding: 15px 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #718ca4; }
.search-box kbd { padding: 4px 7px; border: 1px solid #31516c; border-radius: 6px; color: var(--muted); font-size: 10px; }
.sort-control { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 14px; background: #081b2d; }
.sort-control span { color: var(--muted); font-size: 11px; }
.sort-control select { max-width: 190px; padding: 14px 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.sort-control option { background: #0a1c2e; }

.category-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.category-chip {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0b2033a8;
  color: #afc4d8;
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
}
.category-chip:hover { border-color: #68edee88; color: var(--text); }
.category-chip.active {
  color: #041321;
  border-color: transparent;
  background: linear-gradient(100deg, #54c4ff, #75f2dc);
  font-weight: 850;
}

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 16px; }
.result-bar p { margin: 0; color: var(--muted); font-size: 12px; }
.secure-label { color: #91dcca; font-size: 10px; }
.secure-label span { color: #66e6bf; margin-right: 5px; }

.notice { display: none; padding: 13px 15px; margin-bottom: 17px; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.notice:not(:empty) { display: block; }
.notice.error { color: #ffb5cf; border: 1px solid #ff87bd70; background: #6c18331b; }
.notice.success { color: #86f7d7; border: 1px solid #68edee52; background: #0e77601b; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(17, 43, 68, .92), rgba(7, 23, 40, .96));
  box-shadow: 0 12px 35px #00000013, inset 0 1px #ffffff06;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.product-card:hover { transform: translateY(-4px); border-color: #68edee65; box-shadow: 0 17px 38px #0000002b, 0 0 30px #38d5e80b; }
.product-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 25% 15%, #3bc9e744, transparent 48%),
    linear-gradient(135deg, #102d49, #0a1a2c);
}
.product-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.product-placeholder { color: #74e6f2; font-size: 48px; font-weight: 800; text-shadow: 0 0 35px #4cd5e655; }
.product-type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 9px;
  border: 1px solid #b5eff52b;
  border-radius: 8px;
  color: #e2fcff;
  background: #071b2ddc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 17px; }
.product-title { margin: 0 0 8px; font-size: 17px; letter-spacing: -.4px; line-height: 1.35; overflow-wrap: anywhere; }
.product-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 57px; margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.product-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding: 14px 0; border-top: 1px solid var(--border); }
.price-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; background: #07192b; font-size: 11px; font-weight: 800; }
.price-pill.gc { color: var(--cyan); }
.price-pill.ngn { color: #a9caff; }
.free-label { color: #7cf0c8; font-size: 12px; font-weight: 850; }
.product-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 2px; }
.buy-button { width: 100%; min-height: 42px; border: 0; border-radius: 11px; color: #041321; background: linear-gradient(100deg, #54c4ff, #75f2dc); font-size: 11px; font-weight: 900; cursor: pointer; transition: filter .2s, transform .2s; }
.buy-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy-button.alt { color: var(--text); border: 1px solid var(--border); background: #102b42; }
.buy-button:disabled { transform: none; filter: none; opacity: .55; cursor: not-allowed; }
.product-footnote { margin: 11px 0 0; color: #7f9bb3; font-size: 10px; line-height: 1.5; }

.loading-card {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
}
.spinner { width: 28px; height: 28px; border: 2px solid #ffffff18; border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { margin-top: 20px; padding: 50px 20px; border: 1px dashed var(--border); border-radius: 18px; text-align: center; }
.empty-state[hidden], .load-error[hidden] { display: none; }
.empty-icon { color: var(--cyan); font-size: 40px; }
.empty-state h3, .load-error h3 { margin: 8px 0; }
.empty-state p, .load-error p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.load-error { padding: 35px 20px; text-align: center; border: 1px solid #ff87bd55; border-radius: 18px; background: #6c183311; }

.developer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 12px 0 30px;
  padding: clamp(23px, 4vw, 42px);
  border: 1px solid #68edee2e;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 95% 0, #3bc9e725, transparent 45%),
    linear-gradient(120deg, #102e48, #091a2c);
}
.developer-banner h2 { margin: 10px 0; font-size: clamp(23px, 3.5vw, 34px); letter-spacing: -1px; }
.developer-banner p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.developer-banner .primary-btn { flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 24px 0 35px; color: #829bb2; font-size: 11px; }
.footer-brand { color: var(--text); font-size: 15px; font-weight: 900; }

@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-top: 1px solid #ffffff0b; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr .7fr; }
  .orbit-two { width: 280px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 70px; padding: 12px 17px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 40px; height: 40px; }
  .page-shell { width: calc(100% - 26px); }
  .hero { grid-template-columns: 1fr; padding-top: 42px; gap: 0; }
  .hero h1 { letter-spacing: -2px; }
  .hero-visual { min-height: 250px; margin-top: 12px; }
  .orbit-one { width: 270px; height: 170px; }
  .orbit-two { width: 305px; height: 205px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .market-controls { align-items: stretch; flex-direction: column; }
  .sort-control { justify-content: space-between; }
  .sort-control select { flex: 1; max-width: none; }
  .result-bar { align-items: flex-start; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 16 / 9; }
  .developer-banner { align-items: flex-start; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; }
}

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