/* Mesh Wild: shared styles.
   The page follows the device's light or dark setting.
   The camera "viewfinder" is always dark, like a real camera screen. */

:root {
  color-scheme: light dark;

  /* Brand colors, taken from the app icon */
  --night: #050814;      /* icon background */
  --navy: #0d1830;       /* monster face */
  --lime: #9bf01c;       /* mesh lines */
  --rec: #ff4d4d;

  /* Light mode (default) */
  --bg: #edf1f7;         /* golf-ball white with a cool tint */
  --surface: #ffffff;
  --text: #0b1328;
  --muted: #4c5672;
  --line: #d3dae6;
  --link: #2f6a00;
  --highlight: var(--lime);
  --on-highlight: var(--night);

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1080px;

  /* Triangle mesh tile, same style as the icon's wireframe */
  --mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%239bf01c' stroke-width='1.4'%3E%3Cpath d='M0 0H56M0 0V56M0 56L56 0'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='2.4' fill='%23eaffd0'/%3E%3Ccircle cx='56' cy='0' r='2.4' fill='%23eaffd0'/%3E%3Ccircle cx='0' cy='56' r='2.4' fill='%23eaffd0'/%3E%3Ccircle cx='56' cy='56' r='2.4' fill='%23eaffd0'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --surface: #0b1224;
    --text: #edf2ff;
    --muted: #97a1bd;
    --line: #1c2741;
    --link: var(--lime);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-header nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* ---------- Type ---------- */

main {
  flex: 1;
  padding: 24px 0 72px;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr minmax(0, 440px);
    gap: 64px;
    padding-top: 24px;
  }
}

.soon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 30rem;
}

.soon img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex: none;
}

.soon p {
  margin: 0;
  color: var(--muted);
}

.soon strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ---------- Viewfinder (the camera screen) ---------- */

.viewfinder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background: var(--night);
  color: #edf2ff;
  box-shadow:
    0 0 0 1px rgba(155, 240, 28, 0.18),
    0 30px 60px -20px rgba(5, 8, 20, 0.55);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* Detected ground plane: the AR mesh laid flat in perspective */
.floor {
  position: absolute;
  z-index: 0;
  left: -60%;
  right: -60%;
  bottom: -4%;
  height: 72%;
  background-image: var(--mesh);
  background-size: 56px 56px;
  background-position: center bottom;
  opacity: 0.9;
  transform: perspective(420px) rotateX(54deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
}

/* The icon's dark background drops out so the mesh floor shows around the ball */
.viewfinder .subject {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 0;
  width: 100%;
  mix-blend-mode: lighten;
}

/* Corner brackets, drawn with gradients */
.corners {
  --c: rgba(237, 242, 255, 0.85);
  --len: 22px;
  --w: 2px;
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--len) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--len),
    linear-gradient(var(--c), var(--c)) top right / var(--len) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--len),
    linear-gradient(var(--c), var(--c)) bottom left / var(--len) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--len),
    linear-gradient(var(--c), var(--c)) bottom right / var(--len) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--len);
  background-repeat: no-repeat;
}

.hud {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rec::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px var(--rec);
  animation: blink 1.4s steps(2, start) infinite;
}

/* Tracking box that locks onto the ball */
.reticle {
  --c: var(--lime);
  --len: 18px;
  position: absolute;
  z-index: 2;
  inset: auto;
  left: 17%;
  top: 12%;
  width: 70%;
  height: 52%;
  animation: lock 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.3s both;
}

.reticle .tag {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* The reaction: a speech bubble from the monster */
.bubble {
  position: absolute;
  z-index: 4;
  right: 6%;
  top: 64%;
  max-width: 46%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: #ffffff;
  color: var(--night);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  transform-origin: 10% 0;
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 1.1s both;
}

.shutter {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  border: 3px solid rgba(237, 242, 255, 0.9);
  background: rgba(5, 8, 20, 0.5);
}

.shutter::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 5px;
  background: var(--rec);
}

/* Empty search box for the 404 page */
.viewfinder.searching {
  aspect-ratio: 5 / 4;
  max-width: 520px;
  justify-self: start;
  margin-top: 32px;
}

.viewfinder.searching .reticle {
  left: 32%;
  top: 30%;
  width: 36%;
  height: 40%;
  --c: rgba(155, 240, 28, 0.7);
  animation: hunt 3.2s ease-in-out infinite;
}

.viewfinder.searching .reticle .tag {
  background: rgba(237, 242, 255, 0.92);
}

@keyframes lock {
  from {
    opacity: 0;
    transform: scale(1.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes hunt {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-45%, -12%); }
  65% { transform: translate(40%, 10%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ---------- Support ---------- */

.panel {
  position: relative;
  max-width: 40rem;
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel .corners {
  --c: var(--link);
  --len: 16px;
  inset: 12px;
}

.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: break-word;
  margin-bottom: 20px;
}

.checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 30%, transparent);
}

.fine {
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
}

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