/* ============================================================
   DressUp — Ocean Hero
   Palette tokens: retone the whole page from here.
   ============================================================ */
:root {
  --abyss: #01121f;
  --deep: #04263f;
  --ocean: #0a4d76;
  --tide: #1b8bb0;
  --aqua: #4fd3d6;
  --foam: #d9fbff;
  --sun: #eafcff;

  --ink: #eaf6ff; /* primary text on dark */
  --ink-dim: #9ec6dc; /* muted text */
  --glass: rgba(9, 40, 62, 0.35);
  --glass-line: rgba(159, 226, 255, 0.22);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --edge: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -10%, #063b5e 0%, var(--deep) 42%, var(--abyss) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- 3D scene canvas ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Cinematic vignette + top light bloom over the scene */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(120, 240, 255, 0.16), transparent 60%),
    radial-gradient(120% 120% at 50% 100%, rgba(1, 10, 20, 0.72), transparent 55%),
    linear-gradient(180deg, rgba(1, 18, 31, 0.28), transparent 22%, transparent 70%, rgba(1, 18, 31, 0.55));
}

/* ---- Floating product cutouts ---- */
.floaters {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Outer element: position + JS pointer-parallax translate only. */
.floater {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(96px, 12vw, 188px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Inner image: rotation, scale and the autonomous bob live here so they
   don't fight the parallax transform on the parent. */
.floater img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(var(--r)) scale(var(--s));
  animation: bob calc(6s + var(--s) * 1.4s) ease-in-out infinite alternate;
  filter:
    drop-shadow(0 24px 30px rgba(0, 20, 34, 0.55))
    drop-shadow(0 0 18px rgba(79, 211, 214, 0.12));
}

/* deeper cards sink into the blue a touch, for atmosphere */
.floater[data-depth="1.3"] img,
.floater[data-depth="1.1"] img {
  filter: drop-shadow(0 22px 26px rgba(0, 18, 30, 0.5)) saturate(0.85) brightness(0.92);
}

@keyframes bob {
  from {
    transform: translateY(-10px) rotate(var(--r)) scale(var(--s));
  }
  to {
    transform: translateY(10px) rotate(calc(var(--r) * -0.6)) scale(var(--s));
  }
}

/* ---- Page chrome ---- */
.page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: clamp(20px, 3vw, 34px) var(--edge) var(--edge);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--foam), var(--aqua) 45%, var(--tide) 75%, var(--ocean));
  box-shadow: 0 0 18px rgba(79, 211, 214, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-enter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink) !important;
}

.nav-enter:hover {
  border-color: rgba(159, 226, 255, 0.5);
}

/* Hero */
.hero {
  align-self: center;
  max-width: 760px;
  padding: 4vh 0;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 22px;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 18px 60px rgba(0, 20, 36, 0.45);
}

.headline .ital {
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--foam), var(--aqua) 60%, var(--tide));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-dim);
}

/* CTAs */
.cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  position: relative;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  color: var(--abyss);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Liquid-metal primary: animated chrome/aqua sheen */
.btn-liquid {
  color: #012132;
  background:
    linear-gradient(115deg, #eafeff 0%, #a9f0ef 18%, #4fd3d6 38%, #1b8bb0 55%, #bff3f2 72%, #ffffff 88%, #6fdad9 100%);
  background-size: 280% 280%;
  animation: liquidShift 7s ease-in-out infinite;
  box-shadow:
    0 12px 34px rgba(31, 160, 180, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -8px 18px rgba(4, 60, 90, 0.35);
}

.btn-liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 48%, transparent 60%);
  background-size: 220% 100%;
  mix-blend-mode: screen;
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes liquidShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sheen {
  0% { background-position: 140% 0; }
  55%, 100% { background-position: -60% 0; }
}

/* Ghost secondary */
.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(159, 226, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 30, 50, 0.4);
}

.play {
  width: 0;
  height: 0;
  border-left: 9px solid var(--aqua);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

/* Stats */
.stats {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.stats dt {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
}

.stats dd {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-top: 6px;
}

.stats .divider {
  width: 1px;
  height: 42px;
  background: var(--glass-line);
}

/* Footnote / scroll cue */
.footnote {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.foot-link {
  margin-left: auto;
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.14em;
}

.foot-link:hover {
  color: var(--ink);
}

.scroll-cue {
  width: 26px;
  height: 42px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  position: relative;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--aqua);
  transform: translateX(-50%);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ============================================================
   Document pages (privacy, terms) — same ocean palette
   ============================================================ */
.doc {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--edge) 96px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.doc-back:hover {
  color: var(--ink);
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.doc .updated {
  color: var(--aqua);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 14px;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  margin: 46px 0 12px;
  color: var(--ink);
}

.doc h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 24px 0 6px;
  color: var(--foam);
}

.doc p,
.doc li {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-dim);
}

.doc p {
  margin-top: 12px;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc li {
  margin-top: 8px;
}

.doc strong {
  color: var(--ink);
  font-weight: 500;
}

.doc a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Callout box for the face-data commitment */
.doc .callout {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.doc .callout h3 {
  margin-top: 0;
}

/* Subprocessor table */
.doc .table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
}

.doc .table th,
.doc .table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(159, 226, 255, 0.12);
  color: var(--ink-dim);
  vertical-align: top;
}

.doc .table th {
  color: var(--foam);
  font-weight: 600;
  background: rgba(9, 40, 62, 0.5);
}

.doc .table tr:last-child td {
  border-bottom: 0;
}

.doc-wrap {
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -10%, #063b5e 0%, var(--deep) 42%, var(--abyss) 100%);
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .nav-links a:not(.nav-enter) {
    display: none;
  }
  .floater {
    width: clamp(78px, 22vw, 120px);
  }
  .floater[data-depth="0.5"],
  .floater[data-depth="0.6"] {
    display: none; /* thin the ring on small screens */
  }
  .stats {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floater,
  .btn-liquid,
  .btn-liquid::after,
  .scroll-cue::after {
    animation: none !important;
  }
}
