/* ─── Variables ─── */
:root {
  --bg: #0e1117;
  --surface: #161b25;
  --surface-raised: #1e2433;
  --fg: #e8e9ec;
  --fg-muted: #8a8fa3;
  --fg-subtle: #4d5266;
  --accent: #d4a843;
  --accent-dim: rgba(212, 168, 67, 0.12);
  --border: rgba(255,255,255,0.06);
}

/* ─── Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo-accent { color: var(--accent); }
.header-nav {
  display: flex;
  gap: 2.5rem;
}
.header-nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 42ch;
  line-height: 1.7;
}
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.hero-stat-block {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ─── Section Labels ─── */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── Thesis ─── */
.thesis {
  padding: 5rem 2rem;
  background: var(--bg);
}
.thesis-inner { max-width: 1100px; margin: 0 auto; }
.thesis h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.75rem;
  max-width: 22ch;
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.thesis-body {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.thesis-body:last-child { margin-bottom: 0; }
.thesis-callout {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}
.callout-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
}
.thesis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212,168,67,0.2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

/* ─── Data ─── */
.data-section {
  padding: 5rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-inner { max-width: 1100px; margin: 0 auto; }
.data-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--fg);
  max-width: 30ch;
  margin-bottom: 3rem;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.data-card {
  background: var(--surface-raised);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.data-metric {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.data-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── Portfolio ─── */
.portfolio {
  padding: 5rem 2rem;
  background: var(--bg);
}
.portfolio-inner { max-width: 1100px; margin: 0 auto; }
.portfolio-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
.portfolio-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 55ch;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.portfolio-clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.cluster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
}
.cluster-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.cluster-count {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.cluster-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 5rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--fg);
  max-width: 40ch;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.4;
  position: relative;
}
.manifesto-body {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.75;
}

/* ─── Closing ─── */
.closing {
  padding: 6rem 2rem;
  background: var(--bg);
}
.closing-inner { max-width: 1100px; margin: 0 auto; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.closing-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 50ch;
  line-height: 1.7;
}

/* ─── Afternic Portfolio Links ─── */
.editorial-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 67, 0.3);
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}
.editorial-link:hover {
  border-color: var(--accent);
  color: #e8c06a;
}

.portfolio-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.closing-link {
  margin-top: 1.75rem;
}

.footer-afternic {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, border-color 0.15s;
}
.footer-afternic:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}

/* ─── Footer ─── */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer-note {
  font-size: 0.72rem;
  color: var(--fg-subtle);
}

/* ─── Portfolio Page ─── */
.portfolio-page {
  padding: 4rem 2rem 6rem;
  min-height: calc(100vh - 80px);
}
.portfolio-page-inner { max-width: 1100px; margin: 0 auto; }

.portfolio-hero { margin-bottom: 2.5rem; }
.portfolio-page-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.portfolio-page-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 55ch;
  line-height: 1.7;
}

/* Controls */
.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.search-wrap { position: relative; }
.search-input {
  width: 100%;
  padding: 0.75rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
  outline: none;
}
.search-input::placeholder { color: var(--fg-subtle); }
.search-input:focus { border-color: rgba(212,168,67,0.5); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.filter-select {
  padding: 0.6rem 2rem 0.6rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8fa3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.filter-select:focus { border-color: rgba(212,168,67,0.5); }
.filter-select option { background: var(--surface-raised); }

.result-count {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Domain Grid */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.domain-card {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: background 0.15s;
}
.domain-card:hover { background: var(--surface-raised); }

.domain-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.domain-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  word-break: break-all;
}
.domain-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cluster-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cluster-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.buyer-profile {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  margin-left: auto;
  white-space: nowrap;
}
.buy-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,168,67,0.25);
  transition: border-color 0.15s, color 0.15s;
  margin-left: 0.25rem;
  white-space: nowrap;
}
.buy-link:hover { border-color: var(--accent); color: #e8c06a; }

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.portfolio-cta-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.afternic-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #0e1117;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.afternic-btn:hover { background: #e8c06a; transform: translateY(-1px); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .thesis-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-clusters { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .thesis, .data-section, .portfolio, .manifesto, .closing { padding: 3.5rem 1.5rem; }
  .portfolio-page { padding: 3rem 1.5rem 5rem; }
  .data-grid { grid-template-columns: 1fr; }
  .header-nav { gap: 1.5rem; }
  .domain-grid { grid-template-columns: 1fr; }
  .buyer-profile { display: none; }
}