:root {
  --yc-bg: #050505;
  --yc-ink: #f4f7f6;
  --yc-muted: #9aa3a1;
  --yc-line: rgba(244, 247, 246, 0.16);
  --yc-cyan: #3ef0ea;
  --yc-gold: #e6b84a;
  --yc-gold-2: #f3d27a;
  --yc-font: "Unbounded", sans-serif;
  --yc-mono: "Martian Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.yc {
  margin: 0;
  background: var(--yc-bg);
  color: var(--yc-ink);
  font-family: var(--yc-font);
  font-weight: 400;
  line-height: 1.45;
}
body.yc-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.yc-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.yc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--yc-line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(10px);
}
.yc-logo { display: flex; align-items: center; text-decoration: none; }
.yc-logo img { width: 64px; height: 64px; object-fit: contain; }
.yc-nav { display: flex; gap: 22px; margin-left: 12px; }
.yc-nav a {
  font-family: var(--yc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yc-ink);
}
.yc-nav a[aria-current="page"] { color: var(--yc-cyan); }
.yc-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.yc-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--yc-gold);
  background: transparent;
  color: var(--yc-gold-2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  cursor: pointer;
}
.yc-outline:hover { background: rgba(230, 184, 74, 0.12); }
.yc-fill {
  border: 0;
  background: var(--yc-gold);
  color: #140e04;
  min-height: 52px;
  padding: 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
}
.yc-fill:hover { background: var(--yc-gold-2); }
.yc-menu-btn { display: none; }

.yc-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 48px 0 28px;
}
.yc-kicker {
  margin: 0 0 16px;
  font-family: var(--yc-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yc-cyan);
}
.yc-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.yc-lead {
  max-width: 38rem;
  margin: 22px 0 0;
  color: var(--yc-muted);
  font-size: 16px;
}
.yc-hero-mark {
  justify-self: end;
  align-self: center;
  width: min(460px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  animation: yc-float 7s ease-in-out infinite;
}
@keyframes yc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.yc-marquee {
  overflow: hidden;
  border-top: 1px solid var(--yc-line);
  border-bottom: 1px solid var(--yc-line);
}
.yc-marquee-track {
  display: flex;
  width: max-content;
  animation: yc-marquee 32s linear infinite;
}
.yc-marquee-track span {
  padding: 16px 28px;
  font-family: var(--yc-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes yc-marquee { to { transform: translateX(-50%); } }

.yc-section { padding: 88px 0; }
.yc-section h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.yc-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--yc-line);
}
.yc-leg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.yc-amt {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--yc-line);
  background: transparent;
  padding: 8px 0 12px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.yc-amt:focus { outline: 2px solid var(--yc-cyan); outline-offset: 4px; }
.yc-min, .yc-meta { font-family: var(--yc-mono); font-size: 11px; color: var(--yc-muted); }
.yc-meta { color: var(--yc-cyan); min-height: 2.6em; }
.currency-select { position: relative; }
.currency-select__trigger, .yc-swap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--yc-line);
  background: #0c0c0c;
  cursor: pointer;
  text-align: left;
}
.yc-swap { width: 44px; justify-content: center; align-self: center; }
.currency-select__menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #101010;
  border: 1px solid var(--yc-line);
}
.currency-select__item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}
.currency-select__item:hover, .currency-select__item.active { background: #171717; }
.currency-select img, .yc-total img { width: 22px; height: 22px; }
.yc-board-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.yc-steps, .yc-faq { display: grid; gap: 0; border-top: 1px solid var(--yc-line); }
.yc-steps li, .yc-faq details {
  list-style: none;
  border-bottom: 1px solid var(--yc-line);
  padding: 18px 0;
}
.yc-steps { margin: 0; padding: 0; counter-reset: step; }
.yc-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; }
.yc-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--yc-mono);
  color: var(--yc-gold);
}
.yc-faq summary { cursor: pointer; font-size: 18px; }
.yc-faq p { color: var(--yc-muted); margin: 10px 0 0; }

.yc-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
.yc-dl { display: grid; gap: 14px; margin: 0; }
.yc-dl div { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--yc-line); }
.yc-dl dt { font-family: var(--yc-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yc-cyan); }
.yc-dl dd { margin: 0; }

.yc-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--yc-line);
}
.yc-footer strong { display: block; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 8px; }
.yc-footer a { text-decoration: none; }
.yc-footer p, .yc-footer li { color: var(--yc-muted); font-size: 14px; }
.yc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.yc-page { padding: 48px 0 80px; }
.yc-page h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; margin: 0 0 24px; }
.yc-prose { max-width: 46rem; color: #d5dbd9; }
.yc-prose ol { padding-left: 18px; display: grid; gap: 12px; }
.yc-table { width: 100%; border-collapse: collapse; }
.yc-table th, .yc-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--yc-line); font-size: 14px; }
.yc-table th { font-family: var(--yc-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yc-muted); font-weight: 500; }

.yc-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}
.yc-modal.is-open { display: flex; }
.yc-dialog {
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  background: #0a0a0a;
  border: 1px solid var(--yc-line);
  padding: 28px;
}
.yc-dialog h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.04em; }
.yc-field { display: grid; gap: 6px; margin-top: 16px; }
.yc-field span, .yc-dialog label { font-family: var(--yc-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yc-muted); }
.yc-field input, .yc-auth input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--yc-line);
  background: #050505;
}
.yc-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.yc-total { border: 1px solid var(--yc-line); padding: 12px; }
.yc-total b { display: block; font-size: 22px; }
.yc-tabs { display: flex; gap: 16px; margin: 12px 0; }
.yc-tabs button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.yc-tabs button.is-on { border-color: var(--yc-gold); color: var(--yc-gold-2); }
.yc-panel { display: none; }
.yc-panel.is-on { display: block; }
.yc-error { color: #ffb4a8; font-size: 13px; }

.yc-reveal { animation: yc-rise 700ms ease both; }
@keyframes yc-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .yc-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 16px 22px 20px; background: #050505; border-bottom: 1px solid var(--yc-line); }
  .yc-nav.is-open { display: flex; }
  .yc-menu-btn { display: inline-flex; }
  .yc-hero, .yc-board, .yc-split, .yc-footer, .yc-totals { grid-template-columns: 1fr; }
  .yc-hero-mark { justify-self: start; width: min(320px, 80%); }
  .yc-board-foot { justify-content: stretch; }
  .yc-fill { width: 100%; }
  .yc-header-actions .yc-outline:not(.yc-menu-btn) { display: none; }
}

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