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

:root {
  --bg: #08080a;
  --surface: #0f0f12;
  --surface-hover: #17171c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --ok: #34d399;
  --err: #fb7185;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.land-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(244, 244, 245, 0.06), transparent 70%),
    var(--bg);
}

.land-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 100%);
}

.land-top {
  position: relative;
  z-index: 50;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.land-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
}

.land-domain-picker {
  position: relative;
}

.dom-picker-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dom-picker-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.dom-picker-btn svg {
  transition: transform 0.2s var(--ease);
}

.dom-picker-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dom-picker-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10.5px;
}

.dom-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px));
  max-height: min(70vh, 440px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.dom-picker-menu::-webkit-scrollbar {
  width: 6px;
}

.dom-picker-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dom-picker-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.dom-picker-menu.hidden {
  display: none;
}

.dom-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dom-bubble:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.dom-bubble.is-active {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.dom-seg {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1;
  padding: 4px 2px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.dom-stem {
  color: var(--text);
  font-weight: 500;
}

.dom-tld {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.dom-seg--lead .dom-tld {
  padding-left: 1px;
  padding-right: 4px;
}

.dom-seg:hover .dom-tld {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.dom-seg.active .dom-tld {
  background: var(--text);
  color: #09090b;
  font-weight: 600;
  padding: 2px 7px;
}

.dom-seg--lead.active .dom-tld {
  margin-left: 3px;
}

.dom-slash {
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  user-select: none;
  margin: 0 1px;
}

.claim-prefix-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.claim-prefix-btn:hover {
  color: var(--text);
}

.land-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s ease, background 0.2s ease;
}

.lbtn:hover { transform: translateY(-1px); }
.lbtn--primary { background: var(--text); color: #09090b; }
.lbtn--primary:hover { opacity: 0.92; }
.lbtn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border); }
.lbtn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }
.lbtn--sm { padding: 6px 12px; font-size: 12.5px; }

.land-main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.land-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 24px;
}

.land-hero h1 {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.claim-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.claim-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.claim-mode-btn:hover {
  color: var(--text);
}

.claim-mode-btn.active {
  background: var(--text);
  color: #09090b;
  font-weight: 600;
}

.claim-box {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s var(--ease);
}

.claim-box.is-sub {
  gap: 0;
}

.claim-box.is-sub .claim-input {
  text-align: right;
  padding-right: 1px;
}

.claim-box.is-sub #claimSuffix {
  margin-right: 10px;
}

.claim-prefix.hidden {
  display: none;
}

.claim-box:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}

.claim-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
}

.claim-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  padding: 8px 0;
}

.claim-input::placeholder {
  color: var(--dim);
}

.claim-status {
  min-height: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
}

.claim-status.is-ok { color: var(--ok); }
.claim-status.is-err { color: var(--err); }

.land-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-val {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.metric-lbl {
  font-size: 13px;
  color: var(--dim);
}

.land-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-head h2 {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.prof-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.prof-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

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

.prof-av-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.prof-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid var(--border);
}

.prof-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--dim);
}

.prof-dot.online { background: #23a55a; }
.prof-dot.idle { background: #f0b232; }
.prof-dot.dnd { background: #f23f43; }

.prof-names {
  min-width: 0;
}

.prof-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prof-name {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-slug {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--dim);
}

.prof-np {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
}

.land-foot {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.foot-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links a,
.foot-links span {
  color: var(--dim);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-domains {
  max-width: 900px;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.dom-bubble--foot {
  width: auto;
  min-height: 28px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.075);
}

.dom-bubble--foot .dom-seg {
  font-size: 11px;
  padding: 3px 1px;
}

.dom-bubble--foot .dom-stem {
  color: var(--muted);
}

.dom-bubble--foot.is-active .dom-stem,
.dom-bubble--foot:hover .dom-stem {
  color: var(--text);
}

.af-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.af-consent input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #f4f4f5;
}

.af-consent a {
  color: var(--text);
}

.auth-legal-note {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--dim);
}

.auth-legal-note a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .land-domain-picker { order: 3; width: 100%; display: flex; justify-content: center; }
  .dom-picker-menu { grid-template-columns: 1fr; width: min(320px, calc(100vw - 24px)); max-height: min(62vh, 380px); }
}

@media (max-width: 560px) {
  .land-main { padding-top: 32px; gap: 44px; }
  .claim-box { padding-left: 12px; }
  .claim-prefix { font-size: 12.5px; }
}
