/* urfaveonlinesloot — "Bimbo Chrome"
   Tokens, the chrome pill box language, the wordmark signature, and the lander.
   Written mobile-first: 99% of traffic is a phone in an in-app browser.

   This is the only light-ground site in the set, which changes one thing
   fundamentally: the video cannot sit behind the text. It is framed as a screen
   in a chrome bezel instead. See the spec, section 2.1. */

/* ------------------------------------------------------------- fonts ---- */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-var.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/assets/fonts/DMMono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------ tokens ---- */

:root {
  --pearl: #f2eef5;
  --blush: #ffe9f4;
  --chrome-hi: #ffffff;
  --chrome-mid: #c8ccd6;
  --chrome-lo: #8e94a3;
  --chrome-deep: #6f7686;
  --bubble: #ff5bb0;
  --sky: #7fd4ff;
  --ink: #16121a;

  /* #ff5bb0 on the pearl ground is about 2.3:1 — good enough for a button fill,
     nowhere near enough for text. Anything pink that carries words uses this
     instead. The obvious mid-pink (#d8317f) is still only 3.90:1 against the
     blush end of the gradient; this clears 4.5:1 with room to spare. A test
     asserts the ratio, so neither value can drift back up. */
  --bubble-text: #c2196b;
  --sky-text: #0d6d92;

  --muted: #5c5766;
  --dim: #8e94a3;
  --hairline: rgba(110, 118, 134, 0.22);

  --f-display: 'Archivo', 'Arial Narrow', Impact, system-ui, sans-serif;
  --f-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* The pill. One number drives every rounded box on the site. */
  --r: 999px;
  --r-card: 18px;
  --rim: 2px;

  --pad: 22px;
  --measure: 34rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(168deg, var(--pearl) 0%, #f7ebf5 44%, var(--blush) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A class that sets `display` outranks the user agent's [hidden] rule, so
   anything toggled with the attribute needs this or it stays on screen. */
[hidden] {
  display: none !important;
}

.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;
}

a {
  color: var(--bubble-text);
}

:focus-visible {
  outline: 2px solid var(--bubble-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- chrome recipe ---- */

/* The metal. Two stops of white, a hard mid-tone break at the 50% line, and a
   return to white — that break is what makes it read as reflective rather than
   as a grey gradient. */
.chrome-fill {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #eef1f5 18%,
    #c3c9d5 44%,
    var(--chrome-deep) 50%,
    #aeb5c3 56%,
    #e6eaf1 78%,
    #ffffff 100%
  );
}

/* --------------------------------------------------------------- stage ---- */

.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------- device ---- */

.device {
  width: 100%;
  max-width: 300px;
}

.bezel {
  position: relative;
  border-radius: 30px;
  padding: 13px 13px 40px;
  background: linear-gradient(
    152deg,
    #ffffff 0%,
    #e4e8ef 14%,
    #b9c0cd 34%,
    var(--chrome-deep) 50%,
    #b2b9c7 62%,
    #e8ecf2 84%,
    #ffffff 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 34px -14px rgba(72, 78, 92, 0.55),
    0 3px 10px -4px rgba(72, 78, 92, 0.35);
}

/* Etched into the metal: a dark glyph with a white highlight one pixel below.
   That pairing is the whole engraving illusion. */
.bezel-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(60, 66, 80, 0.62);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.screen {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    inset 0 0 0 1px rgba(30, 34, 44, 0.9),
    inset 0 2px 12px rgba(0, 0, 0, 0.8);
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* The clip averages 6% luminance. A modest lift keeps it from reading as a
     black rectangle without pushing the night sky into grey mush. */
  filter: brightness(1.16) contrast(1.04) saturate(1.12);
}

/* Glass. A single diagonal sheen — the thing that separates "screen" from
   "video in a rounded box". */
.screen-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    204deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    rgba(255, 255, 255, 0) 46%
  );
}

#unmute-btn {
  position: absolute;
  right: 13px;
  bottom: 9px;
  width: 34px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(46, 52, 64, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #e3e7ee 46%, #c2c8d4 54%, #f2f4f8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(72, 78, 92, 0.45);
}

#unmute-btn:active {
  background: linear-gradient(180deg, #d9dee6 0%, #eef1f5 100%);
  box-shadow: inset 0 1px 3px rgba(72, 78, 92, 0.5);
}

#unmute-btn.on {
  color: var(--bubble-text);
}

/* ---------------------------------------------------------- link panel ---- */

.link-panel {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ------------------------------------------------------------ the name ---- */

/* The signature. Set across two lines, because seventeen characters will not
   fit across a phone at display size even at Archivo's narrowest width — and a
   wordmark shrunk until it fits has stopped being the hero. Broken in two it
   can run considerably larger instead.

   The metal is a gradient clipped to the glyphs, and because it is clipped on
   the h1 rather than on each line, the highlight runs continuously across both
   — one sheet of metal rather than two stacked words. The bevel is two
   drop-shadows, which follow the clipped alpha where a text-shadow would not. */
.name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.35rem, 13vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  background-image: linear-gradient(
    174deg,
    #ffffff 2%,
    #f0f3f7 20%,
    #c6ccd8 42%,
    var(--chrome-deep) 50%,
    #b4bbc9 55%,
    #e9edf3 76%,
    #ffffff 96%
  );
  background-size: 100% 220%;
  background-position: 0 22%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 1px rgba(96, 104, 120, 0.5))
    drop-shadow(0 6px 12px rgba(96, 104, 120, 0.22));
  animation: gloss 7s ease-in-out infinite;
}

.name span {
  display: block;
}

/* The highlight travelling down through the letters. Moving the background of a
   text-clipped gradient is the only way to shift a reflection without moving
   the glyphs themselves. */
@keyframes gloss {
  0%,
  100% {
    background-position: 0 18%;
  }
  50% {
    background-position: 0 78%;
  }
}

/* ---------------------------------------------------------- chrome rule ---- */

.chrome-rule {
  margin: 9px 0 11px;
  width: 100%;
  max-width: 260px;
  line-height: 0;
}

.chrome-rule svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chrome-rule .cr-gloss {
  animation: crGloss 7s ease-in-out infinite;
  transform-origin: 130px 13px;
}

@keyframes crGloss {
  0%,
  100% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.45;
    transform: scaleX(0.72);
  }
}

/* ------------------------------------------------------------- tagline ---- */

.tagline {
  margin: 0 0 22px;
  min-height: 1.5em;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.005em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--bubble-text);
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------- links ---- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Two layers, and it has to be two. The outer element paints the metal rim and
   the drop shadow; .face paints the fill. The --rim gap between them is an even
   border all the way around the curve, which a single border plus a background
   gradient cannot produce — the border would paint a flat colour over the
   gradient at every point. */
.btn {
  display: block;
  padding: var(--rim);
  border-radius: var(--r);
  text-decoration: none;
  background: linear-gradient(
    170deg,
    #ffffff 0%,
    #dfe4ec 22%,
    var(--chrome-lo) 50%,
    #d3d9e3 72%,
    #ffffff 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px -8px rgba(72, 78, 92, 0.5),
    0 2px 6px -2px rgba(72, 78, 92, 0.3);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn .face {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(90, 20, 60, 0.4);
}

/* The gloss: a hard-edged highlight over the top of the pill, clipped by the
   .face overflow so it follows the capsule rather than sitting in a box. */
.btn .face::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.btn-vip .face {
  background: linear-gradient(180deg, #ff92d0 0%, var(--bubble) 48%, #e81f8d 52%, #ff6cbb 100%);
}

.btn-tiktok .face {
  background: linear-gradient(180deg, #a9e4ff 0%, var(--sky) 48%, #17a9e0 52%, #6fd0fb 100%);
  color: #06364a;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px -6px rgba(72, 78, 92, 0.5);
}

/* ----------------------------------------------------------- sub links ---- */

.sub-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sub-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}

.sub-links a:hover {
  color: var(--bubble-text);
  border-bottom-color: var(--bubble-text);
}

/* --------------------------------------------------------- hit counter ---- */

.live {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  padding: 5px 13px 5px 10px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #ffffff, #eceff4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 8px -3px rgba(72, 78, 92, 0.35);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bubble);
  box-shadow: 0 0 0 3px rgba(255, 91, 176, 0.2);
  animation: pulse 2.1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* -------------------------------------------------------------- canvas ---- */

/* Ambient only. Sits behind everything and never takes a pointer event. */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------ wider ---- */

@media (min-width: 720px) {
  .stage {
    flex-direction: row;
    gap: 46px;
    justify-content: center;
    align-items: center;
  }

  .device {
    max-width: 292px;
    flex: 0 0 auto;
  }

  .link-panel {
    align-items: flex-start;
    text-align: left;
    max-width: 380px;
  }

  .name {
    font-size: clamp(2.8rem, 4.6vw, 3.7rem);
  }

  .chrome-rule {
    margin-left: 0;
  }
}

/* --------------------------------------------------- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .name,
  .chrome-rule .cr-gloss,
  .live i,
  .caret {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .caret {
    opacity: 1;
  }
}
