/* Header and global controls */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(8, 6, 8, 0.88), rgba(8, 6, 8, 0.48));
  backdrop-filter: blur(18px) saturate(130%);
  transition: height 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  height: 70px;
  border-color: var(--line);
  background: rgba(8, 6, 8, 0.9);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-lockup { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-lockup img { width: clamp(155px, 16vw, 210px); height: auto; }

.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: color 0.2s ease;
}
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--coral); transition: right 0.25s var(--ease-out); }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.button,
.icon-button,
.toolbar-toggle,
.text-button,
.mobile-menu-button,
.category-chip,
.priority-chip,
.card-icon-button {
  border: 0;
  background: none;
  cursor: pointer;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22), transparent 68%); transform: translateX(-120%); transition: transform .65s var(--ease-out); }
.button:hover::before { transform: translateX(120%); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #18080b; background: var(--gradient-brand); box-shadow: 0 12px 34px rgba(255, 55, 71, 0.22); }
.button-primary:hover { box-shadow: 0 18px 45px rgba(255, 55, 71, 0.34); }
.button-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: rgba(255, 126, 105, 0.48); background: rgba(255, 103, 92, 0.06); }
.button-large { min-height: 52px; padding-inline: 26px; font-size: 0.88rem; }
.button[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.05rem;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--ease-out);
}
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.04); transform: translateY(-1px); }

.text-button { padding: 0; color: var(--coral); font-size: .76rem; font-weight: 800; }
.text-button:hover { color: var(--amber); }
.mobile-menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.mobile-menu-button span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.mobile-menu-button span:first-child { top: 16px; }
.mobile-menu-button span:last-child { top: 24px; }
.mobile-menu-button[aria-expanded='true'] span:first-child { top: 20px; transform: rotate(45deg); }
.mobile-menu-button[aria-expanded='true'] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 99;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 10, 14, .98);
  box-shadow: var(--shadow-panel);
}
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.mobile-nav a:last-child { border-bottom: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(72px, 9vw, 130px)) 0 48px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 18% 38%, rgba(255, 50, 69, .13), transparent 29%), radial-gradient(circle at 84% 28%, rgba(168,124,255,.08), transparent 30%);
}
.hero::after {
  content: '';
  position: absolute;
  width: min(800px, 70vw);
  height: min(800px, 70vw);
  right: -18vw;
  top: -12vw;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.035);
  box-shadow: 0 0 0 90px rgba(255,255,255,.012), 0 0 0 180px rgba(255,255,255,.009);
}
.hero-grid { display: grid; align-items: center; }
.hero-copy h1 { margin: 0 0 26px; }
.hero-copy h1 em { color: transparent; font-style: normal; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 26px rgba(255, 77, 83, .16)); }
.hero-lede { max-width: 720px; margin-bottom: 32px; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: var(--muted); font-size: .73rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.hero-orbit { position: absolute; z-index: -1; border: 1px dashed rgba(255, 109, 96, .09); border-radius: 50%; pointer-events: none; animation: orbit-spin 38s linear infinite; }
.hero-orbit-one { width: 420px; height: 420px; left: -290px; top: 30%; }
.hero-orbit-two { width: 160px; height: 160px; left: 42%; bottom: 10%; animation-direction: reverse; animation-duration: 24s; }
@keyframes orbit-spin { to { transform: rotate(1turn); } }

.neural-stage {
  position: relative;
  min-height: clamp(520px, 62vw, 690px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(30, 15, 22, .7), rgba(7,6,8,.9));
  box-shadow: inset 0 0 90px rgba(255, 45, 65, .04), var(--shadow-panel);
}
.neural-stage::before { content: ''; position: absolute; inset: 22px; pointer-events: none; border: 1px solid rgba(255,255,255,.035); border-radius: 25px; }
.neural-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255,255,255,.012) 5px); opacity: .42; mix-blend-mode: soft-light; }
.neural-stage canvas { width: 100%; height: 100%; min-height: inherit; }
.neural-stage-topline { position: absolute; z-index: 4; top: 28px; left: 30px; right: 30px; display: flex; justify-content: space-between; color: var(--muted); }
.neural-status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.neural-status i, .status-pill i, .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse-live 1.8s ease-in-out infinite; }
@keyframes pulse-live { 50% { opacity: .35; transform: scale(.65); } }
.neural-corner { position: absolute; z-index: 4; bottom: 31px; display: grid; gap: 3px; }
.neural-corner-left { left: 30px; }
.neural-corner-right { right: 30px; text-align: right; }
.neural-corner .micro-label { color: var(--faint); }
.neural-corner strong { font-family: var(--font-display); font-size: 1.15rem; }
.neural-instruction { position: absolute; left: 50%; bottom: 28px; z-index: 4; transform: translateX(-50%); color: var(--faint); font-family: var(--font-mono); font-size: .62rem; white-space: nowrap; }

.hero-stat-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 48px; border: 1px solid var(--line); background: var(--line); }
.hero-stat { position: relative; min-height: 112px; padding: 22px; background: rgba(11, 8, 10, .96); overflow: hidden; }
.hero-stat::after { content: ''; position: absolute; width: 70px; height: 70px; right: -25px; top: -25px; border-radius: 50%; background: var(--red); opacity: .08; filter: blur(15px); }
.hero-stat strong { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.04em; }
.hero-stat span { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-stat small { position: absolute; right: 18px; bottom: 17px; color: var(--green); font-family: var(--font-mono); font-size: .6rem; }

/* Activity rail */
.activity-rail { display: grid; grid-template-columns: auto 1fr; min-height: 48px; border-block: 1px solid var(--line); background: rgba(14,9,12,.88); overflow: hidden; }
.activity-label { position: relative; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 0 24px; color: var(--ink); background: var(--bg-1); font-family: var(--font-mono); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; box-shadow: 18px 0 28px var(--bg-1); }
.activity-window { display: flex; align-items: center; overflow: hidden; }
.activity-track { display: flex; width: max-content; animation: ticker-scroll 65s linear infinite; }
.activity-rail:hover .activity-track { animation-play-state: paused; }
.activity-item { display: inline-flex; align-items: center; gap: 8px; padding-inline: 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: .72rem; white-space: nowrap; }
.activity-item b { color: var(--ink-soft); }
.activity-item i { color: var(--coral); font-style: normal; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* Command deck */
.section-command { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.012), transparent); }
/*.command-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-areas:'feature shortlist'; gap: 18px; }*/
.feature-console { grid-area: feature; min-height: 600px; padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; justify-content: flex-end; }
.feature-console::before { background: radial-gradient(circle at 75% 25%, rgba(255, 66, 76, .2), transparent 32%), radial-gradient(circle at 20% 90%, rgba(249,201,130,.09), transparent 32%); }
.metric-console { grid-area: metrics; padding: 26px; }
.shortlist-console { grid-area: shortlist; padding: 26px; min-height: 370px; }
.community-console { grid-area: community; min-height: 250px; padding: 28px; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgba(110,231,183,.2); border-radius: 999px; color: var(--green); font-size: .56rem; }

.feature-watermark { position: absolute; right: -3%; top: 10%; width: 68%; max-height: 240px; object-fit: contain; opacity: .14; filter: grayscale(1) contrast(1.2); }
.feature-sequence { position: absolute; top: 32px; right: 34px; font-family: var(--font-mono); font-size: .65rem; color: var(--faint); letter-spacing: .1em; }
.feature-brand-line { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.feature-logo { display: grid; width: 98px; height: 98px; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(0,0,0,.28); box-shadow: 0 0 46px rgba(255,65,75,.14); }
.feature-logo img { width: 100%; height: 100%; object-fit: contain; padding: 13px; }
.logo-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--amber); font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.06em; }
.feature-console h3 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.3rem); }
.feature-console .feature-tagline { max-width: 620px; margin: 0 0 26px; color: var(--ink-soft); font-size: 1rem; }
.feature-points { display: grid; gap: 9px; margin: 0 0 28px; padding: 0; list-style: none; }
.feature-points li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.feature-points li::before { content: '✦'; color: var(--coral); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-signal { display: inline-flex; margin-bottom: 14px; padding: 6px 11px; border: 1px solid rgba(249,201,130,.2); border-radius: 999px; color: var(--amber); font-family: var(--font-mono); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.metric-matrix { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-cell { min-height: 104px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-cell strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.04em; }
.metric-cell span { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.metric-cell small { display: block; margin-top: 7px; color: var(--green); font-family: var(--font-mono); font-size: .58rem; }
.metric-footnote { margin-top: 18px; color: var(--faint); font-size: .67rem; line-height: 1.55; }

.shortlist-stack { display: grid; gap: 10px; }
.shortlist-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out); }
.shortlist-item:hover { transform: translateX(4px); border-color: var(--line-strong); background: rgba(255,77,83,.055); }
.shortlist-logo { display: grid; width: 58px; height: 46px; place-items: center; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.28); }
.shortlist-logo img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.shortlist-copy strong { display: block; font-size: .78rem; }
.shortlist-copy small { display: block; color: var(--muted); font-size: .62rem; }
.shortlist-rank { color: var(--amber); font-family: var(--font-mono); font-size: .62rem; }

.community-radar { position: absolute; right: -55px; bottom: -70px; width: 230px; height: 230px; border: 1px solid rgba(255,96,91,.15); border-radius: 50%; }
.community-radar::before, .community-radar::after { content: ''; position: absolute; inset: 25%; border: 1px solid rgba(255,96,91,.13); border-radius: 50%; }
.community-radar::after { inset: 43%; background: var(--red); opacity: .45; box-shadow: 0 0 40px var(--red); }
.community-radar span { position: absolute; left: 50%; top: 50%; width: 1px; height: 50%; transform-origin: 50% 0; background: linear-gradient(to bottom, rgba(255,111,96,.28), transparent); animation: radar-spin 8s linear infinite; }
.community-radar span:nth-child(2) { transform: rotate(120deg); }
.community-radar span:nth-child(3) { transform: rotate(240deg); }
@keyframes radar-spin { to { transform: rotate(1turn); } }
.community-console h3 { max-width: 290px; margin-bottom: 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.community-console p { max-width: 430px; color: var(--muted); font-size: .82rem; }
.community-console .button { margin-top: 8px; }

/* Matchmaker */
.matchmaker-section { overflow: hidden; }
.matchmaker-section::before { content: ''; position: absolute; inset: 10% -20% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,84,84,.28), transparent); transform: rotate(-5deg); }
.matchmaker-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.matchmaker-copy h2 { max-width: 720px; margin-bottom: 24px; }
.matchmaker-copy > p { max-width: 680px; color: var(--muted); }
.priority-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 26px; }
.priority-chip { position: relative; padding: 13px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.025); font-size: .75rem; font-weight: 800; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--ease-out); }
.priority-chip:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.priority-chip[aria-pressed='true'] { color: #21090c; border-color: transparent; background: var(--gradient-brand); box-shadow: 0 10px 30px rgba(255,54,71,.2); }
.priority-chip[disabled] { opacity: .4; cursor: not-allowed; }
.matchmaker-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.match-results { min-height: 610px; padding: 30px; }
.match-result-list { display: grid; gap: 12px; }
.match-empty { min-height: 480px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.match-empty strong { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.match-empty p { margin: 6px 0 0; font-size: .78rem; }
.match-empty-orb { position: relative; width: 140px; height: 140px; margin-bottom: 28px; border: 1px dashed rgba(255,99,95,.23); border-radius: 50%; animation: orbit-spin 18s linear infinite; }
.match-empty-orb::before, .match-empty-orb::after { content: ''; position: absolute; inset: 18%; border: 1px solid rgba(255,99,95,.16); border-radius: 50%; }
.match-empty-orb::after { inset: 42%; background: var(--red); border: 0; box-shadow: 0 0 40px rgba(255,64,77,.55); }
.match-result { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.026); cursor: pointer; transition: border-color .2s ease, transform .2s var(--ease-out), background .2s ease; }
.match-result:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(255,79,81,.05); }
.match-result-logo { display: grid; width: 72px; height: 60px; place-items: center; overflow: hidden; border-radius: 13px; background: rgba(0,0,0,.32); }
.match-result-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.match-result-copy strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.match-result-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.match-score { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(249,201,130,.28); border-radius: 50%; color: var(--amber); font-family: var(--font-mono); font-size: .72rem; box-shadow: inset 0 0 20px rgba(249,201,130,.06); }

/* Brand atlas */
.brand-section { background: linear-gradient(to bottom, rgba(255,255,255,.012), transparent 16%); }
.atlas-toolbar { position: sticky; top: 82px; z-index: 20; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(12,8,10,.82); backdrop-filter: blur(22px); box-shadow: 0 18px 55px rgba(0,0,0,.25); }
.search-field, .select-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .8rem; }
.search-field input::placeholder { color: var(--faint); }
kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); background: rgba(0,0,0,.2); font-family: var(--font-mono); font-size: .58rem; }
.select-field span { color: var(--faint); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.select-field select { border: 0; outline: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 700; }
.select-field option { color: var(--ink); background: var(--bg-1); }
.toolbar-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 130px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); background: rgba(255,255,255,.025); font-size: .72rem; font-weight: 800; }
.toolbar-toggle[aria-pressed='true'] { color: var(--amber); border-color: rgba(249,201,130,.3); background: rgba(249,201,130,.06); }
.category-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.category-chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 800; transition: all .2s ease; }
.category-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.category-chip[aria-pressed='true'] { color: #1b090c; border-color: transparent; background: var(--gradient-brand); }
.atlas-status { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; color: var(--faint); font-size: .68rem; }
.atlas-status p { margin: 0; }
.atlas-status strong { color: var(--ink); }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.brand-card { position: relative; min-height: 390px; display: flex; flex-direction: column; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(29,16,21,.82), rgba(10,7,9,.92)); transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.brand-card::before { content: ''; position: absolute; width: 180px; height: 180px; right: -90px; top: -100px; border-radius: 50%; background: var(--card-accent, var(--red)); opacity: .12; filter: blur(35px); }
.brand-card:hover { transform: translateY(-7px); border-color: rgba(255,107,92,.34); box-shadow: 0 28px 70px rgba(0,0,0,.35), 0 0 42px rgba(255,64,77,.08); }
.brand-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.brand-logo-wrap { position: relative; display: grid; width: 100%; height: 98px; place-items: center; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.045), rgba(0,0,0,.23)); }
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s var(--ease-out); }
.brand-card:hover .brand-logo-wrap img { transform: scale(1.06); }
.card-icon-button { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(0,0,0,.25); font-size: 1rem; transition: color .2s, border-color .2s, background .2s; }
.card-icon-button:hover, .card-icon-button[aria-pressed='true'] { color: var(--amber); border-color: rgba(249,201,130,.34); background: rgba(249,201,130,.07); }
.brand-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.brand-category { color: var(--faint); font-family: var(--font-mono); font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-flex; padding: 4px 8px; border: 1px solid rgba(255,103,94,.22); border-radius: 999px; color: var(--coral); background: rgba(255,83,82,.06); font-family: var(--font-mono); font-size: .52rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge.top, .badge.exclusive { color: var(--amber); border-color: rgba(249,201,130,.24); background: rgba(249,201,130,.06); }
.badge.new, .badge.growing { color: var(--green); border-color: rgba(110,231,183,.22); background: rgba(110,231,183,.05); }
.badge.premium, .badge.trending { color: var(--violet); border-color: rgba(168,124,255,.24); background: rgba(168,124,255,.06); }
.brand-title { margin: 0 0 7px; font-size: 1.25rem; letter-spacing: -.035em; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-bottom: 15px; }
.brand-tags span { padding: 4px 7px; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .56rem; font-weight: 700; }
.brand-perks { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.brand-perks li { display: flex; gap: 8px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.brand-perks li::before { content: '•'; color: var(--coral); }
.brand-card-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; margin-top: auto; }
.brand-card-actions .button { min-height: 40px; padding-inline: 14px; font-size: .68rem; }
.compare-button { min-width: 40px; }
.compare-button[aria-pressed='true'] { color: var(--green); border-color: rgba(110,231,183,.3); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }

/* Signal lab */
.signal-section { overflow: hidden; }
.signal-section::before { content: ''; position: absolute; width: 780px; height: 780px; left: -420px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(168,124,255,.065), transparent 66%); }
.signal-layout { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: 'story performance' 'rank benefits'; gap: 16px; }
.signal-story { grid-area: story; min-height: 380px; padding: clamp(28px, 4vw, 50px); }
.performance-panel { grid-area: performance; padding: 28px; }
.rank-panel { grid-area: rank; padding: 28px; }
.benefit-panel { grid-area: benefits; padding: 28px; }
.signal-story h3 { max-width: 640px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
.signal-story > p { max-width: 650px; color: var(--muted); }
.signal-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.signal-bullets li { padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: rgba(255,255,255,.025); font-size: .72rem; }
.signal-bullets li::before { content: '↗'; margin-right: 8px; color: var(--coral); }
.performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.performance-item { min-height: 120px; padding: 18px; background: var(--bg-1); }
.performance-item strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.performance-item span { color: var(--muted); font-size: .6rem; font-weight: 700; text-transform: uppercase; }
.performance-bar { height: 3px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.performance-bar i { display: block; width: var(--bar-width, 70%); height: 100%; background: var(--gradient-brand); box-shadow: 0 0 12px rgba(255,64,77,.32); }
.rank-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.rank-list li { counter-increment: ranking; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.rank-list li::before { content: counter(ranking, decimal-leading-zero); color: var(--faint); font-family: var(--font-mono); font-size: .58rem; }
.rank-list strong { font-size: .72rem; }
.rank-list span { color: var(--green); font-family: var(--font-mono); font-size: .62rem; }
.benefit-list { display: grid; gap: 9px; }
.benefit-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.022); }
.benefit-item strong { display: block; margin-bottom: 3px; font-size: .72rem; }
.benefit-item p { margin: 0; color: var(--muted); font-size: .64rem; }

/* Community and footer */
.community-section { position: relative; padding-block: clamp(90px, 12vw, 160px); overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,49,70,.11), rgba(168,124,255,.035) 48%, rgba(249,201,130,.05)); }
.community-beam { position: absolute; width: 80%; height: 240px; right: -20%; top: 8%; background: linear-gradient(90deg, transparent, rgba(255,70,78,.14), transparent); filter: blur(30px); transform: rotate(-18deg); }
.community-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 8vw, 110px); align-items: center; }
.community-copy h2 { margin-bottom: 24px; }
.community-copy p { max-width: 620px; color: var(--ink-soft); }
.social-grid { display: grid; gap: 10px; }
.social-card { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; min-height: 86px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,6,8,.48); backdrop-filter: blur(14px); transition: transform .25s var(--ease-out), border-color .25s ease, background .25s ease; }
.social-card:hover { transform: translateX(6px); border-color: var(--line-strong); background: rgba(255,71,78,.06); }
.social-symbol { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.05); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }
.social-card strong { display: block; font-size: .82rem; }
.social-card small { color: var(--muted); font-size: .64rem; }
.social-card b { color: var(--coral); font-size: 1rem; }

.site-footer { padding: 70px 0 24px; border-top: 1px solid var(--line); background: #070507; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-brand img { width: 210px; margin-bottom: 16px; }
.footer-brand p { max-width: 360px; color: var(--muted); font-size: .75rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links div { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 7px; color: var(--ink); font-size: .75rem; }
.footer-links a { color: var(--muted); font-size: .7rem; }
.footer-links a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .62rem; }
.footer-bottom p { margin: 0; }

/* Dock, toasts and utility controls */
.compare-dock { position: fixed; left: 50%; bottom: 22px; z-index: 90; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; width: min(760px, calc(100% - 32px)); padding: 12px 14px 12px 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(15,9,12,.92); box-shadow: 0 24px 80px rgba(0,0,0,.52), 0 0 45px rgba(255,54,72,.08); backdrop-filter: blur(22px); transform: translateX(-50%); }
.compare-dock[hidden] { display: none; }
.compare-dock > div:first-child { display: grid; }
.compare-dock .micro-label { color: var(--faint); }
.compare-dock strong { font-size: .7rem; }
.compare-chips { display: flex; min-width: 0; gap: 6px; overflow: hidden; }
.compare-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 9px; border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.045); font-size: .6rem; white-space: nowrap; }
.compare-chip button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }
.back-to-top { position: fixed; right: 22px; bottom: 24px; z-index: 70; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(12,8,10,.8); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.toast-stack { position: fixed; right: 22px; bottom: 80px; z-index: 120; display: grid; gap: 10px; width: min(360px, calc(100% - 32px)); }
.toast { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(16,10,13,.94); box-shadow: var(--shadow-panel); backdrop-filter: blur(20px); animation: toast-in .45s var(--ease-out); }
.toast.is-leaving { animation: toast-out .35s ease forwards; }
.toast-logo { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--amber); background: rgba(255,81,79,.08); font-family: var(--font-display); font-size: .68rem; font-weight: 800; }
.toast strong { display: block; margin-bottom: 2px; font-size: .67rem; }
.toast p { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.toast a { color: var(--coral); font-size: .8rem; }
.toast-demo { position: absolute; right: 8px; top: -8px; padding: 2px 6px; border-radius: 999px; color: var(--amber); background: var(--bg-0); font-family: var(--font-mono); font-size: .45rem; text-transform: uppercase; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* Dialogs */
.modal { width: min(960px, calc(100% - 30px)); max-height: min(860px, calc(100dvh - 30px)); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 28px; color: var(--ink); background: rgba(14,9,12,.98); box-shadow: 0 38px 140px rgba(0,0,0,.72), 0 0 80px rgba(255,55,75,.1); }
.modal::backdrop { background: rgba(3,2,3,.78); backdrop-filter: blur(14px) saturate(80%); }
.modal[open] { animation: modal-in .45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal-close { position: sticky; float: right; top: 18px; right: 18px; z-index: 12; display: grid; width: 42px; height: 42px; place-items: center; margin: 18px 18px 0 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(7,5,7,.72); cursor: pointer; }
.modal-heading { padding: 48px 48px 20px; }
.modal-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }

.brand-dialog { width: min(1080px, calc(100% - 30px)); }
.brand-dialog-layout { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 650px; }
.brand-dialog-visual { position: relative; display: grid; place-items: center; min-height: 650px; padding: 54px; overflow: hidden; background: radial-gradient(circle, rgba(255,70,78,.16), transparent 48%), #0a0709; }
.brand-dialog-visual::before { content: ''; position: absolute; width: 420px; height: 420px; border: 1px dashed rgba(255,109,96,.2); border-radius: 50%; animation: orbit-spin 28s linear infinite; }
.brand-dialog-logo { position: relative; z-index: 2; display: grid; width: min(270px, 74%); aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 38%; background: rgba(0,0,0,.25); box-shadow: 0 0 70px rgba(255,64,77,.14); }
.brand-dialog-logo img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.brand-dialog-index { position: absolute; left: 28px; top: 28px; color: var(--faint); font-family: var(--font-mono); font-size: .62rem; }
.brand-dialog-body { padding: clamp(34px, 5vw, 64px); }
.brand-dialog-body h2 { margin: 10px 0 16px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.brand-dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.brand-dialog-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .65rem; }
.dialog-section-title { margin: 28px 0 12px; color: var(--faint); font-family: var(--font-mono); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-dialog-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.brand-dialog-perks li { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: rgba(255,255,255,.022); font-size: .76rem; }
.brand-dialog-perks li::before { content: '✦'; margin-right: 10px; color: var(--coral); }
.brand-dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.dialog-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; border: 1px solid var(--line); background: var(--line); }
.dialog-meta div { padding: 13px; background: var(--bg-1); }
.dialog-meta span { display: block; color: var(--faint); font-size: .55rem; text-transform: uppercase; }
.dialog-meta strong { font-size: .7rem; }

.compare-dialog { width: min(1180px, calc(100% - 30px)); }
.compare-table-wrap { padding: 10px 48px 48px; overflow-x: auto; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--faint); background: rgba(255,255,255,.025); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.compare-table td { color: var(--ink-soft); font-size: .7rem; }
.compare-brand-head { display: grid; gap: 8px; min-width: 180px; }
.compare-brand-head img { width: 110px; height: 70px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); }
.compare-perk { display: block; margin-bottom: 6px; }

.search-dialog { width: min(720px, calc(100% - 30px)); top: -8vh; }
.command-search-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 25px; border-bottom: 1px solid var(--line); }
.command-search-head > span { color: var(--coral); font-size: 1.4rem; }
.command-search-head input { min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1.05rem; }
.command-results { max-height: 470px; overflow-y: auto; padding: 10px; }
.command-result { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; width: 100%; padding: 12px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.command-result:hover, .command-result.is-active { background: rgba(255,70,78,.07); }
.command-result-logo { display: grid; width: 58px; height: 44px; place-items: center; overflow: hidden; border-radius: 9px; background: rgba(0,0,0,.25); }
.command-result-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.command-result strong { display: block; font-size: .75rem; }
.command-result small { color: var(--muted); font-size: .6rem; }
.command-result b { color: var(--faint); font-family: var(--font-mono); font-size: .58rem; }
.command-hint { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .62rem; }
.command-empty { padding: 50px 20px; color: var(--muted); text-align: center; font-size: .78rem; }

/* .welcome-dialog { width: min(900px, calc(100% - 30px)); overflow: hidden; }
.welcome-dialog[open] { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.welcome-visual { position: relative; min-height: 100%; overflow: hidden; background: #080608; }
.welcome-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease, transform 5s ease; }
.welcome-visual img.is-active { opacity: 1; transform: scale(1.03); }
.welcome-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(8,6,8,.42)), linear-gradient(to top, rgba(8,6,8,.8), transparent 52%); }
.welcome-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 56px); }
.welcome-copy h2 { margin-bottom: 18px; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.welcome-copy p { color: var(--muted); }
.welcome-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.welcome-dots { display: flex; gap: 8px; margin-top: 34px; }
.welcome-dot { width: 24px; height: 3px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; }
.welcome-dot.is-active { background: var(--gradient-brand); } */



/* =========================
   WELCOME POPUP — LANDSCAPE
   ========================= */

.welcome-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.welcome-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Horizontal banner container */
.welcome-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #080608;
}

/* Preserve the entire horizontal banner */
.welcome-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition:
    opacity 0.55s ease,
    transform 5s ease;
}

.welcome-visual img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Subtle fade only at the bottom */
.welcome-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 65%,
    rgba(8, 6, 8, 0.75) 100%
  );
}

/* More compact text area */
.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.welcome-copy h2 {
  max-width: 700px;
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.welcome-copy p {
  max-width: 650px;
  color: var(--muted);
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.welcome-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.welcome-dot {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.welcome-dot.is-active {
  background: var(--gradient-brand);
}

/* Tablet */
@media (max-width: 960px) {
  .welcome-dialog {
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
  }

  .welcome-visual {
    aspect-ratio: 16 / 7;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .welcome-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .welcome-visual {
    aspect-ratio: 16 / 8;
  }

  .welcome-copy {
    padding: 26px 20px;
  }

  .welcome-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

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

  .welcome-actions .button,
  .welcome-actions .text-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}