/* VisionXE design system — ported from the prototype's styles-bold.css.
   Legacy tokens renamed: --red → --accent (brand BLUE #0154a4),
   --yellow → --signal (brand ORANGE #f06522). Bold, billboard, white-spacious. */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --bg-3: #ededeb;
  --ink: #232020;          /* warm charcoal — NOT pure black */
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e5e5e3;
  --line-2: #cccccc;
  --paper: #ffffff;
  --footer: #3f3a34;

  /* Brand */
  --accent: #0154a4;       /* primary — VXE brand blue */
  --accent-dark: #013a73;
  --accent-soft: #d9e6f4;
  --signal: #f06522;       /* secondary — VXE brand orange */
  --signal-soft: #fde0d0;
  --available: #00a651;
  --available-soft: #d6f0e0;

  /* Type */
  --display: 'Archivo', system-ui, sans-serif;
  --script: 'Instrument Serif', serif;
  --sans: 'Geist', 'Geist Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Radii — tight, billboard */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* Incoming-domain bar height (set by JS when the bar is present) */
  --vxe-bar-h: 0px;
}

html, body { margin: 0; padding: 0; }
body.vxeb-page {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.vxeb-page *, .vxeb-page *::before, .vxeb-page *::after { box-sizing: border-box; }
.vxeb-page h1, .vxeb-page h2, .vxeb-page h3, .vxeb-page h4 { margin: 0; font-weight: 900; font-family: var(--display); letter-spacing: -0.03em; }
.vxeb-page p { margin: 0; }
.vxeb-page a { color: inherit; }
.vxeb-page button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.vxeb-page input, .vxeb-page select, .vxeb-page textarea { font-family: inherit; }
.vxeb-page img { max-width: 100%; height: auto; }

.vxeb-skiplink { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.vxeb-skiplink:focus { left: 8px; top: 8px; }

/* Layout wrappers */
.vxeb-wrap { max-width: 1280px; margin: 0 auto; }
.vxeb-wrap--narrow { max-width: 820px; }

/* ===== Atoms ===== */
.vxeb-display { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.vxeb-mono { font-family: var(--mono); letter-spacing: 0; }
.vxeb-script { font-family: var(--script); font-style: italic; letter-spacing: -0.02em; font-weight: 400; }

.vxeb-eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); font-weight: 500; }

.vxeb-rule { height: 1px; background: var(--line); border: 0; }
.vxeb-rule--thick { height: 3px; background: var(--ink); border: 0; }

.vxeb-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 0; color: var(--ink); background: var(--paper);
}
.vxeb-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vxeb-tag--available { color: var(--available); border-color: var(--available); }
.vxeb-tag--inuse { color: var(--ink-3); border-color: var(--line-2); background: var(--bg-3); }
.vxeb-tag--hot { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.vxeb-tag--signal { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.vxeb-tag--invert { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.vxeb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 0; transition: transform .12s, background .15s, color .15s, border-color .15s; border: 2px solid transparent;
}
.vxeb-btn:active { transform: translateY(1px); }
.vxeb-btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vxeb-btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.vxeb-btn--accent { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.vxeb-btn--accent:hover { background: #c44e15; border-color: #c44e15; }
.vxeb-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.vxeb-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.vxeb-btn--signal, .vxeb-btn--yellow { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.vxeb-btn--signal:hover, .vxeb-btn--yellow:hover { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.vxeb-btn--blue { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.vxeb-btn--blue:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.vxeb-btn--lg { height: 58px; padding: 0 30px; font-size: 14px; }
.vxeb-btn--sm { height: 36px; padding: 0 14px; font-size: 11px; }
.vxeb-btn--xl { height: 68px; padding: 0 36px; font-size: 16px; }
.vxeb-btn.is-disabled { background: var(--bg-3); color: var(--ink-3); border-color: var(--line-2); cursor: not-allowed; pointer-events: none; }

.vxeb-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }

/* ===== Logo ===== */
.vxeb-logo { display: inline-flex; align-items: baseline; gap: 0; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.vxeb-logo .x { font-family: var(--script); font-style: italic; color: var(--accent); text-transform: lowercase; font-weight: 400; font-size: 1.25em; letter-spacing: -0.02em; line-height: 1; margin-left: 1px; position: relative; top: 2px; }

/* ===== Header / Nav ===== */
.vxeb-header { position: relative; }
.vxeb-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 56px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: var(--vxe-bar-h, 0px); z-index: 5; }
.vxeb-nav__logo { text-decoration: none; }
.vxeb-nav__links { display: flex; gap: 32px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.vxeb-nav__links a { color: inherit; text-decoration: none; cursor: pointer; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .12s, color .12s; }
.vxeb-nav__links a:hover, .vxeb-nav__links a.is-active { color: var(--ink); border-color: var(--accent); }
.vxeb-nav__cta { display: flex; gap: 10px; }

/* ===== Incoming-domain bar ===== */
.vxeb-incoming { position: sticky; top: 0; z-index: 7; background: var(--ink); color: #fff; }
.vxeb-incoming__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 56px; flex-wrap: wrap; }
.vxeb-incoming__msg { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.vxeb-incoming__eyebrow { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.vxeb-incoming__msg .vxeb-mono { color: #fff; }
.vxeb-incoming__actions { display: inline-flex; align-items: center; gap: 10px; }
.vxeb-incoming__close { width: 30px; height: 30px; color: rgba(255,255,255,0.7); font-size: 20px; line-height: 1; border: 1px solid rgba(255,255,255,0.2); }
.vxeb-incoming__close:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ===== Footer (lighter than --ink) ===== */
.vxeb-footer { background: var(--footer); color: rgba(255,255,255,0.72); font-size: 13px; }
.vxeb-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 80px 56px 56px; border-bottom: 1px solid rgba(255,255,255,0.08); max-width: 1280px; margin: 0 auto; }
.vxeb-footer .vxeb-logo { font-size: 36px; color: var(--paper); }
.vxeb-footer .vxeb-logo .x { color: var(--accent); }
.vxeb-footer__pitch { margin-top: 18px; max-width: 360px; line-height: 1.55; color: rgba(255,255,255,0.65); }
.vxeb-footer__cta { margin-top: 24px; display: flex; gap: 10px; }
.vxeb-footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 500; }
.vxeb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vxeb-footer__col a { color: inherit; text-decoration: none; }
.vxeb-footer__col a:hover { color: var(--paper); }
.vxeb-footer__bottom { display: flex; justify-content: space-between; padding: 24px 56px; font-size: 12px; color: rgba(255,255,255,0.4); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 12px; }

/* ===== Section ===== */
.vxeb-sec { padding: 110px 56px; border-bottom: 1px solid var(--line); }
.vxeb-sec--tight { padding: 70px 56px; }
.vxeb-sec--alt { background: var(--bg-2); }
.vxeb-sec--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vxeb-sec--ink .vxeb-eyebrow { color: rgba(255,255,255,0.5); }
.vxeb-sec--accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.vxeb-sec--signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }

.vxeb-display-xxl { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 9vw, 132px); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
.vxeb-display-xl { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.vxeb-display-lg { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 4.5vw, 56px); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.vxeb-display-md { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 32px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; }

.vxeb-strike { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }

/* ===== Icon tile ===== */
.vxeb-icon-tile { width: var(--tile-size, 44px); height: var(--tile-size, 44px); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background: transparent; color: var(--ink); transition: background .12s, color .12s, border-color .12s; }
.vxeb-icon-tile--on, .vxeb-icon-tile:hover { background: var(--tile-color, var(--accent)); color: var(--paper); border-color: transparent; }

/* ===== Name card (canonical, shared across Search/List/Category) ===== */
.vxeb-namecard { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.vxeb-namecard.is-inuse { opacity: 0.92; }
.vxeb-namecard__top { display: flex; align-items: center; gap: 8px; }
.vxeb-namecard__star { margin-left: auto; width: 28px; height: 28px; color: var(--line-2); font-size: 16px; line-height: 1; transition: color .12s; }
.vxeb-namecard__star[aria-pressed="true"], .vxeb-namecard__star:hover { color: var(--signal); }
.vxeb-namecard__name { text-decoration: none; display: block; }
.vxeb-namecard__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.vxeb-namecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.vxeb-namecard__price { font-size: 20px; }
.vxeb-namecard__per { color: var(--ink-3); font-size: 11px; }

/* Grid helper for card collections */
.vxeb-namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

/* ===== Prose (legal/info pages) ===== */
.vxeb-page-head { margin-bottom: 32px; }
.vxeb-page-head .vxeb-eyebrow { display: block; margin-bottom: 12px; }
.vxeb-rich { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.vxeb-rich h2 { font-size: 26px; margin: 36px 0 12px; }
.vxeb-rich h3 { font-size: 20px; margin: 28px 0 10px; }
.vxeb-rich p { margin: 0 0 16px; }
.vxeb-rich a { color: var(--accent); text-decoration: underline; }
.vxeb-rich ul, .vxeb-rich ol { margin: 0 0 16px; padding-left: 22px; }
.vxeb-rich li { margin-bottom: 8px; }

/* ===== Premium carousel ===== */
@keyframes vxeb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.vxeb-carousel { overflow: hidden; position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); }
.vxeb-carousel__track { display: flex; gap: 16px; width: max-content; animation: vxeb-marquee 60s linear infinite; }
.vxeb-carousel:hover .vxeb-carousel__track { animation-play-state: paused; }
.vxeb-carousel__card { flex: 0 0 230px; background: var(--paper); border: 2px solid var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.vxeb-carousel__card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }

.vxeb-board { position: relative; border-radius: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--paper); }

/* ============================================================
   MOTION LAYER — entrance + scroll reveal + interaction polish
   ============================================================ */
@keyframes vxebUp   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes vxebFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vxebPop  { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .vxeb-display-xxl { animation: vxebUp .8s cubic-bezier(.2,.75,.25,1) both; }
  .vxeb-display-xl  { animation: vxebUp .7s cubic-bezier(.2,.75,.25,1) both; animation-delay: .05s; }
  .vxeb-eyebrow     { animation: vxebFade 1s ease both; }

  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.75,.25,1), transform .7s cubic-bezier(.2,.75,.25,1); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal="left"] { transform: translateX(-26px); }
  [data-reveal="scale"] { transform: scale(.95); }

  .vxeb-btn { transition: transform .15s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; }
  .vxeb-btn--accent:hover, .vxeb-btn--primary:hover, .vxeb-btn--signal:hover, .vxeb-btn--blue:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
  .vxeb-btn--ghost:hover { transform: translateY(-2px); }
  .vxeb-btn:active { transform: translateY(0) !important; box-shadow: none !important; }
  .vxeb-btn.is-disabled { transform: none !important; box-shadow: none !important; }

  .vxeb-tag { transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease; }
  .vxeb-tag:hover { transform: translateY(-1px); }
  .vxeb-logo { transition: opacity .15s ease; }
  .vxeb-logo:hover { opacity: .82; }
  .vxeb-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
  .vxeb-namecard:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===== Template helpers ===== */
/* Accent rule used in page eyebrows */
.vxeb-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vxeb-kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

/* Filter chips (Search / List / Category detail) */
.vxeb-chip { padding: 7px 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); cursor: pointer; }
.vxeb-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vxeb-filterbar { display: flex; gap: 10px; align-items: center; padding: 14px 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.vxeb-filterbar__group { display: flex; gap: 6px; align-items: center; }
.vxeb-filterbar__label { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.vxeb-select { padding: 7px 30px 7px 12px; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); }

/* Name-in-context grid (domain page) */
.vxeb-context-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.vxeb-context { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); }
.vxeb-context__scene { aspect-ratio: 4/3; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.vxeb-context__scene--ink { background: var(--ink); color: #fff; }
.vxeb-context__scene--accent { background: var(--accent); color: #fff; }
.vxeb-context__scene--paper { background: var(--bg-2); color: var(--ink); }
.vxeb-context__eyebrow { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.vxeb-context__foot { padding: 12px 16px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.vxeb-context__foot .vxeb-mono { font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* FAQ (details/summary) */
.vxeb-faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.vxeb-faq details:first-child { border-top: 2px solid var(--ink); }
.vxeb-faq details:last-child { border-bottom: 2px solid var(--ink); }
.vxeb-faq summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.vxeb-faq summary::-webkit-details-marker { display: none; }
.vxeb-faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 20px; }
.vxeb-faq details[open] summary::after { content: "–"; }
.vxeb-faq p { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }

/* Letter rail (List) */
.vxeb-rail { position: sticky; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.vxeb-rail a { width: 30px; height: 24px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.vxeb-rail a.is-empty { color: var(--line-2); border-color: transparent; pointer-events: none; }

/* Hero billboard mock */
.vxeb-billboard { background: var(--ink); color: #fff; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 40px -16px rgba(0,0,0,0.3); }
.vxeb-billboard__eyebrow { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.vxeb-billboard__name { font-family: var(--mono); font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 0.95; }

/* Generic bordered grid wrapper */
.vxeb-bordered { border: 2px solid var(--ink); }
.vxeb-statstrip { padding: 32px 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.vxeb-bigstat__n { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 5vw, 56px); line-height: 0.9; letter-spacing: -0.04em; }
.vxeb-bigstat__l { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 10px; }

/* Comparison/scoreboard tables */
.vxeb-table { border: 2px solid var(--ink); width: 100%; }
.vxeb-table__head, .vxeb-table__row { display: grid; }
.vxeb-table__head { background: var(--ink); color: #fff; }
.vxeb-table__head > div, .vxeb-table__row > div { padding: 16px; }
.vxeb-table__row { border-top: 1px solid var(--line); }
.vxeb-table__th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.vxeb-table__label { font-weight: 600; font-size: 14px; background: var(--bg-2); }
.vxeb-win { background: var(--accent-soft); font-weight: 600; }

/* Responsive helpers for template grids */
@media (max-width: 980px) {
  .vxeb-context-grid { grid-template-columns: 1fr 1fr; }
  .vxeb-statstrip { grid-template-columns: 1fr 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .vxeb-nav { padding: 16px 24px; }
  .vxeb-nav__links { display: none; }
  .vxeb-sec { padding: 64px 24px; }
  .vxeb-sec--tight { padding: 48px 24px; }
  .vxeb-footer__top { grid-template-columns: 1fr 1fr; padding: 56px 24px 40px; }
  .vxeb-incoming__inner { padding: 10px 24px; }
}
@media (max-width: 560px) {
  .vxeb-footer__top { grid-template-columns: 1fr; }
  .vxeb-namegrid { grid-template-columns: 1fr 1fr; }
}
