/* ============================================================
   Xhyzer — public landing page.
   Built on the Xhyzer tokens; the only gradient allowed is the single
   faint radial accent glow at the top of the page.
   ============================================================ */
body {
  background: var(--bg-base);
  background-image: radial-gradient(circle at 50% -10%, var(--accent-softer), transparent 55%);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; max-width: 1120px; margin: 0 auto; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.brand .wm {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; color: var(--text-primary);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary); text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.signin {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary); text-decoration: none;
}
.signin:hover { color: var(--text-primary); }
.cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm); background: var(--accent);
  color: var(--accent-contrast); font-weight: 600; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.cta:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.cta.ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.cta.ghost:hover { background: var(--accent-soft); color: var(--text-primary); }
.toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-default);
  color: var(--text-secondary); cursor: pointer;
}
.toggle:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---- hero ---- */
/* Tightened so the mock desk is above the fold on a 1440x800 laptop. It counts
   up on entrance, which is worth nothing if the numbers start below the fold,
   and a hero that fills the whole screen with type reads as a placeholder. */
.hero { padding: 40px 0 32px; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-5xl); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); margin: 0 auto 20px; max-width: 900px;
}
/* Break on the clause, not wherever the width happens to run out: left to wrap
   naturally this split "One / number that matters." across the two lines. */
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero p {
  font-size: var(--text-lg); color: var(--text-secondary); line-height: 1.55;
  max-width: 660px; margin: 0 auto 24px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.hero-cta .cta { padding: 12px 22px; font-size: var(--text-sm); }
/* Scoped to .hero deliberately. As a bare `.trust` this lost to `.hero p`
   (0,1,0 against 0,1,1), so the microcopy rendered at 16px body size in
   monospace and wrapped to two lines, competing with the paragraph above it
   instead of sitting quietly under the buttons. */
.hero .trust {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: .06em; line-height: var(--leading-normal);
  color: var(--text-tertiary);
}

/* ---- product visual ---- */
.visual {
  margin: 44px auto 0; max-width: 920px;
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; text-align: left;
}
.visual::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5;
}
.v-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 16px; }
.v-head .t { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); }
.v-head .s {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-tertiary);
}
/* Wrap, or the third metric is pushed outside the card and clipped on a phone:
   the run-rate is the number the hero is selling, so it cannot be the one that
   falls off. Wrapping never triggers at desktop widths. */
.v-metrics { display: flex; flex-wrap: wrap; gap: 40px; row-gap: 18px; margin-bottom: 18px; }
.v-metrics .l {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-tertiary); display: block; margin-bottom: 3px;
}
.v-metrics .val {
  font-family: var(--font-mono); font-feature-settings: var(--tabular); font-size: 26px;
}
.v-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.v-pill {
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.v-pill .w {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 5px;
}
.v-pill .t {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; color: var(--pos);
}

/* ---- venues ---- */
.venues { text-align: center; padding: 56px 0 20px; }
.venues .cap {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 22px;
}
.venue-row { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.venue-row span {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--text-tertiary); letter-spacing: -.01em;
}

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 40px 0; }
.feat {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 26px;
}
.feat .ic { color: var(--accent); margin-bottom: 16px; display: block; }
.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: 8px; }
.feat p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- formula ---- */
.formula { text-align: center; padding: 60px 0; }
.formula .eyebrow { margin-bottom: 20px; }
/* Section headings all sit on --text-3xl. They were 34, 30 and 38px, three
   sizes off the scale doing the same job at three apparent ranks. */
.formula h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl);
  letter-spacing: -.02em; margin: 0 auto 16px; max-width: 620px; line-height: 1.1;
}
.formula p {
  font-size: var(--text-md); color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 28px; line-height: 1.6;
}
.code {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  color: var(--text-primary); background: var(--surface-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 16px 22px;
}
/* Weight, not colour: --accent is a near-text monochrome in both themes, so a
   colour-only emphasis here was invisible. Colour stays reserved for PnL. */
.code .g { color: var(--accent); font-weight: 600; }

/* ---- closing band ---- */
.band {
  margin: 20px 0 60px; background: var(--surface-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-2xl);
  padding: 52px; text-align: center; position: relative; overflow: hidden;
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, var(--accent-soft), transparent 60%);
}
.band > * { position: relative; }
.band h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight); margin-bottom: 16px;
}
.band p { color: var(--text-secondary); font-size: var(--text-md); margin: 0 auto 28px; max-width: 480px; }

footer { border-top: 1px solid var(--border-default); padding: 32px; }
.foot {
  max-width: 1120px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
}

@media (max-width: 860px) {
  nav { flex-wrap: wrap; }
  .nav-links { display: none; }
  .hero h1 { font-size: var(--text-4xl); }
  .features { grid-template-columns: 1fr; }
  .v-strip { grid-template-columns: repeat(2, 1fr); }
  .v-metrics { gap: 24px; }
  .foot { flex-direction: column; text-align: center; }
}

/* Pricing strip */
.pricing {
  text-align: center; padding: 72px 24px;
  border-top: 1px solid var(--border-subtle);
}
.pricing .eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.pricing h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl);
  margin: 12px 0 12px; color: var(--text-primary);
}
.pricing .price { font-size: var(--text-4xl); }
.pricing p {
  font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.7;
  color: var(--text-secondary); max-width: 460px; margin: 0 auto;
}

/* Footer legal links. Six of them plus a support address do not fit one phone
   line; without wrapping the last few sit off-screen and are unreachable. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.foot-links a { color: var(--text-secondary); text-decoration: none; }
.foot-links a:hover { color: var(--text-primary); }

/* ============================================================
   Motion. Everything here is entrance-only and short: the page
   should feel considered, not animated at. All of it collapses
   under prefers-reduced-motion, which is not decoration either,
   since vestibular triggers are a real accessibility concern.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }
/* Applied only while JS puts the element into its hidden start state, so the
   hide is instant and only the reveal animates. */
.reveal.no-anim { transition: none; }

/* There was a `.hero .reveal { transform: translateY(20px) }` here. It ties
   `.reveal.in` on specificity and came later, so it won: hero elements got the
   `in` class, faded up to full opacity, and stayed parked 20px below their
   layout position forever. Any hero-specific travel must be written so the
   revealed state still wins, e.g. `.hero [data-reveal]:not(.in)`. */

/* Live indicator on the mock, mirroring the real desk's status dot. */
.v-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.v-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos); position: relative;
}
.v-live i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--pos); opacity: .45;
  animation: xz-ping 2.4s var(--ease-out) infinite;
}
@keyframes xz-ping {
  0%   { transform: scale(.6); opacity: .5; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* Numbers that count up need a stable width, or the layout jitters. */
.v-metrics .val, .v-pill .t { font-variant-numeric: tabular-nums; }

.cta, .feat, .v-pill {
  transition: transform var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}
.cta:hover { transform: translateY(-1px); }
.feat:hover { border-color: var(--border-strong); }

/* Six cards read better as three columns on a wide screen. */
.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feat .more {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px solid var(--accent-line); padding-bottom: 1px;
}
.feat .more:hover { color: var(--text-primary); }

/* Venue row gains a fifth member; keep it breathing on narrow screens. */
.venue-row { gap: 34px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .v-live i::after { animation: none; }
  .cta:hover { transform: none; }
}
