/* ===== websuffix.com ===== */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: #0f1526;
  --panel-2: #131b31;
  --line: rgba(148, 163, 207, 0.14);
  --line-bright: rgba(148, 163, 207, 0.32);
  --text: #eef1f9;
  --muted: #93a0bd;
  /* accent colors lifted from the websuffix logo gradient (magenta -> cyan) */
  --brand-1: #15cff1;
  --brand-2: #7f6ee5;
  --brand-3: #e90dda;
  --price: #6fe8b8;
  --radius: 16px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.logo-mark { height: 28px; width: auto; display: block; }

.logo.small { font-size: 1.05rem; }
.logo.small .logo-mark { height: 22px; }

.logo-tld {
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav { display: flex; gap: clamp(14px, 3vw, 30px); }

.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

/* ===== Ticker ===== */

.ticker-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  white-space: nowrap;
}

.tick + .tick { border-left: 1px solid var(--line); }

.tick-name { color: var(--text); }
.tick:hover .tick-name { color: var(--brand-1); }
.tick-price { color: var(--price); font-weight: 600; font-size: 0.85rem; }

/* ===== Hero ===== */

.hero { position: relative; overflow: hidden; }

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 320px at 18% 8%, rgba(21, 207, 241, 0.14), transparent 66%),
    radial-gradient(560px 340px at 85% 30%, rgba(233, 13, 218, 0.10), transparent 66%),
    radial-gradient(500px 300px at 55% 110%, rgba(127, 110, 229, 0.10), transparent 66%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-1);
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stat-chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-chip b { color: var(--text); font-weight: 600; }

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

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  color: #0a0e1a;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21, 207, 241, 0.32);
  filter: brightness(1.06);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text);
}

.btn.ghost:hover { box-shadow: none; border-color: var(--brand-1); }

/* ===== Spotlight ===== */

.spotlight {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(124, 155, 255, 0.09), rgba(200, 132, 255, 0.05) 55%, transparent),
    var(--panel);
  padding: 26px 28px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.spot-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.spot-arrows { display: flex; gap: 6px; }

.spot-arrows button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.spot-arrows button:hover { border-color: var(--brand-1); background: rgba(21, 207, 241, 0.12); }

.spot-body { transition: opacity 0.25s, transform 0.25s; }

.spot-body.swap { opacity: 0; transform: translateY(10px); }

.spot-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.spot-name .tld-part {
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spot-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.spot-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--price);
}

.spot-tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.spot-cta { margin-top: 22px; width: 100%; }

.spot-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.spot-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

.spot-progress span.run { animation: spot-fill var(--spot-secs, 4.5s) linear forwards; }

@keyframes spot-fill { to { width: 100%; } }

/* ===== Sections ===== */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 56px);
}

.section-head { margin-bottom: 30px; }

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

.section-sub { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }

/* ===== Toolbar ===== */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

#searchInput, #sortSelect {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

#searchInput { flex: 1 1 200px; min-width: 160px; }
#searchInput:focus, #sortSelect:focus { border-color: var(--brand-1); }
#sortSelect { cursor: pointer; }
#sortSelect option { background: var(--panel); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover { border-color: var(--line-bright); color: var(--text); }

.chip.active {
  border-color: transparent;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  color: #0a0e1a;
  font-weight: 600;
}

/* ===== Domain grid ===== */

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

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(21, 207, 241, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mk-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mk-badge.atom { background: rgba(139, 123, 255, 0.16); color: #b3a6ff; }
.mk-badge.brandbucket { background: rgba(47, 191, 176, 0.15); color: #5fd8cb; }
.mk-badge.afternic { background: rgba(255, 181, 71, 0.14); color: #ffc670; }

.card-tld { font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); }

.card h3 {
  font-size: 1.28rem;
  font-weight: 600;
  word-break: break-word;
}

.card h3 .tld-part { color: var(--brand-1); }

.card .tag { margin: 0; font-size: 0.83rem; color: var(--muted); }

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--price);
}

.card .arrow { color: var(--muted); transition: transform 0.2s, color 0.2s; }

.card:hover .arrow { transform: translateX(4px); color: var(--brand-1); }

.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ===== Marketplaces ===== */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.market-logo svg { height: 30px; width: auto; display: block; }

.logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  fill: var(--text);
}

.market-card p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; }

.market-cta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-1);
}

/* ===== Guides ===== */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.guide-card h3 { font-size: 1.15rem; font-weight: 600; }

.guide-card p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; }

.guide-cta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-1);
}

/* ===== Article pages ===== */

.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 40px);
}

.article-hero-inner { max-width: 780px; margin: 0 auto; position: relative; }

.article-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(40px, 6vw, 64px);
  font-size: 1.02rem;
  color: #d4dbea;
}

.prose p { margin: 0 0 1.15em; }

.prose h2, .prose h3, .prose h4 {
  margin: 1.8em 0 0.6em;
  color: var(--text);
}

.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }

.prose a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 3px; }

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

.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }

.prose li { margin-bottom: 0.4em; }

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.prose figure { margin: 28px 0; }

.prose figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }

.prose blockquote {
  margin: 24px 0;
  padding: 4px 22px;
  border-left: 3px solid var(--brand-1);
  color: var(--muted);
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
}

.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }

.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.article-cta {
  max-width: 780px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  padding: 0 clamp(20px, 5vw, 56px);
}

.article-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(21, 207, 241, 0.09), rgba(233, 13, 218, 0.06) 60%, transparent),
    var(--panel);
}

.article-cta-card h2 { font-size: 1.3rem; margin: 0 0 6px; }

.article-cta-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== BrandBucket widget ===== */

.bb-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  overflow: auto;
}

.bb-shell[hidden] { display: none; }

#_bb_widget_container { min-height: 40px; }

.bb-fallback {
  display: block;
  padding: 26px;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.bb-fallback:hover { color: var(--text); border-color: var(--brand-1); }

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px clamp(20px, 5vw, 56px) 28px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
}

.foot-logo img { height: 54px; width: auto; display: block; }

.foot-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); max-width: 46ch; }

.foot-note a { color: var(--brand-1); }

.foot-links { display: flex; gap: 20px; align-items: flex-start; }

.foot-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }

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

.copyright {
  max-width: 1160px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .site-nav a:nth-child(n+3) { display: none; }
}

@media (max-width: 480px) {
  .toolbar { align-items: stretch; }
  #searchInput { flex-basis: 100%; }
}

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker-wrap { overflow-x: auto; }
  .spot-body, .card, .market-card, .btn, .card .arrow { transition: none; }
  .spot-progress { display: none; }
}
