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

:root {
  --bg: #0a0a0a;
  --text: #f0f0f0;
  --muted: #888;
  --dim: #555;
  --border: rgba(255,255,255,0.12);
  --surface: rgba(255,255,255,0.04);
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

/* background: subtle radial wash + fine grid */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(120,140,180,0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px;
}

/* top nav */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* center */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 40px 0;
}
h1 {
  font-size: clamp(44px, 8.5vw, 108px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: #fff;
  max-width: 14ch;
}
.sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  letter-spacing: -0.02em;
  font-weight: 400;
}

/* dropdown button */
.dropdown {
  position: relative;
  margin-top: 4px;
}
.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}
.drop-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.drop-btn .chev {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.dropdown.open .drop-btn .chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(520px, calc(100vw - 48px));
  background: rgba(18,18,18,0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dropdown.open .drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.drop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.drop-row + .drop-row { border-top: 1px solid rgba(255,255,255,0.06); }
.drop-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 50px;
}
.drop-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  color: #d0d0d0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow-x: auto;
  flex: 1;
}
.copy {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s;
  flex-shrink: 0;
}
.copy:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.copy.copied { color: #86efac; border-color: rgba(134,239,172,0.3); }

/* bottom */
.bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.015em;
}
.bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bottom a:hover { color: var(--text); }
.bottom .sep { color: var(--dim); }

@media (max-width: 540px) {
  .page { padding: 20px; }
  h1 { letter-spacing: -0.045em; }
  .drop-row { flex-wrap: wrap; }
  .drop-label { width: auto; }
}
