:root {
  color-scheme: light;
  --bg: #f7fbff;
  --paper: #ffffff;
  --ink: #06133a;
  --muted: #627089;
  --blue: #126cff;
  --blue-2: #0a47d8;
  --sky: #eaf3ff;
  --line: #dce7f5;
  --line-2: #c8d7eb;
  --green: #13a06f;
  --shadow: 0 22px 70px rgba(6, 19, 58, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 58%, #eef6ff 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1440px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 231, 245, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 40px rgba(6, 19, 58, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(248px, 42vw);
  height: 50px;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.ghost-btn,
.primary-btn,
.secondary-btn,
.domain-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.nav a:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.domain-card button:hover {
  border-color: rgba(18, 108, 255, 0.42);
  background: var(--sky);
}

.primary-btn {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(18, 108, 255, 0.2);
}

.primary-btn:hover {
  background: var(--blue-2);
}

main {
  width: min(1440px, calc(100% - 28px));
  margin: 18px auto 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
  gap: 12px;
  min-height: min(560px, calc(100vh - 96px));
}

.hero-copy,
.hero-board,
.metrics,
.filters,
.inventory,
.packs,
.deal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 70px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto auto;
  gap: 12px;
  min-height: 500px;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 108, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 108, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.wordmark-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.wordmark-stage img {
  display: block;
  width: min(88%, 800px);
  max-height: 210px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.spotlight {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}

.spotlight span,
.spotlight strong,
.spotlight small { display: block; }

.spotlight span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight strong {
  color: var(--blue);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.95;
}

.spotlight small {
  color: var(--muted);
  line-height: 1.55;
}

.hero-tape {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-tape span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--line);
}

.metrics div {
  padding: 18px;
  background: #ffffff;
}

.metrics span,
.metrics strong { display: block; }

.metrics span,
.field span,
.tag,
.score,
.reason,
.deal-form span {
  color: var(--muted);
}

.metrics strong {
  margin-top: 8px;
  font-size: 26px;
}

.desk {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 90px;
  padding: 15px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field input,
.field select,
.deal-form input,
.deal-form select,
.deal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.field input:focus,
.field select:focus,
.deal-form input:focus,
.deal-form select:focus,
.deal-form textarea:focus {
  border-color: rgba(18, 108, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(18, 108, 255, 0.11);
}

input[type="range"] { accent-color: var(--blue); }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.chip.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.inventory,
.packs,
.deal {
  padding: clamp(18px, 2.5vw, 28px);
}

.section-head,
.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 span {
  color: var(--blue);
  font-size: 0.62em;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.domain-card {
  display: grid;
  gap: 12px;
  min-height: 224px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.domain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 108, 255, 0.46);
  box-shadow: 0 20px 44px rgba(6, 19, 58, 0.1);
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.score { font-size: 12px; }

.domain-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.meaning {
  margin: 0;
  color: #172854;
  font-weight: 900;
}

.reason {
  min-height: 54px;
  margin: 0;
  line-height: 1.55;
}

.price {
  color: var(--blue);
  font-size: 23px;
}

.domain-card button {
  min-height: 38px;
  border-color: rgba(18, 108, 255, 0.32);
}

.packs,
.deal {
  margin-top: 12px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.bundle-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bundle-card h3 { margin: 0 0 8px; }

.bundle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bundle-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.bundle-card li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
}

.bundle-total {
  color: var(--blue);
  font-size: 24px;
}

.deal {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 1fr);
  gap: 24px;
  align-items: start;
}

.deal-form {
  display: grid;
  gap: 12px;
}

.deal-form label,
.deal-form span {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .hero,
  .desk,
  .deal { grid-template-columns: 1fr; }

  .filters { position: static; }

  .domain-grid,
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar,
  main { width: min(100% - 20px, 1440px); }

  .topbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .brand {
    flex: 1 1 100%;
    width: 100%;
    height: 46px;
  }

  .nav {
    flex: 1;
    justify-content: space-between;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  h1 { font-size: 42px; }

  .hero-board { min-height: 440px; }

  .wordmark-stage { min-height: 220px; }

  .hero-tape,
  .metrics,
  .domain-grid,
  .bundle-grid { grid-template-columns: 1fr; }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
