/* wrister.app coming-soon page: deep blue-black, Wrister blue, one typeface (Manrope). */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to Manrope's metrics, so the page doesn't jump when the font arrives */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 103.86%;
  ascent-override: 103.02%;
  descent-override: 28.88%;
  line-gap-override: 0%;
}

:root {
  --bg: #05070b;
  --text: #f2f5f9;
  --muted: #a3adbb;
  --faint: #6f7a89;
  --wrister: #0799ff;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Manrope Fallback", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wrister); color: #03101d; }
:focus-visible { outline: 2px solid var(--wrister); outline-offset: 4px; border-radius: 2px; }

main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 96px) 20px clamp(32px, 5vh, 56px);
  overflow: hidden;
}
/* soft blue light behind the logo */
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(closest-side at 50% 38%, rgba(7, 153, 255, 0.16), rgba(7, 153, 255, 0.04) 55%, transparent);
}

/* Sunburst: the fine rays of a watch dial, with light slowly turning across them.
   It fills the screen and fades to nothing before every edge, so it never shows a cut. */
.sunburst {
  --ray: rgba(124, 200, 255, 0.045);
  --glint: rgba(124, 200, 255, 0.26);
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, transparent 18%, #000 42%, rgba(0, 0, 0, 0.4) 68%, transparent 94%);
          mask-image: radial-gradient(closest-side at 50% 50%, transparent 18%, #000 42%, rgba(0, 0, 0, 0.4) 68%, transparent 94%);
}
.sunburst::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--ray) 0deg, transparent 0.6deg, var(--ray) 1.2deg);
}
.sunburst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 125vmax;
  aspect-ratio: 1;
  translate: -50% -50%;
  rotate: 20deg;
  background: repeating-conic-gradient(var(--glint) 0deg, transparent 0.6deg, var(--glint) 1.2deg);
  -webkit-mask-image: conic-gradient(transparent 0deg, #000 45deg, transparent 90deg 180deg, #000 225deg, transparent 270deg);
          mask-image: conic-gradient(transparent 0deg, #000 45deg, transparent 90deg 180deg, #000 225deg, transparent 270deg);
}
@keyframes turn { from { rotate: 20deg; } to { rotate: 380deg; } }

.stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark img { width: clamp(220px, min(72vw, 40vh), 400px); height: auto; }
.line { margin-top: clamp(20px, 3.5vh, 32px); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; text-wrap: balance; }
.soon {
  margin-top: clamp(14px, 2.4vh, 20px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.soon::before, .soon::after { content: ""; width: 28px; border-top: 1px solid var(--wrister); }
.punch {
  margin-top: clamp(32px, 6vh, 56px);
  max-width: 15em;
  font-size: clamp(28px, min(4.4vw, 6.4vh), 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: clamp(24px, 4vh, 36px);
  padding: 0 24px;
  border-radius: 4px;
  background: var(--wrister);
  color: #03101d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
.btn:hover { background: #2aa6ff; }
.btn svg { width: 18px; height: 18px; }

footer {
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
}
footer a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(163, 173, 187, 0.35); text-underline-offset: 3px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
footer a:hover { color: var(--text); text-decoration-color: var(--text); }

/* Page load: everything arrives once, quietly */
@keyframes arrive { from { opacity: 0; translate: 0 12px; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .stage > * { animation: arrive 0.9s var(--ease) both; }
  .stage > :nth-child(2) { animation-delay: 0.08s; }
  .stage > :nth-child(3) { animation-delay: 0.14s; }
  .stage > :nth-child(4) { animation-delay: 0.22s; }
  .stage > :nth-child(5) { animation-delay: 0.3s; }
  .sunburst { animation: fade-in 1.6s ease 0.2s both; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .sunburst::after { animation: turn 120s linear infinite; }
}
