@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f6fa;
  --ink: #14152b;
  --ink-soft: #55587a;
  --line: rgba(20, 21, 43, 0.12);
  --peri: #8ea0ff;
  --pink: #f4b4d4;
  --mint: #a4e9d3;
  --indigo: #6f7ddb;
  --frame: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, very light. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

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

/* The hairline frame around the page. */
.frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--line);
  border-radius: 20px;
  pointer-events: none;
  z-index: 40;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--frame) + 22px) calc(var(--frame) + 30px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark img { width: 22px; height: 22px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--ink-soft);
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c59a;
  box-shadow: 0 0 0 0 rgba(52, 197, 154, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 197, 154, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(52, 197, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 197, 154, 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3vh 0 3vh;
}

h1 {
  margin: 0;
  max-width: 9.5ch;
  font-size: clamp(52px, 8.2vw, 122px);
  line-height: 0.94;
  font-weight: 620;
  letter-spacing: -0.055em;
}

.lede {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
}

/* ---------- The drop of mercury ---------- */

.drop {
  position: absolute;
  z-index: -1;
  right: -2vw;
  top: 50%;
  width: min(54vw, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.drop .halo,
.drop .body {
  position: absolute;
  inset: 8%;
  border-radius: 43% 57% 60% 40% / 46% 40% 60% 54%;
  background:
    radial-gradient(60% 55% at 28% 30%, #ffd9ea 0%, rgba(255, 217, 234, 0) 70%),
    radial-gradient(50% 50% at 72% 26%, var(--mint) 0%, rgba(164, 233, 211, 0) 72%),
    radial-gradient(55% 55% at 78% 72%, var(--indigo) 0%, rgba(111, 125, 219, 0) 75%),
    radial-gradient(60% 60% at 26% 76%, var(--peri) 0%, rgba(142, 160, 255, 0) 75%),
    radial-gradient(40% 40% at 50% 50%, #ffe7cf 0%, rgba(255, 231, 207, 0) 80%),
    #c3cbff;
  animation: morph 22s ease-in-out infinite alternate;
}

.drop .halo {
  inset: 0;
  filter: blur(60px);
  opacity: 0.55;
}

.drop .body {
  box-shadow:
    inset -36px -48px 90px rgba(28, 30, 70, 0.32),
    inset 28px 30px 70px rgba(255, 255, 255, 0.75),
    0 40px 90px -30px rgba(66, 72, 160, 0.45);
}

/* Specular highlight, like light on liquid metal. */
.drop .body::before {
  content: "";
  position: absolute;
  left: 17%;
  top: 13%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  transform: rotate(-24deg);
}

.drop .body::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 16%;
  width: 16%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  transform: rotate(-30deg);
}

@keyframes morph {
  0% { border-radius: 43% 57% 60% 40% / 46% 40% 60% 54%; transform: rotate(0deg) scale(1); }
  35% { border-radius: 58% 42% 45% 55% / 52% 60% 40% 48%; transform: rotate(9deg) scale(1.03); }
  70% { border-radius: 39% 61% 52% 48% / 61% 44% 56% 39%; transform: rotate(-6deg) scale(0.98); }
  100% { border-radius: 52% 48% 38% 62% / 42% 55% 45% 58%; transform: rotate(14deg) scale(1.02); }
}

/* ---------- Products ---------- */

.now {
  margin-top: 5vh;
  max-width: 760px;
}

.now h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.now ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.now li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.now b {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.now p { margin: 0; color: var(--ink-soft); }

.now a {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.now a:hover { background: #2a2c55; transform: translateY(-1px); }

.now a svg { width: 11px; height: 11px; }

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--ink-soft);
}

.foot nav { display: flex; gap: 20px; }

.foot a { text-decoration: none; }

.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Text pages (legal notice, privacy, 404) ---------- */

.doc {
  max-width: 680px;
  padding: 7vh 0 8vh;
}

.doc h1 {
  max-width: none;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
}

.doc .updated { margin: 14px 0 36px; color: var(--ink-soft); font-size: 14px; }

.doc h2 {
  margin: 34px 0 8px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.doc p, .doc li { color: #2b2d4a; }

.doc ul { padding-left: 20px; }

.doc a { text-underline-offset: 3px; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  :root { --frame: 8px; }
  body { font-size: 16px; }
  .page { padding: calc(var(--frame) + 16px) calc(var(--frame) + 18px); }
  .hero { padding-top: 34vw; }
  .drop { width: 92vw; right: -30vw; top: 4vw; transform: none; }
  .now li { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .now li p { grid-column: 1 / -1; grid-row: 2; }
  .now a { grid-row: 1; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .drop .halo, .drop .body, .status i { animation: none; }
  .now a { transition: none; }
}
