:root {
  --ink: #f4f2e9;
  --muted: #a9aaad;
  --dim: #73767d;
  --black: #08090b;
  --panel: #111318;
  --panel-2: #171a20;
  --line: rgba(255, 255, 255, 0.11);
  --violet: #c45cff;
  --violet-deep: #7c4dff;
  --orange: #ff6b35;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--black);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--black);
  background-size: 48px 48px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,11,0) 60%, var(--black));
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.shell { width: min(980px, calc(100% - 40px)); margin-inline: auto; }
.page-glow { position: absolute; z-index: -1; border-radius: 999px; filter: blur(110px); opacity: .16; pointer-events: none; }
.page-glow--one { width: 470px; height: 470px; top: 80px; right: -120px; background: var(--violet-deep); }
.page-glow--two { width: 360px; height: 360px; top: 520px; left: -170px; background: var(--violet); opacity: .12; }

.site-header {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px 8px 3px 8px;
  color: var(--black);
  background: var(--violet);
  box-shadow: 5px 5px 0 rgba(196,92,255,.2);
  font: 800 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.site-header > .button { justify-self: end; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 40px; padding-inline: 15px; font-size: 13px; }
.button--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.025); }
.button--ghost:hover { border-color: rgba(196,92,255,.55); color: var(--violet); }
.button--primary { color: #100817; background: var(--violet); box-shadow: 0 12px 36px rgba(196,92,255,.2); }
.button--primary:hover { background: #d77cff; }
.button--wide { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.hero { padding-block: 56px 52px; text-align: center; }
.hero-copy { width: min(780px, 100%); margin-inline: auto; }

.traffic-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 30px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  background: rgba(255,255,255,.025);
  font: 650 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.traffic-pill strong { color: var(--ink); font-weight: 750; }
.traffic-divider { margin-inline: 2px; color: rgba(255,255,255,.25); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 21px;
  color: var(--muted);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { justify-content: center; margin-bottom: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(196,92,255,.12), 0 0 18px rgba(196,92,255,.9); }

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 70px);
  line-height: .94;
  letter-spacing: -.06em;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(244,242,233,.45); }
.hero-tagline { margin: 22px 0 0; color: var(--violet); font: 700 clamp(16px, 1.8vw, 20px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.025em; }
.hero-body { max-width: 610px; margin: 14px auto 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 23px; margin-top: 27px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.text-link:hover { color: var(--ink); }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(196,92,255,.32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(196,92,255,.1), rgba(255,255,255,.025) 38%), var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero-card::after { content: "YEX/001"; position: absolute; top: 50%; right: -35px; color: rgba(255,255,255,.025); font: 800 58px/1 ui-monospace, monospace; transform: rotate(90deg); }
.hero-card-topline, .hero-card-footer { display: flex; justify-content: space-between; color: var(--dim); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero-rank { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; margin: 45px 0 25px; }
.hero-rank > span { color: var(--dim); font: 700 28px/1 ui-monospace, monospace; }
.hero-rank strong { font-size: clamp(78px, 10vw, 116px); line-height: .8; letter-spacing: -.1em; }
.hero-rank em { color: var(--violet); font: 700 28px/1 ui-monospace, monospace; font-style: normal; }
.signal-line { display: grid; grid-template-columns: 1fr 1.45fr .6fr 2fr .8fr; align-items: end; gap: 5px; height: 38px; margin-bottom: 24px; }
.signal-line span { min-height: 6px; border-radius: 10px; background: var(--violet); opacity: .36; }
.signal-line span:nth-child(2) { height: 80%; opacity: .75; }
.signal-line span:nth-child(3) { height: 35%; }
.signal-line span:nth-child(4) { height: 100%; opacity: 1; }
.signal-line span:nth-child(5) { height: 55%; }
.hero-card > p { position: relative; z-index: 1; margin: 0 0 34px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.stat-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-grid > div { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 20px 38px; border-right: 1px solid var(--line); }
.stat-grid > div:first-child { border-left: 1px solid var(--line); }
.stat-grid strong { font: 750 31px/1 ui-monospace, monospace; }
.stat-grid span { margin-top: 10px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.board { padding-block: 52px 88px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { max-width: 700px; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.045em; }
.section-heading--compact { margin-bottom: 38px; }
.board-count { display: flex; align-items: center; gap: 9px; color: var(--dim); font: 700 12px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.board-count span { display: grid; min-width: 34px; height: 34px; padding-inline: 8px; place-items: center; border-radius: 9px; color: var(--violet); background: rgba(196,92,255,.11); }

.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-block: 3px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.filter-pill:hover { color: var(--ink); }
.filter-pill.is-active { border-color: var(--violet); color: #100817; background: var(--violet); }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sort-control select { min-width: 122px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); outline: none; }

.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: 64px 56px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 19px 14px 19px 5px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.project-row:hover { background: rgba(255,255,255,.025); }
.project-row[hidden] { display: none; }
.project-row--featured { margin-inline: -12px; padding-inline: 17px 26px; border: 1px solid rgba(196,92,255,.17); border-radius: 16px; background: linear-gradient(90deg, rgba(196,92,255,.055), transparent 55%); }
.project-row--featured + .project-row--featured { margin-top: 10px; }
.rank-cell { align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--line); }
.rank-number { color: var(--dim); font: 700 13px/1 ui-monospace, monospace; }
.project-row--featured .rank-number { color: var(--violet); }
.project-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--panel-2); font: 800 18px/1 ui-monospace, monospace; box-shadow: inset 0 0 24px rgba(255,255,255,.02); }
.project-row:nth-child(3n + 1) .project-icon { color: var(--violet); }
.project-row:nth-child(3n + 2) .project-icon { color: #dfadff; }
.project-row:nth-child(3n) .project-icon { color: #ff916a; }
.project-main { min-width: 0; }
.project-title-line { display: flex; align-items: center; gap: 10px; }
.project-title-line h3 { min-width: 0; margin: 0; font-size: 18px; letter-spacing: -.02em; }
.project-title-line h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-title-line h3 a:hover { color: var(--violet); }
.demo-label { padding: 4px 6px; border: 1px solid rgba(196,92,255,.34); border-radius: 6px; color: #dfadff; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-main > p { margin: 8px 0 13px; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--dim); font-size: 11px; }
.project-meta strong { color: var(--muted); font-weight: 650; }
.meta-label { color: #8b8e94; font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; }
.tool-chip { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.025); font: 650 10px/1 ui-monospace, monospace; }
.meta-divider { width: 1px; height: 13px; margin-inline: 4px; background: var(--line); }
.bid-cell { text-align: right; }
.bid-amount { display: block; color: var(--violet); font: 750 20px/1 ui-monospace, monospace; }
.outbid-button { margin-top: 12px; padding: 0; border: 0; color: var(--dim); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.outbid-button:hover { color: var(--ink); }
.no-results, .empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }

.how { padding-block: 30px 130px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--panel); }
.steps-grid article { min-height: 260px; padding: 31px; border-right: 1px solid var(--line); }
.steps-grid article:last-child { border-right: 0; }
.steps-grid article > span { color: var(--violet); font: 700 11px/1 ui-monospace, monospace; }
.steps-grid h3 { margin: 68px 0 13px; font-size: 23px; letter-spacing: -.035em; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.identity-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 24px 28px; border: 1px dashed rgba(255,255,255,.17); border-radius: 16px; }
.identity-note > div { display: flex; align-items: center; gap: 17px; }
.identity-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #fff; color: #08090b; font-size: 18px; }
.identity-note strong { font-size: 14px; }
.identity-note p { margin: 4px 0 0; color: var(--dim); font-size: 12px; }
.coming-soon { flex: none; padding: 8px 11px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); font: 650 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.site-footer .brand { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer > a { justify-self: end; }
.site-footer > a:hover { color: var(--violet); }

.submit-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; color: var(--ink); background: var(--panel); box-shadow: 0 40px 130px rgba(0,0,0,.7); }
.submit-dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(9px); }
.dialog-shell { padding: 28px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.dialog-header .eyebrow { margin-bottom: 9px; }
.dialog-header h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.dialog-close { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; font-size: 25px; cursor: pointer; }
.dialog-close:hover { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.field--wide { grid-column: 1 / -1; }
.field span > small, .tool-picker small { color: var(--dim); font-weight: 500; }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #0d0f13;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus { border-color: rgba(196,92,255,.62); box-shadow: 0 0 0 3px rgba(196,92,255,.1); }
.field input::placeholder { color: #555960; }
.field--time > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-picker { margin: 0; padding: 0; border: 0; }
.tool-picker legend { margin-bottom: 10px; padding: 0; }
.tool-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-picker label { cursor: pointer; }
.tool-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tool-picker label span { display: block; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #0d0f13; font: 650 11px/1 ui-monospace, monospace; transition: all .16s ease; }
.tool-picker input:checked + span { border-color: var(--violet); color: #100817; background: var(--violet); }
.honeypot { position: absolute; left: -10000px; }
.bid-box { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; margin: 23px 0 18px; padding: 18px; border: 1px solid rgba(196,92,255,.26); border-radius: 13px; background: rgba(196,92,255,.065); }
.bid-box > div > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.bid-box strong { display: flex; align-items: center; color: var(--violet); font: 750 28px/1 ui-monospace, monospace; }
.bid-box input { width: 95px; border: 0; outline: 0; color: var(--violet); background: transparent; font: inherit; }
.bid-box p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-error { margin: 0 0 13px; padding: 11px 13px; border: 1px solid rgba(255,107,53,.32); border-radius: 9px; color: #ff9b78; background: rgba(255,107,53,.06); font-size: 12px; }
.payment-note { margin: 12px 0 0; color: var(--dim); font-size: 10px; line-height: 1.55; text-align: center; }

.success-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.success-card { width: min(620px, 100%); padding: clamp(30px, 7vw, 70px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.success-card .brand { margin: 0 auto 55px; }
.success-check { display: grid; width: 70px; height: 70px; margin: 0 auto 25px; place-items: center; border-radius: 50%; color: #100817; background: var(--violet); font-size: 30px; }
.success-card .eyebrow { justify-content: center; }
.success-card h1 { margin: 0; font-size: clamp(38px, 7vw, 62px); line-height: .97; letter-spacing: -.055em; }
.success-card > p:not(.eyebrow) { margin: 22px 0 30px; color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding-block: 52px 48px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid > div { border-bottom: 1px solid var(--line); }
  .project-row { grid-template-columns: 54px 48px minmax(0, 1fr) 90px; gap: 13px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-grid article:last-child { border-bottom: 0; }
  .steps-grid h3 { margin-top: 45px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 980px); }
  .site-header { height: 68px; }
  .site-header .button { min-height: 36px; }
  .hero { padding-block: 42px 40px; }
  .traffic-pill { max-width: 100%; flex-wrap: wrap; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .stat-grid > div { min-height: 95px; padding: 17px 18px; }
  .stat-grid strong { font-size: 25px; }
  .board { padding-block: 42px 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .board-toolbar { align-items: stretch; flex-direction: column; }
  .sort-control { justify-content: space-between; }
  .project-row, .project-row--featured {
    grid-template-columns: 45px 1fr auto;
    min-height: 0;
    margin-inline: 0;
    padding: 21px 8px;
    border-inline: 0;
    border-radius: 0;
  }
  .project-icon { width: 42px; height: 42px; border-radius: 12px; }
  .rank-cell { display: none; }
  .project-main { grid-column: 2 / 4; }
  .bid-cell { grid-column: 3; grid-row: 1; }
  .project-main > p { white-space: normal; }
  .meta-divider { display: none; }
  .project-meta { row-gap: 9px; }
  .project-meta > span:last-child { flex-basis: 100%; }
  .how { padding-bottom: 80px; }
  .identity-note { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 26px; }
  .site-footer p { display: none; }
  .dialog-shell { padding: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .bid-box { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
