/*
 * vibrezhq.com — landing
 *
 * COLOUR AUTHORITY: VBZ-BRD-DSN-001, Vibrez Design System v2 (DRAFT, 14 Aug 2026),
 * `tokens/colors.css`. Only the tokens this page actually uses are carried here.
 *
 * WHAT THIS REPLACED: the deployed page (17 Jul 2026) ran lime #CAFF00 as its
 * ground and accent, #080808 as its ink, and a neutral grey ramp — with no
 * #FFA500 anywhere. Lime is retired (DSN-001 §8) and orange is the one action
 * colour. The layout, motion, spacing and copy below are unchanged from that
 * page; only colour, the wordmark file and the CTA radius moved.
 *
 * THE SHAPE THAT SURVIVES: a dark stage, and a light card sitting on it. Canon
 * supports exactly this — `.vbz-light` on a container — so the white form with
 * its hard offset shadow keeps its identity while the era colours leave.
 *
 * The background film was replaced rather than corrected: the old clip was lit
 * lime, baked into the frames. It is now the archways hero the corporate build
 * already uses — dark, and cool throughout.
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  /* --- brand core (DSN-001) --- */
  --vbz-orange: #ffa500;
  --vbz-stage: #111318;
  --vbz-white: #f8fafc;
  --vbz-black: #0a0a0a;

  --orange-300: #ffc24d; /* hover */
  --orange-500: #e89400; /* press */

  --a-orange-10: rgba(255, 165, 0, 0.10);
  --a-stage-45: rgba(17, 19, 24, 0.45);

  /* --- type (DSN-001) --- */
  --vbz-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a-stage-55: rgba(17, 19, 24, 0.55);
  --a-stage-78: rgba(17, 19, 24, 0.78);

  /* --- dark scope: the stage --- */
  --bg-app: var(--vbz-stage);
  --text-primary: var(--vbz-white);
  --accent: var(--vbz-orange);
  --focus-ring: var(--vbz-orange);

  color: var(--text-primary);
  background: var(--bg-app);
  /* Lato is the canon functional face: body, labels, navigation, data.
     The display face (Barlow Semi Condensed Black) is not loaded — the only
     display type on this page is the wordmark, and that is artwork. */
  font-family: var(--vbz-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* LIGHT SCOPE — first-class, not a fallback. Orange is DECORATION on light:
   #FFA500 is ~1.9:1 on #F8FAFC, so it never carries a string. It appears only as
   a large fill (the CTA), and the numerals on it step to near-black. */
.vbz-light {
  --surface-card: #ffffff;
  --surface-2: #f1f4f9;
  --text-primary: var(--vbz-stage);
  --text-tertiary: #5b6478;
  --text-disabled: #9aa3b5;
  --text-on-accent: var(--vbz-black);
  --border-default: rgba(17, 19, 24, 0.15);
  --alert-600: #d34848;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg-app);
}

button,
input {
  font: inherit;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-app) url(/hero-portals-poster.jpg) center / cover no-repeat;
}

/*
 * The archways hero. It is already dark and entirely cool — which is the system's
 * own logic, since orange is the only warm hue we have — so it needs no correction,
 * only enough dim for the card and wordmark to hold the foreground.
 */
.background-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72);
}

/* A warm centre glow and a stage-coloured settle. The glow is orange because
   orange is the only warm hue in the system — it was the lime accent here. */
.background-tint {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, var(--a-orange-10) 0 22%, transparent 58%),
    linear-gradient(180deg, var(--a-stage-55), var(--a-stage-78));
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 6vh, 68px);
  padding: 32px 20px;
}

/* The official wordmark file, unaltered: white letters, #FFA500 exclamation.
   Brand law — never redraw, stretch, crop, rotate, outline or recolour it. It
   replaces /vibrez-lime.png, which was artwork in a retired colour. */
.brand-heading {
  width: min(820px, 82vw);
  margin: 0;
  animation: arrive 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-heading img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px var(--a-stage-45));
}

.contact-form {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 3px solid var(--text-primary);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 10px 10px var(--vbz-stage);
  animation: arrive 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

label {
  position: relative;
  min-width: 0;
}

label + label {
  border-left: 1px solid var(--border-default);
}

label span {
  position: absolute;
  top: 10px;
  left: 18px;
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  pointer-events: none;
}

input {
  width: 100%;
  height: 64px;
  padding: 24px 18px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

input::placeholder {
  color: var(--text-disabled);
  font-weight: 500;
}

label:focus-within {
  background: var(--surface-2);
  border-radius: 11px;
}

.form-trap {
  display: none;
}

/*
 * Primary action. Orange fill, near-black text, and a 4px cut — DSN-001 locks
 * "primary CTAs are 4px cut, never pill"; the pill stays reserved for credit
 * chips, tags and avatars. This was a black button with white text, which spent
 * the page's only action slot on ink.
 */
button {
  min-width: 160px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--orange-300);
}

button:active:not(:disabled) {
  background: var(--orange-500);
}

button:disabled {
  cursor: default;
  opacity: 0.75;
}

/*
 * Focus is never removed, and it is canon's own construction: a 2px stage-
 * coloured gap, then a 4px orange ring. The gap is what makes the ring read on
 * the orange CTA itself — an orange ring straight onto orange is invisible,
 * which is exactly what a bare accent outline gave. It replaces a system blue
 * (#2867FF) that belonged to no palette we have.
 */
button:focus-visible,
input:focus-visible {
  outline: 4px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--vbz-stage);
}

.form-note {
  grid-column: 1 / -1;
  margin: 1px 8px 3px;
  color: var(--text-tertiary);
  font-size: 10px;
  text-align: center;
}

.form-note.is-error {
  color: var(--alert-600);
  font-weight: 700;
}

@keyframes arrive {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .landing-content {
    justify-content: center;
    gap: 34px;
    padding: 24px 16px;
  }

  .brand-heading {
    width: min(440px, 94vw);
  }

  .contact-form {
    grid-template-columns: 1fr;
    border-radius: 17px;
    box-shadow: 7px 7px var(--vbz-stage);
  }

  .fields {
    grid-template-columns: 1fr;
  }

  label + label {
    border-top: 1px solid var(--border-default);
    border-left: 0;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-video {
    display: none;
  }

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