/*
 * cliptohouse.com — public site (landing + legal pages). Same design language as the
 * game: near-black surfaces, one crimson accent, Poppins, small radii, thin dividers.
 */
:root {
  --bg: #0c0c0f;
  --strip: #08080a;
  --surface: #141418;
  --raised: #1b1b21;
  --line: #26262d;
  --text: #f4f4f6;
  --muted: #9a9aa5;
  --dim: #63636d;
  --accent: #e30a17;
  --accent-hover: #f5283a;
  --gold: #e8b64a;
  --good: #3ccf7a;
  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1400px 560px at 50% -200px, rgb(110 18 38 / 0.5), transparent 70%), var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(227 10 23 / 0.4);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
  background: rgb(12 12 15 / 0.78);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.brand .word {
  font-weight: 700;
}
.brand span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    transform 0.15s,
    border-color 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(227 10 23 / 0.7);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--raised);
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--dim);
}

/* The ladder: the nine paper clips climbing from $1 to $100M. */
.ladder {
  position: relative;
  height: 470px;
}
.ladder::before {
  content: '';
  position: absolute;
  inset: 10% 6% 6% 10%;
  background: radial-gradient(circle at 60% 40%, rgb(227 10 23 / 0.22), transparent 60%);
  filter: blur(10px);
}
.rung {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
}
.rung img {
  width: var(--s, 84px);
  height: var(--s, 84px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.5));
}
.rung span {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.08);
  color: var(--muted);
  white-space: nowrap;
}
.rung.top span {
  color: #fff;
  background: rgb(227 10 23 / 0.25);
  border-color: rgb(227 10 23 / 0.6);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rung,
  .reveal-card {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------- stats */

.stats {
  border-block: 1px solid var(--line);
  background: rgb(8 8 10 / 0.6);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
}
.stat b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------- sections */

section.block {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgb(227 10 23 / 0.15);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 18px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.mini {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}
.mini .card {
  flex: 1;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--raised);
  padding: 10px;
  font-size: 12px;
}
.mini .card .thumb {
  height: 54px;
  border-radius: 4px;
  background: linear-gradient(135deg, #24242c, #18181d);
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}
.mini .card .thumb img {
  width: 44px;
  height: 44px;
}
.mini .price {
  font-weight: 700;
  font-size: 15px;
}
.mini .hidden {
  letter-spacing: 0.2em;
  color: var(--dim);
}
.mini .up {
  color: var(--good);
}
.mini .picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Modes */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.mode:hover {
  transform: translateY(-4px);
  border-color: rgb(255 255 255 / 0.18);
}
.mode .art {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.mode .art.classic {
  background: linear-gradient(180deg, #6a1426, #2a0a12);
}
.mode .art.ranked {
  background: #170a2e url('assets/space.jpg') center / cover;
}
.mode .art.ranked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #6d28d9;
  mix-blend-mode: color;
}
.mode .art.category {
  background: linear-gradient(180deg, #5a4512, #1f1806);
}
.mode .art img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgb(0 0 0 / 0.55));
}
.mode .art .trophy {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  color: #fff;
  filter: drop-shadow(0 0 24px rgb(167 139 250 / 0.8));
}
.mode .art .tiles {
  display: grid;
  grid-template-columns: repeat(2, 64px);
  gap: 10px;
}
.mode .art .tiles span {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.28);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: #f5d684;
}
.mode .art .tiles svg {
  width: 30px;
  height: 30px;
}
.mode .body {
  padding: 22px 24px 26px;
}
.mode h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mode .tag {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.mode p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.mode ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mode li {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Leagues */
.leagues {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}
.league {
  text-align: center;
  padding: 18px 6px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c) 16%, var(--surface)),
    var(--surface)
  );
  border-color: color-mix(in srgb, var(--c) 35%, var(--line));
}
.league img {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 55%, transparent));
}
.league b {
  display: block;
  font-size: 13px;
  color: var(--c);
}
.league small {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}
.league-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}
.note b {
  display: block;
  font-size: 15px;
}
.note span {
  font-size: 14px;
  color: var(--muted);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 0% 0%, rgb(227 10 23 / 0.14), transparent 70%), var(--surface);
}
.partners h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.partners p {
  color: var(--muted);
  margin: 0 0 22px;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 12px;
  font-size: 15px;
}
.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ccf7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    rgb(60 207 122 / 0.12);
}
.checks b {
  color: var(--text);
}
.checks span {
  color: var(--muted);
}

/* A reveal card mock used in the partners block */
.reveal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.reveal-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--raised);
  padding: 14px;
  animation: float 7s ease-in-out infinite;
}
.reveal-card:nth-child(2) {
  animation-delay: -3.5s;
}
.reveal-card.win {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.reveal-card .ph {
  height: 120px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #26262f, #17171c);
}
.reveal-card .ph svg {
  width: 48px;
  height: 48px;
  color: #4b4b56;
}
.reveal-card .t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 36px;
}
.reveal-card .p {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}
.reveal-card .l {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reveal-card .badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #000;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 22px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
details[open] summary::after {
  content: '–';
}
details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Final CTA */
.final {
  text-align: center;
  padding: 72px 24px;
  border-radius: 16px;
  border: 1px solid rgb(227 10 23 / 0.35);
  background:
    radial-gradient(500px 220px at 50% 0%, rgb(227 10 23 / 0.28), transparent 75%), var(--surface);
}
.final img {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 24px rgb(255 64 64 / 0.6));
}
.final h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.025em;
}
.final p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 520px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--strip);
  padding: 48px 0 36px;
  font-size: 14px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .about {
  color: var(--muted);
  max-width: 320px;
  margin: 12px 0 0;
}
.site-footer .bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------------------------------------------------------------- legal pages */

.doc {
  padding: 64px 0 0;
}
.doc .wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.doc-nav p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.doc-nav ol {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: var(--dim);
}
.doc-nav a {
  color: var(--muted);
  text-decoration: none;
}
.doc-nav a:hover {
  color: var(--text);
}
.doc-body {
  max-width: 760px;
}
.doc-body h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.doc-body .meta {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 28px;
}
.doc-body .summary {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  margin-bottom: 36px;
}
.doc-body .summary p {
  margin: 0;
}
.doc-body h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.doc-body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}
.doc-body p,
.doc-body li {
  color: #c9c9d1;
  font-size: 15.5px;
}
.doc-body ul {
  padding-left: 20px;
}
.doc-body li {
  margin-bottom: 6px;
}
.doc-body a {
  color: #fff;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}
.doc-body th,
.doc-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #c9c9d1;
}
.doc-body th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.contact-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.contact-card a.mail {
  font-weight: 600;
  color: #fff;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* 404 */
.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 16px;
}
.lost img {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  transform: rotate(-20deg);
}
.lost h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
}
.lost p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero .wrap,
  .partners {
    grid-template-columns: 1fr;
  }
  .ladder {
    height: 380px;
  }
  .steps,
  .modes,
  .league-notes,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .leagues {
    grid-template-columns: repeat(3, 1fr);
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .doc .wrap {
    grid-template-columns: 1fr;
  }
  .doc-nav {
    position: static;
  }
  .partners {
    padding: 28px;
  }
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
  .hero {
    padding-top: 48px;
  }
  section.block {
    padding: 64px 0;
  }
  .site-footer .bottom {
    flex-direction: column;
  }
}
