/* Runwiv — Watch live (join) landing — world-class dark UI */
:root {
  --ws-bg: #0a0b0c;
  --ws-surface: rgba(22, 23, 26, 0.72);
  --ws-border: rgba(59, 73, 75, 0.55);
  --ws-cyan: #00f0ff;
  --ws-cyan-soft: #67e8f9;
  --ws-text: #e6e3e4;
  --ws-muted: #9aa6a8;
  --ws-muted2: #6b7678;
  --ws-danger: #f87171;
  --ws-warn: #fcd34d;
  --ws-font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --ws-font-body: Inter, system-ui, sans-serif;
  --ws-radius-lg: 20px;
  --ws-radius-md: 14px;
  --ws-nav-h: 64px;
}

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

.watch-start-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ws-font-body);
  background: var(--ws-bg);
  color: var(--ws-text);
  -webkit-font-smoothing: antialiased;
}

/* —— Atmospheric background (animated pre-join stage) —— */
.watch-start-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #0d1218 0%, var(--ws-bg) 55%);
}

/* Slow conic sweep — “live broadcast” energy */
.watch-start-bg__rotor {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 180vmax;
  height: 180vmax;
  margin-left: -90vmax;
  margin-top: -90vmax;
  background: conic-gradient(
    from 220deg,
    transparent 0deg,
    rgba(0, 240, 255, 0.045) 42deg,
    transparent 78deg,
    transparent 160deg,
    rgba(139, 92, 246, 0.035) 200deg,
    transparent 240deg,
    rgba(103, 232, 249, 0.04) 300deg,
    transparent 360deg
  );
  animation: ws-bg-rotate 100s linear infinite;
  opacity: 0.95;
}

@keyframes ws-bg-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Aurora bands — colour drift */
.watch-start-bg__aurora {
  position: absolute;
  inset: -5%;
  background:
    linear-gradient(125deg, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.11) 35%, rgba(139, 92, 246, 0.07) 55%, rgba(0, 240, 255, 0) 85%),
    linear-gradient(215deg, rgba(52, 211, 153, 0.04) 0%, transparent 40%, rgba(0, 240, 255, 0.08) 70%, transparent 100%);
  background-size: 200% 200%;
  animation: ws-aurora-shift 28s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}

@keyframes ws-aurora-shift {
  0%,
  100% {
    background-position: 0% 40%;
    transform: scale(1);
  }
  33% {
    background-position: 100% 60%;
    transform: scale(1.03);
  }
  66% {
    background-position: 40% 0%;
    transform: scale(1.01);
  }
}

.watch-start-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 240, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(103, 232, 249, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(52, 211, 153, 0.06), transparent 50%);
  animation: ws-mesh-breathe 16s ease-in-out infinite;
}

@keyframes ws-mesh-breathe {
  0%,
  100% {
    opacity: 1;
    filter: saturate(1);
  }
  50% {
    opacity: 0.92;
    filter: saturate(1.15);
  }
}

.watch-start-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: ws-orb-float 18s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .watch-start-bg__rotor,
  .watch-start-bg__aurora,
  .watch-start-bg__mesh,
  .watch-start-bg__grid,
  .watch-start-bg__stars {
    animation: none !important;
  }
  .watch-start-bg__orb {
    animation: none;
  }
}

.watch-start-bg__orb--a {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: -12%;
  right: -15%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.26) 0%, transparent 70%);
}

.watch-start-bg__orb--b {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.14) 0%, transparent 70%);
  animation-delay: -6s;
}

.watch-start-bg__orb--c {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  top: 38%;
  left: 50%;
  margin-left: min(-210px, -37.5vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 68%);
  animation: ws-orb-float-alt 24s ease-in-out infinite;
  animation-delay: -12s;
  opacity: 0.45;
}

@keyframes ws-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-16px, 20px) scale(1.05);
  }
}

@keyframes ws-orb-float-alt {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(22px, -14px) scale(1.06);
  }
}

.watch-start-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 38%, black 0%, transparent 74%);
  opacity: 0.7;
  animation: ws-grid-drift 36s linear infinite;
}

@keyframes ws-grid-drift {
  0% {
    background-position: 0 0;
    opacity: 0.65;
  }
  50% {
    background-position: 48px 24px;
    opacity: 0.78;
  }
  100% {
    background-position: 96px 48px;
    opacity: 0.65;
  }
}

/* Subtle “signal” specks */
.watch-start-bg__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(0, 240, 255, 0.4), transparent),
    radial-gradient(1px 1px at 72% 30%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(103, 232, 249, 0.35), transparent),
    radial-gradient(1px 1px at 55% 88%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 18% 45%, rgba(139, 92, 246, 0.3), transparent);
  background-size: 100% 100%;
  animation: ws-stars-twinkle 14s ease-in-out infinite;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 70%);
}

@keyframes ws-stars-twinkle {
  0%,
  100% {
    opacity: 0.45;
    filter: brightness(1);
  }
  40% {
    opacity: 0.7;
    filter: brightness(1.25);
  }
  70% {
    opacity: 0.5;
    filter: brightness(0.95);
  }
}

.watch-start-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 70% at 50% 45%, transparent 0%, rgba(5, 6, 8, 0.55) 100%);
  pointer-events: none;
}

/* —— Nav —— */
.watch-start-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--ws-nav-h);
  padding: 12px 20px max(12px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: rgba(10, 11, 12, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(59, 73, 75, 0.45);
}

.watch-start-nav__brand {
  font-family: var(--ws-font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--ws-cyan);
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.watch-start-nav__brand:hover {
  opacity: 0.9;
}

.watch-start-nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.06);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-cyan-soft);
}

.watch-start-nav__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: ws-pulse 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .watch-start-nav__pulse {
    animation: none;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  }
}

@keyframes ws-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.watch-start-nav__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ws-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.watch-start-nav__link:hover {
  color: var(--ws-text);
  border-color: var(--ws-border);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Main —— */
.watch-start-main {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

.watch-start-hero {
  margin-bottom: 28px;
}

.watch-start-eyebrow {
  margin: 0 0 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ws-cyan-soft);
  opacity: 0.95;
}

.watch-start-title {
  margin: 0 0 14px;
  font-family: var(--ws-font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.45rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ws-text);
  text-transform: uppercase;
}

.watch-start-lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ws-muted);
  font-weight: 400;
}

.watch-start-lede strong {
  color: #d1f4f8;
  font-weight: 600;
}

.watch-start-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.watch-start-modes__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c5d4d6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 73, 75, 0.65);
}

.watch-start-modes__glyph {
  font-size: 0.85rem;
  color: var(--ws-cyan);
  opacity: 0.85;
}

/* —— Card —— */
.watch-start-card-wrap {
  position: relative;
}

.watch-start-card {
  position: relative;
  border-radius: var(--ws-radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(59, 73, 75, 0.4) 45%, rgba(0, 240, 255, 0.12));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 240, 255, 0.04);
}

.watch-start-card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
  pointer-events: none;
}

.watch-start-card__inner {
  position: relative;
  border-radius: calc(var(--ws-radius-lg) - 1px);
  padding: 22px 20px 20px;
  background: linear-gradient(165deg, rgba(32, 33, 36, 0.92) 0%, rgba(14, 15, 17, 0.98) 100%);
  backdrop-filter: blur(12px);
}

.watch-start-card-title {
  margin: 0 0 8px;
  font-family: var(--ws-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ws-cyan);
}

.watch-start-card-desc {
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--ws-muted);
  line-height: 1.55;
}

.watch-start-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-start-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.watch-start-input-wrap {
  position: relative;
}

.watch-start-input-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--ws-radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), transparent 50%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.watch-start-input-wrap:focus-within::before {
  opacity: 1;
}

.watch-start-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--ws-radius-md);
  border: 1px solid rgba(59, 73, 75, 0.85);
  background: rgba(8, 9, 10, 0.85);
  color: var(--ws-text);
  font-size: 1rem;
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.watch-start-input::placeholder {
  color: var(--ws-muted2);
}

.watch-start-input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.watch-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.watch-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.watch-start-btn:active {
  transform: scale(0.98);
}

.watch-start-btn-primary {
  flex: 1;
  min-width: 160px;
  color: #042f38;
  background: linear-gradient(145deg, #7ef0ff 0%, #5eead4 45%, #22d3ee 100%);
  box-shadow:
    0 4px 20px rgba(0, 240, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.watch-start-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.35),
    0 6px 24px rgba(0, 0, 0, 0.35);
}

.watch-start-btn__arrow {
  flex-shrink: 0;
  opacity: 0.9;
}

.watch-start-btn-secondary {
  flex: 1;
  min-width: 130px;
  color: #e8f4f6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 73, 75, 0.9);
}

.watch-start-btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
}

.watch-start-btn__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.watch-start-btn-ghost {
  width: 100%;
  margin-top: 4px;
  color: var(--ws-muted);
  background: transparent;
  border: 1px dashed rgba(59, 73, 75, 0.85);
}

.watch-start-btn-ghost:hover {
  color: var(--ws-text);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.04);
}

.watch-start-btn--full {
  width: 100%;
}

.watch-start-code-hint {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #a5f3fc;
}

/* —— Scan —— */
.watch-start-scan {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--ws-radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.04);
}

.watch-start-scan__head {
  margin-bottom: 12px;
}

.watch-start-scan-label {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ws-cyan-soft);
}

.watch-start-scan-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ws-muted);
  line-height: 1.45;
}

.watch-start-video-frame {
  position: relative;
  border-radius: var(--ws-radius-md);
  overflow: hidden;
  border: 1px solid rgba(59, 73, 75, 0.75);
  background: #000;
}

.watch-start-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.04) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.watch-start-video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  vertical-align: middle;
}

/* —— Status —— */
.watch-start-status {
  min-height: 1.25em;
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}

.watch-start-status:empty {
  display: none;
  padding: 0;
  margin: 0;
}

.watch-start-status--pending {
  color: var(--ws-cyan-soft);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.watch-start-status--error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* —— Tip —— */
.watch-start-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--ws-radius-md);
  border: 1px solid rgba(59, 73, 75, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.watch-start-tip__mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  font-family: var(--ws-font-display);
  color: var(--ws-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.watch-start-tip__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ws-muted2);
}

.watch-start-footer {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(59, 73, 75, 0.35);
  background: rgba(10, 11, 12, 0.5);
}

.watch-start-footer__copy {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ws-muted2);
}

@media (min-width: 480px) {
  .watch-start-main {
    padding-top: 36px;
  }
}
