/* Vitra site — liquid glass, matching the app. */
:root {
  color-scheme: dark;
  --bg: #07060c;
  --text: #f5f2fa;
  --muted: rgb(232 224 245 / 0.7);
  --faint: rgb(232 224 245 / 0.48);
  --line: rgb(255 255 255 / 0.08);
  --pink: #ff7eb6;
  --pink-rgb: 255 126 182;
  --violet: #a98bff;
  --blue: #7c9cff;
  --green: #5ee59a;
  --glass: rgb(22 18 34 / 0.5);
  --r: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgb(var(--pink-rgb) / 0.35); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 10px; }

/* ------------------------------------------------------------ backdrop
   Large blurred color fields, like the app's liquid background. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 32s ease-in-out infinite alternate;
}
.backdrop span:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: #c2408a; }
.backdrop span:nth-child(2) { width: 52vw; height: 52vw; right: -16vw; top: 6vh; background: #6b3fd6; animation-duration: 38s; animation-delay: -8s; }
.backdrop span:nth-child(3) { width: 46vw; height: 46vw; left: 22vw; top: 70vh; background: #3a4fd1; opacity: 0.35; animation-duration: 44s; animation-delay: -16s; }
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgb(7 6 12 / 0.75)),
    linear-gradient(180deg, rgb(7 6 12 / 0.15), rgb(7 6 12 / 0.85) 70%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  to { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

/* ------------------------------------------------------------ glass */
.glass {
  position: relative;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02) 38%, rgb(255 255 255 / 0) 62%),
    var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 30px 60px -30px rgb(0 0 0 / 0.7);
}
/* Light-catching rim. */
.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.08) 28%, rgb(255 255 255 / 0.04) 60%, rgb(255 255 255 / 0.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ------------------------------------------------------------ layout */
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: 120px 0 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 720; letter-spacing: -0.025em; line-height: 1.2; }
.lead { margin: 20px 0 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.gradient-text {
  background: linear-gradient(100deg, #fff 10%, #ffc2de 45%, #c9b5ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1160px, 100% - 24px);
  margin: 14px auto 0;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.08); }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 680;
  font-size: 15.5px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.35) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  transition: background-position 0s linear 0.3s;
}
.btn:hover::before { background-position: -30% 0; transition: background-position 0.9s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #2a0d1c;
  background: radial-gradient(120% 120% at 50% -30%, rgb(255 255 255 / 0.5), transparent 60%), var(--pink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 14px 34px -12px rgb(var(--pink-rgb) / 0.9);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 18px 44px -12px rgb(var(--pink-rgb) / 1); }
.btn-ghost {
  color: var(--text);
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* ------------------------------------------------------------ hero */
.hero { padding: 92px 0 0; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.pill b {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(var(--pink-rgb) / 0.18);
  color: var(--pink);
  font-weight: 700;
  font-size: 12px;
}
.hero h1 {
  margin: 28px auto 0;
  max-width: 900px;
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero .lead { margin: 26px auto 0; text-align: center; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-shot {
  position: relative;
  margin: 72px auto 0;
  max-width: 1160px;
  perspective: 1800px;
}
.hero-shot .frame {
  padding: 10px;
  border-radius: 30px;
  transform: rotateX(var(--tilt-x, 8deg)) rotateY(var(--tilt-y, 0deg));
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease);
}
.hero-shot img { border-radius: 21px; width: 100%; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 12% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--pink-rgb) / 0.55), rgb(169 139 255 / 0.25) 55%, transparent);
  filter: blur(50px);
}

.loaders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 56px;
  color: var(--faint);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.loaders span { display: inline-flex; align-items: center; gap: 8px; }
.loaders span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); opacity: 0.8; }

/* ------------------------------------------------------------ stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  padding: 8px;
}
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.card { padding: 30px; overflow: hidden; transition: transform 0.6s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }
.card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  color: var(--pink);
}
.card .icon svg { width: 22px; height: 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

/* ------------------------------------------------------------ spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 56px;
  align-items: center;
}
.spotlight.flip { grid-template-columns: 1.5fr 0.9fr; }
.spotlight.flip .spot-text { order: 2; }
.spot-text h2 { font-size: clamp(34px, 4.2vw, 50px); }
.spot-text ul { margin: 26px 0 0; padding: 0; list-style: none; }
.spot-text li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.spot-text li:last-child { border-bottom: 1px solid var(--line); }
.spot-text li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 55%);
  box-shadow: 0 0 12px rgb(var(--pink-rgb) / 0.8);
}
.spot-text li b { color: var(--text); font-weight: 650; }
.shot { padding: 8px; border-radius: 26px; }
.shot img { border-radius: 19px; width: 100%; }

/* ------------------------------------------------------------ tour */
.tour-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: 40px;
  padding: 5px;
  border-radius: 999px;
}
.tour-tabs button {
  position: relative;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 640 14.5px var(--font);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}
.tour-tabs button:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.tour-tabs button[aria-selected="true"] {
  color: var(--text);
  background:
    radial-gradient(120% 140% at 50% -20%, rgb(255 255 255 / 0.26), rgb(255 255 255 / 0.05) 62%),
    rgb(var(--pink-rgb) / 0.2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 24px -8px rgb(var(--pink-rgb) / 0.95);
}
.tour-stage { position: relative; margin-top: 28px; padding: 10px; border-radius: 30px; }
.tour-stage .slides { position: relative; aspect-ratio: 1320 / 820; }
.tour-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.tour-stage img.on { opacity: 1; transform: none; }
.tour-caption { min-height: 56px; margin: 22px auto 0; max-width: 680px; color: var(--muted); text-align: center; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ------------------------------------------------------------ sign-in */
.signin-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.steps { margin: 0; padding: 30px; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 52px; counter-increment: s; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 750;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(145deg, rgb(var(--pink-rgb) / 0.35), rgb(169 139 255 / 0.2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.steps b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.07);
  color: #ffd0e5;
  overflow-wrap: anywhere;
}
.never { padding: 30px; }
.never ul { margin: 18px 0 0; padding: 0; list-style: none; }
.never li { display: flex; gap: 12px; padding: 12px 0; color: var(--muted); border-top: 1px solid var(--line); }
.never li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
.never .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.never .links a { font-weight: 650; font-size: 14.5px; color: var(--pink); text-decoration: none; }
.never .links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ download */
.cta-meta { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; font-weight: 550; }
.download {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 48px;
  overflow: hidden;
  isolation: isolate;
}
.download::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 160%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--pink-rgb) / 0.28), transparent);
  filter: blur(30px);
}
.download-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.12);
}
.download-text { min-width: 0; }
.download .lead { margin-top: 14px; }
.download .cta { margin-top: 26px; }
.download-facts { margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.download-facts li { padding: 8px 0; border-top: 1px solid var(--line); }
.download-facts b { color: var(--text); font-weight: 650; }
.download-facts code { font-size: 12px; }
.download-note { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }
.download-note b { color: var(--muted); font-weight: 650; }

/* ------------------------------------------------------------ footer */
footer { margin-top: 140px; padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.disclaimer { flex-basis: 100%; font-size: 12.5px; letter-spacing: 0.02em; }

/* ------------------------------------------------------------ legal pages */
.legal { width: min(760px, 100% - 32px); margin: 70px auto 0; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 820; letter-spacing: -0.05em; }
.legal .updated { margin: 14px 0 0; color: var(--faint); font-size: 14px; }
.legal .glass { margin-top: 36px; padding: 34px; }
.legal h2 { margin: 34px 0 10px; font-size: 22px; font-weight: 740; letter-spacing: -0.025em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--pink); }

/* ------------------------------------------------------------ reveal */
/* Only hidden when the script runs (it adds .js), so the page never ends
   up blank without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .spotlight, .spotlight.flip { grid-template-columns: 1fr; gap: 32px; }
  .spotlight.flip .spot-text { order: 0; }
  .signin-grid { grid-template-columns: 1fr; }
  .download { flex-direction: column; gap: 24px; padding: 32px; }
  section { padding-top: 96px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .pill { white-space: nowrap; font-size: 13px; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 48px; }
  .hero-shot .frame { padding: 6px; border-radius: 20px; }
  .hero-shot img { border-radius: 15px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .card { padding: 24px; }
  .tour-tabs button { padding: 0 13px; font-size: 13.5px; height: 38px; }
  .steps, .never { padding: 24px; }
  .download { padding: 24px; }
  .download-icon { width: 72px; height: 72px; border-radius: 18px; }
  footer nav { margin-left: 0; }
  .legal .glass { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
