@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #050910;
  --card: #0c111a;
  --accent: #00e0a4;
  --accent-2: #4dc4ff;
  --text: #e7f0ff;
  --muted: #9fb5d6;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 10px 50px rgba(0, 224, 164, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --grad: linear-gradient(145deg, rgba(0, 224, 164, 0.14), rgba(77, 196, 255, 0.16));
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(0, 224, 164, 0.12), transparent),
    radial-gradient(40% 40% at 80% 0%, rgba(77, 196, 255, 0.14), transparent),
    linear-gradient(140deg, #050910 0%, #0b1324 45%, #050910 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.layout-zone {
  position: relative;
  z-index: 0;
}

.layout-zone > .layout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.layout-layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transform-origin: center;
}

.layout-layer.frame img {
  object-fit: contain;
}

.layout-zone > :not(.layout-layer) {
  position: relative;
  z-index: 1;
}

.utility-bar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: rgba(5, 9, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 16px;
  z-index: 10;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  text-transform: uppercase;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--border);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  margin: 44px 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 224, 164, 0.3);
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.cta.tiny {
  padding: 8px 12px;
  font-weight: 600;
}

.cta.small {
  padding: 8px 12px;
  font-weight: 600;
}

.cta.video {
  border-color: rgba(77, 196, 255, 0.6);
  color: #a7dfff;
}

.cta.poker {
  border-color: rgba(255, 99, 99, 0.6);
  color: #ffc8c8;
}

.sidebar .nav-actions .pill,
.sidebar .nav-actions .cta.secondary {
  background: rgba(15, 22, 36, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}

.sidebar .about-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 22, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: center;
}

.hero-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 224, 164, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(77, 196, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.pill.tiny {
  padding: 6px 10px;
  font-size: 12px;
}

.section {
  margin: 52px 0;
}

.section.how,
.section.value {
  margin-top: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), transparent 60%);
  pointer-events: none;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.step strong {
  display: block;
  margin-bottom: 6px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(145deg, rgba(0, 224, 164, 0.08), rgba(77, 196, 255, 0.08)), var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.creator-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #0d111a;
}

.creator-title {
  margin: 0;
}

.subline {
  color: var(--muted);
  font-size: 14px;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text);
}

.flag.live {
  background: rgba(255, 99, 99, 0.14);
  border-color: rgba(255, 99, 99, 0.35);
  color: #ffc8c8;
}

.carousel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  height: auto;
  padding: 6px;
  display: grid;
  align-items: center;
}

.carousel-track {
  position: relative;
  height: 100%;
  z-index: 2;
}

.carousel-slide {
  position: relative;
  position: absolute;
  inset: 0;
  margin: 0 0 0 0;
  width: 100%;
  height: calc(100% - 0px);
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(0, 224, 164, 0.1), transparent 40%), #0d111a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0d111a;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide img.loaded {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.carousel-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  margin: 10px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.quick-cards .card h3,
.steps .card h3 {
  margin-top: 8px;
}

.steps .card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(0, 224, 164, 0.06), rgba(77, 196, 255, 0.05));
}

.value .card {
  text-align: center;
}

.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 224, 164, 0.04), rgba(77, 196, 255, 0.04));
  backdrop-filter: blur(2px);
  z-index: 2;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.live-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  background: transparent;
}

.video-player {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-player video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #0d111a;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  background: #0d111a;
}

.video-title {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  width: min(420px, 100%);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.close-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 6px 10px;
}

.form {
  display: grid;
  gap: 10px;
}

.form input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.form .cta.full {
  width: 100%;
  justify-content: center;
}

.wallet-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}
.img-btn {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.img-btn img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
}
.img-btn[disabled],
.img-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.3);
  pointer-events: none;
}
.creator-card.explore-card .img-btn img {
  height: 38px;
  max-width: 180px;
}
.creator-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Explore page grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.explore-card {
  min-height: 0;
}

.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 224, 164, 0.04), rgba(77, 196, 255, 0.04)), #0d111a;
  display: grid;
  place-items: center;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d111a;
  transition: opacity 0.3s ease;
}

.preview img.loaded {
  opacity: 1;
}

.creator-card {
  position: relative;
  background: linear-gradient(150deg, rgba(0, 224, 164, 0.06), rgba(77, 196, 255, 0.05)), var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-height: 320px;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.creator-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.creator-card.card-hide {
  opacity: 0;
  transform: translateY(10px);
}

.creator-card.iframe-card {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: block;
  min-height: 360px;
}
.creator-card.iframe-card iframe {
  width: 100%;
  height: 420px;
  display: block;
}
.creator-card.iframe-card::after {
  display: none;
}

.creator-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 64px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

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

  header {
    position: static;
  }
}
