:root {
  --ink: #101418;
  --muted: #5d6977;
  --line: #dbe3e8;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --teal: #0f766e;
  --teal-deep: #0b4c47;
  --coral: #d7513f;
  --gold: #b98212;
  --green: #277a43;
  --shadow: 0 22px 48px rgba(18, 28, 35, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 232, 0.8);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: #ffffff;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.nav-cta {
  text-decoration: none;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--teal-deep);
}

.nav-cta {
  border: 1px solid var(--teal-deep);
  color: var(--teal-deep);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(430px, 64vh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.hero-home {
  background-image: url("hero-marketplace-ai.png");
}

.detail-hero {
  min-height: clamp(420px, 58vh, 560px);
  background-image: var(--hero-image);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 19, 24, 0.84), rgba(10, 19, 24, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee6d9;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.detail-hero h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.search-panel {
  width: min(680px, 100%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

.search-panel input {
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
}

.search-panel button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--teal-deep);
  font-weight: 700;
  cursor: pointer;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stat-strip div {
  min-height: 108px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.stat-strip span {
  color: var(--muted);
}

.domain-section,
.sell-section,
.detail-layout {
  padding: clamp(48px, 8vw, 84px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: #ffffff;
}

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

.domain-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(18, 28, 35, 0.08);
}

.domain-card[hidden] {
  display: none;
}

.domain-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.domain-card-body {
  padding: 18px;
}

.domain-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.domain-card h3 a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.domain-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef6f4;
  color: var(--teal-deep) !important;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.empty-state {
  margin: 20px 0 0;
  color: var(--muted);
}

.section-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 8vw, 84px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
}

.category-list {
  display: grid;
  gap: 16px;
}

.category-list article {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.category-list article:last-child {
  border-bottom: 0;
}

.category-list p,
.sell-section p,
.detail-main p,
.detail-side dd {
  color: var(--muted);
}

.sell-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sell-section p {
  max-width: 720px;
  margin: 0;
}

.primary-link,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--coral);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(215, 81, 63, 0.22);
}

.primary-link:hover,
.full-button:hover {
  background: #b94133;
}

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-shell p {
  margin: 0;
}

.footer-shell a {
  color: #ffffff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.price-tag {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.detail-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
}

.detail-main h2:not(:first-of-type) {
  margin-top: 32px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.use-grid span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  padding: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.notice {
  margin-top: 30px !important;
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: #fff8e8;
  color: #604816 !important;
}

.detail-side {
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(18, 28, 35, 0.08);
}

.detail-side h2 {
  font-size: 1.25rem;
}

.detail-side dl {
  margin: 0 0 18px;
}

.detail-side dl div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-side dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.full-button {
  width: 100%;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .stat-strip,
  .domain-grid,
  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .stat-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sell-section,
  .footer-shell,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .hero-content {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 520px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .use-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .price-tag {
    width: 100%;
  }
}
