/* ==========================================================================
   NORTHSTAR SHOWROOM — base & shell
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(
      900px 520px at 82% -10%,
      color-mix(in oklab, var(--gold) 9%, transparent),
      transparent 70%
    ),
    var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-mark {
  view-transition-name: showroom-brand;
}

/* layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: clamp(48px, 6vw, 84px) 0;
}

/* type ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--text-3);
}

.eyebrow.no-rule::before {
  display: none;
}

.display {
  font-size: clamp(52px, 8.6vw, 140px);
  font-weight: 560;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(36px, 5.2vw, 78px);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 58ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-3);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section-head-copy {
  max-width: 820px;
}

.section-head .lede {
  margin-top: 18px;
}

.section-head-right {
  flex: 0 0 auto;
  padding-bottom: 8px;
}

/* nav -------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  height: var(--nav-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s, background 0.2s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-line);
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold);
  font: 600 11px/1 var(--font-mono);
}

.brand small {
  color: var(--text-3);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.nav-links a {
  position: relative;
  color: var(--text-2);
  font-size: 12px;
  transition: color 0.18s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-full);
  background: var(--gold-soft);
  color: var(--gold);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
}

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s;
}

.btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--gold-ink);
}

.btn:active {
  transform: scale(0.985);
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--gold-ink);
}

.btn-gold:hover {
  border-color: color-mix(in oklab, var(--gold) 80%, white);
  background: color-mix(in oklab, var(--gold) 86%, white);
  color: var(--gold-ink);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}

.link-arrow .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.link-arrow:hover {
  color: var(--gold);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

/* chips ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-3);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip.live {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
}

.chip.roadmap {
  border-style: dashed;
}

/* footer ----------------------------------------------------------------- */
.footer {
  padding: clamp(56px, 8vw, 110px) 0 24px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
}

.footer-cta {
  margin: 14px 0 24px;
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 540;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.footer-col h4 {
  margin-bottom: 12px;
  color: var(--text-4);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-3);
  font-size: 11.5px;
}

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

.footer-mark {
  margin: clamp(48px, 7vw, 92px) 0 20px;
  color: transparent;
  font-size: clamp(60px, 16vw, 230px);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.055em;
  text-align: center;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font: 500 9px/1.5 var(--font-mono);
  letter-spacing: 0.05em;
}

/* mobile menu ------------------------------------------------------------ */
.menu {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
}

.menu::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-4) var(--pad) var(--sp-6);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-links {
  display: flex;
  flex-direction: column;
  margin-top: clamp(32px, 8vh, 72px);
}

.menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.045em;
}

.menu-links a span {
  color: var(--text-4);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text-3);
  font-size: 10px;
}

/* toast ------------------------------------------------------------------ */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 360px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-size: 11.5px;
  animation: toast-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
}

.toast .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* palette ---------------------------------------------------------------- */
.palette {
  width: min(640px, 92vw);
  max-height: min(560px, 82dvh);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.palette::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
}

.palette-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.palette-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 12.5px;
}

.palette-head input::placeholder {
  color: var(--text-3);
}

.palette-head kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-3);
  font: 500 9px/1.2 var(--font-mono);
}

.palette-body {
  max-height: 390px;
  padding: 6px;
  overflow-y: auto;
}

.palette-group-label {
  padding: 8px 8px 4px;
  color: var(--text-4);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 11.5px;
  text-align: left;
}

.palette-item .icon {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}

.palette-item .hint {
  margin-left: auto;
  color: var(--text-4);
  font: 500 9px/1 var(--font-mono);
}

.palette-item:hover,
.palette-item.is-active {
  background: var(--gold-soft);
  color: var(--text);
}

.palette-item:hover .icon,
.palette-item.is-active .icon {
  color: var(--gold);
}

.palette-foot {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 8.5px;
}

.palette-foot kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* reveal ----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }

.no-anim,
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

.no-anim .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* utils ------------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 110;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 11px;
}

.skip-link:focus {
  top: 12px;
}

/* responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 58px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .menu-btn {
    margin-left: 2px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .live-pill {
    display: none;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
