/* === Inter Variable, self-hosted (replaces Google Fonts: Inter + Space Grotesk + JetBrains Mono) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/InterVariable.woff2') format('woff2-variations'),
       url('/assets/InterVariable.woff2') format('woff2');
}


/* ===========================
   MedNameHub — dark premium theme
   =========================== */

:root {
  /* Core palette */
  --bg: #0A1628;
  --bg-2: #0E1C33;
  --bg-3: #14243F;
  --surface: #0F1D36;
  --surface-2: #152749;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #F1F5FB;
  --text-mute: #A8B4C7;
  --text-dim: #6F7E96;

  /* Accent — teal/cyan gradient */
  --accent: #3BE0C9;
  --accent-2: #5AD0FF;
  --accent-gradient: linear-gradient(135deg, #3BE0C9 0%, #5AD0FF 100%);
  --accent-soft: rgba(59, 224, 201, 0.14);

  /* Category tints */
  --cat-ai:    #7C9CFF;
  --cat-onc:   #FF8FB1;
  --cat-prom:  #5AD0FF;
  --cat-hosp:  #3BE0C9;
  --cat-wh:    #E9A0FF;
  --cat-leg:   #F7C46C;
  --cat-spec:  #9FE6A4;

  /* Type — self-hosted Inter Variable (1 file, all weights 100-900) */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Inter', ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(59, 224, 201, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(90, 208, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(59, 224, 201, 0.06), transparent 60%);
}

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

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

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #001218;
  padding: 10px 16px; font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 22, 40, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand-logo { height: 40px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-mute);
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-logo { height: 34px; }
}

/* ===========================
   Hero
   =========================== */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 10% auto auto;
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 224, 201, 0.20), transparent 70%);
  filter: blur(40px);
}
.hero-inner { position: relative; text-align: center; max-width: 880px; }
.container.hero-inner { margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute); font-weight: 500;
  letter-spacing: 0.02em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 24px 0 20px;
}
.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto;
}

.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin: 48px 0 36px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-num .plus { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
  background: var(--accent-gradient); color: #001218;
  box-shadow: 0 6px 30px rgba(59, 224, 201, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 40px rgba(59, 224, 201, 0.45); }
.btn-ghost {
  border: 1px solid var(--border-strong); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ===========================
   Sections
   =========================== */
.section { padding: 96px 0; position: relative; }
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-sub { color: var(--text-mute); max-width: 640px; margin: 0; }

/* ===========================
   Filter bar
   =========================== */
.filter-bar { margin-bottom: 32px; }

.category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.cat-tab {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 13px; font-weight: 500;
  color: var(--text-mute);
  transition: all .2s;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text); border-color: var(--border-strong); }
.cat-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(59, 224, 201, 0.4);
}
.cat-tab .count {
  margin-left: 6px; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim);
}
.cat-tab.active .count { color: var(--accent); opacity: .8; }

.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.search-wrap {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-mute);
  transition: border-color .2s, background .2s;
}
.search-wrap:focus-within { border-color: var(--accent); background: rgba(59, 224, 201, 0.04); }
.search-wrap input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  font-size: 15px; outline: none; font-family: inherit;
}
.search-wrap input::placeholder { color: var(--text-dim); }

.sort-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.sort-label { font-size: 13px; color: var(--text-dim); }
.sort-wrap select {
  background: transparent; border: 0; color: var(--text);
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8B4C7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.sort-wrap select option { background: var(--bg-2); color: var(--text); }

.results-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; font-family: var(--font-mono); }
.results-meta strong { color: var(--text); font-weight: 600; }

/* ===========================
   Domain grid & cards
   =========================== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.domain-card {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: cardIn .4s ease both;
}
.domain-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.domain-card .d-top {
  display: flex; justify-content: space-between; align-items: start; gap: 12px;
}
.domain-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-all;
  color: var(--text);
}
.domain-name .tld {
  color: var(--accent);
  opacity: .9;
}

.d-price {
  text-align: right;
  flex-shrink: 0;
}
.d-price .price-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.d-price .price-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.d-price .price-label.offer { color: var(--accent); }

.domain-desc {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp .2s;
}
.domain-desc.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
}
.desc-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: -6px 0 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: 0.01em;
  transition: color .15s;
}
.desc-toggle:hover,
.desc-toggle:focus-visible {
  color: var(--text);
  text-decoration: underline;
  outline: none;
}
.desc-toggle .toggle-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s;
}
.desc-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.d-bot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cat-badge {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-mute);
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cat-color, var(--accent));
}
.sedo-link {
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.sedo-link:hover { gap: 8px; }
.sedo-link .arrow { transition: transform .2s; }
.sedo-link:hover .arrow { transform: translateX(2px); }

/* Category color modifiers */
.domain-card[data-cat="AI & Machine Learning"]       { --cat-color: var(--cat-ai); }
.domain-card[data-cat="Oncology & Diagnostics"]      { --cat-color: var(--cat-onc); }
.domain-card[data-cat="Patient Outcomes & Data"]     { --cat-color: var(--cat-prom); }
.domain-card[data-cat="Digital Health & Hospitals"]  { --cat-color: var(--cat-hosp); }
.domain-card[data-cat="Women's & Men's Health"]      { --cat-color: var(--cat-wh); }
.domain-card[data-cat="Medicolegal"]                 { --cat-color: var(--cat-leg); }
.domain-card[data-cat="Specialty Care"]              { --cat-color: var(--cat-spec); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.empty-state {
  padding: 40px; text-align: center;
  color: var(--text-mute);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.link-btn { color: var(--accent); text-decoration: underline; background: transparent; padding: 0; font-size: inherit; }

/* ===========================
   Bundles
   =========================== */
.bundles-section { background: linear-gradient(180deg, transparent 0%, rgba(59, 224, 201, 0.03) 50%, transparent 100%); }

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.bundle-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.bundle-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-gradient);
  opacity: .7;
}
.bundle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 224, 201, 0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(59, 224, 201, 0.08);
}

.bundle-head { margin-bottom: 18px; }
.bundle-tagline {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.bundle-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.bundle-desc {
  font-size: 14px; color: var(--text-mute); line-height: 1.55;
  margin: 0;
}

.bundle-pricing {
  display: flex; align-items: baseline; gap: 12px;
  margin: 22px 0 18px;
  flex-wrap: wrap;
}
.bundle-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bundle-original {
  font-size: 14px; color: var(--text-dim);
  text-decoration: line-through;
}
.bundle-savings {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}

.bundle-domains {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 16px 0 22px;
}
.bundle-domain-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-mute);
}

.bundle-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.bundle-cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   About
   =========================== */
.about-inner { max-width: 1100px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.about-copy p {
  color: var(--text-mute); font-size: 16px; line-height: 1.7;
  margin: 0 0 16px;
}
.about-copy strong { color: var(--text); font-weight: 600; }

.about-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 16px;
}
.about-card-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.about-card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }
.ac-value {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--text);
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===========================
   For founders
   =========================== */
.founders-section { padding: 80px 0; border-top: 1px solid var(--border); }
.founders-section .container { max-width: 1100px; }
.founders-section h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 32px;
  line-height: 1.25; color: var(--text); margin: 8px 0 24px; max-width: 760px;
}
.founders-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 8px;
}
.founders-col {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.founders-col h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--text); margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.founders-col p {
  color: var(--text-mute); font-size: 15px; line-height: 1.7;
  margin: 0 0 14px;
}
.founders-col p:last-child { margin-bottom: 0; }
.founders-col a {
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft);
}
.founders-col a:hover { border-bottom-color: var(--accent); }
.founders-fine {
  margin-top: 28px; font-size: 13px; color: var(--text-dim);
  text-align: center;
}
@media (max-width: 720px) {
  .founders-section { padding: 56px 0; }
  .founders-section h2 { font-size: 24px; }
  .founders-grid { grid-template-columns: 1fr; gap: 20px; }
  .founders-col { padding: 22px; }
}

/* ===========================
   Contact
   =========================== */
.contact-section { text-align: center; padding-bottom: 120px; }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.contact-sub { color: var(--text-mute); margin: 0 auto 32px; max-width: 520px; }

.contact-email {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  font-size: 18px;
  transition: all .25s;
  text-align: left;
}
.contact-email:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 224, 201, 0.12);
}
.contact-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; display: block; }
.contact-address {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-top: 2px;
}
.contact-arrow {
  font-size: 22px; color: var(--accent);
  transition: transform .2s;
  margin-left: 8px;
}
.contact-email:hover .contact-arrow { transform: translateX(4px); }

.contact-fine { margin-top: 28px; font-size: 13px; color: var(--text-dim); }

/* ===========================
   Footer
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: rgba(0,0,0,0.25);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "left right"
    "meta meta";
  gap: 24px;
  align-items: center;
}
.footer-left { grid-area: left; display: flex; flex-direction: column; gap: 8px; }
.footer-logo { height: 28px; width: auto; max-width: 180px; opacity: .9; }
.footer-tag { color: var(--text-dim); font-size: 13px; margin: 0; }
.footer-right {
  grid-area: right;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px;
}
.footer-right a { color: var(--text-mute); transition: color .2s; }
.footer-right a:hover { color: var(--accent); }
.footer-meta { grid-area: meta; font-size: 12px; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 20px; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "left" "right" "meta"; }
  .footer-right { gap: 16px; }
}

/* ===========================
   Reveal animations
   =========================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .domain-card { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   Featured Section (server-rendered, above the fold) — v2 2026-05-10
   ============================================================ */
.featured-section {
  padding: 56px 0 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 224, 201, 0.03) 50%, transparent 100%);
}

.featured-section .section-head {
  text-align: center;
  margin-bottom: 48px;
}
.featured-section .section-head > div { max-width: 720px; margin: 0 auto; }
.featured-section .section-sub { margin: 0 auto; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(59, 224, 201, 0.18);
}
.featured-card:hover::before { opacity: 1; }

.featured-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.featured-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.featured-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  flex: 1;
}
.featured-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-price::after {
  content: 'View on Sedo →';
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.featured-card:hover .featured-price::after { color: var(--accent); }

.featured-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .featured-card { padding: 24px 20px; }
  .featured-name { font-size: 20px; }
  .featured-section { padding: 40px 0 64px; }
}

/* Stats grid: support 4 items (was 3) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* CTA order: ctas first then stats (Vaihtoehto: erottaa CTA:n korostaen) */
.hero-ctas { margin: 32px 0 0; }

/* ============================================================
   Featured badge in main marketplace grid (v2 — 2026-05-10)
   ============================================================ */
.domain-card { position: relative; }

.domain-card.is-featured {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.18), 0 24px 60px -32px rgba(94, 234, 212, 0.18);
}

/* Featured cards get extra top padding so the badge sits above content */
.domain-card.is-featured { padding-top: 44px; }

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0A1628;
  background: linear-gradient(135deg, #5EEAD4 0%, #38BDF8 100%);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 4px 12px -4px rgba(94, 234, 212, 0.4);
}

@media (max-width: 600px) {
  .domain-card.is-featured { padding-top: 40px; }
  .featured-badge {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ============================================================
   Category landing pages (Vaihe 3 — 2026-05-10)
   /agentic-ai/, /clinical-reasoning/, /digital-health/, /precision-medicine/
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 24px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-mute);
}
.breadcrumb li:not(:last-child)::after {
  content: " /";
  margin-left: 8px;
  color: var(--text-mute);
  opacity: 0.5;
}
.breadcrumb a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] { color: var(--text); }

/* Category hero */
.cat-hero {
  padding: 48px 0 32px;
  position: relative;
}
.cat-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 20px;
  color: var(--text);
}
.cat-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 680px;
  margin: 0 0 24px;
}
.cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-mute);
}
.cat-meta strong {
  color: var(--accent);
  font-weight: 600;
}
.cat-sep { opacity: 0.4; }

/* Why-this-category section */
.cat-why {
  padding: 32px 0 48px;
}
.cat-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.why-block h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}
.why-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0;
}
@media (max-width: 720px) {
  .cat-why-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Sibling category navigation */
.cat-siblings {
  padding: 48px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cat-siblings h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 8px 0 24px;
  color: var(--text);
}
.sibling-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sibling-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sibling-link:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.3);
  color: var(--accent);
}
.sibling-all {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(56, 189, 248, 0.12));
  border-color: rgba(94, 234, 212, 0.3);
  color: var(--accent);
}

/* ============================================================
   Category index on homepage (Vaihe 3 — 2026-05-10)
   "Browse by category" — 4 cards linking to /agentic-ai/, etc.
   ============================================================ */
.cat-index-section { padding: 64px 0; }

.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cat-index-card {
  display: block;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.cat-index-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: linear-gradient(180deg, rgba(94,234,212,0.04), rgba(56,189,248,0.02));
  transform: translateY(-2px);
}
.cat-index-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cat-index-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.cat-index-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0 0 20px;
}
.cat-index-cta {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .cat-index-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-index-card { padding: 22px; }
  .cat-index-card h3 { font-size: 18px; }
}

/* ============================================================
   Mobile fixes (v3 — 2026-05-10)
   - Header: prevent logo/contact button crowding
   - Featured grid: enforce card rendering on all mobile devices
   ============================================================ */

/* Header — more breathing room on mobile, smaller logo, tighter contact button */
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .brand-logo {
    height: 30px !important;
    max-width: 60vw;
  }
  .site-nav { gap: 8px; flex-shrink: 0; }
  .nav-cta {
    padding: 7px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .brand-logo { height: 26px !important; }
  .header-inner { padding: 10px 14px; }
}

/* Featured cards — defensive rules so the card layout always renders,
   regardless of cache state or stylesheet load order */
.featured-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  text-decoration: none !important;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.featured-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .featured-card {
    padding: 20px 18px !important;
  }
  .featured-name {
    font-size: 19px !important;
    word-break: break-word;
  }
  .featured-desc {
    font-size: 14px !important;
    line-height: 1.5;
  }
  .featured-price {
    font-size: 18px !important;
  }
  .featured-cat {
    font-size: 11px !important;
  }
}

/* === SEO update 2026-05-11: FAQ + Why + How + footer-portfolios === */
/* ====== SEO additions 2026-05-11 ======
   FAQ, Why, How, footer cross-links
   Lisätään styles.css:n loppuun molemmille sivustoille
   ===================================== */

/* FAQ section */
.faq-section {
  background: var(--bg-alt, #0d1830);
  padding: 5rem 0;
}
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--card-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--accent, #6df0c8);
}
.faq-q {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text, #e6edf6);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  line-height: 1.4;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-mute, #8b96ab);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-a {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-mute, #b6bfd1);
  line-height: 1.65;
  font-size: 0.97rem;
}
.faq-a p { margin: 0; }

/* Why & How sections */
.why-section, .how-section {
  padding: 5rem 0;
}
.why-body, .how-body {
  max-width: 760px;
  margin: 2rem auto 0;
  color: var(--text-mute, #b6bfd1);
  line-height: 1.7;
  font-size: 1.02rem;
}
.why-body p, .how-body p { margin: 0 0 1.25rem; }
.why-body p:last-child, .how-body p:last-child { margin-bottom: 0; }
.how-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.7;
}
.how-body ol li {
  margin-bottom: 0.75rem;
  color: var(--text-mute, #b6bfd1);
}
.how-body ol li strong {
  color: var(--text, #e6edf6);
  font-weight: 600;
}

/* Footer portfolio cross-links */
.footer-portfolios {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--card-border, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--card-border, rgba(255,255,255,0.08));
  width: 100%;
}
.footer-portfolios-h {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute, #8b96ab);
  margin: 0 0 0.75rem;
}
.footer-portfolios-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-portfolios-list li { margin: 0; }
.footer-portfolios-list a {
  color: var(--text-mute, #b6bfd1);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-portfolios-list a:hover { color: var(--accent, #6df0c8); }
.footer-portfolios-list a strong {
  color: var(--text, #e6edf6);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .faq-section, .why-section, .how-section { padding: 3rem 0; }
  .faq-q { padding: 1rem 1.25rem; padding-right: 2.5rem; font-size: 1rem; }
  .faq-a { padding: 0 1.25rem 1.25rem; }
  .footer-portfolios-list { gap: 0.75rem; flex-direction: column; }
}
