/* Puzzle Photo — spatial glass design system */

:root {
  --void: #0b0a14;
  --void-2: #12101f;
  --indigo: #6e7bff;
  --orchid: #c77dff;
  --rose: #ff8fc7;
  --peach: #ffb98a;
  --ink: rgba(238, 238, 255, 0.94);
  --ink-2: rgba(205, 205, 235, 0.62);
  --ink-3: rgba(180, 180, 215, 0.4);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-top: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Sora", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Nebula backdrop */
.nebula {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 18% 8%, rgba(110, 123, 255, 0.16), transparent 70%),
    radial-gradient(46% 40% at 85% 22%, rgba(199, 125, 255, 0.10), transparent 70%),
    radial-gradient(56% 48% at 78% 92%, rgba(255, 143, 199, 0.10), transparent 70%),
    radial-gradient(30% 26% at 8% 80%, rgba(255, 185, 138, 0.06), transparent 70%),
    var(--void);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 18px rgba(140, 120, 255, 0.45)); }

.brand span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  color: #14121f;
  background: linear-gradient(120deg, #dfe3ff, #ffffff 45%, #ffe9f4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 10px 34px rgba(140, 120, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 44px rgba(160, 130, 255, 0.5);
}

.btn.small { padding: 10px 20px; font-size: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 3px;
}

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

.hero {
  text-align: center;
  padding: 96px 0 60px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-3));
}

.eyebrow::after { transform: scaleX(-1); }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 26px auto 22px;
  max-width: 18ch;
}

.grad {
  background: linear-gradient(115deg, var(--indigo), var(--orchid) 40%, var(--rose) 72%, var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 56ch;
  margin: 0 auto 36px;
  color: var(--ink-2);
  font-size: 18.5px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- Assembling photo (signature) ---------- */

.assembly {
  position: relative;
  width: min(560px, 88vw);
  margin: 84px auto 0;
  perspective: 1200px;
}

.photo-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  aspect-ratio: 16 / 11;
  padding: 14px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-top),
    0 30px 90px rgba(60, 40, 140, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: bob 9s ease-in-out infinite;
}

.tile {
  border-radius: 10px;
  background-image:
    radial-gradient(120% 150% at 22% 18%, rgba(110, 123, 255, 0.95), transparent 55%),
    radial-gradient(130% 140% at 82% 30%, rgba(255, 185, 138, 0.85), transparent 58%),
    radial-gradient(150% 160% at 68% 95%, rgba(255, 143, 199, 0.9), transparent 60%),
    linear-gradient(150deg, #4b50c8, #8f5fe0 45%, #d977b4);
  background-size: 316% 320%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translate3d(var(--sx), var(--sy), 90px) rotate(var(--sr));
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease;
  transition-delay: var(--d);
}

.assembly.done .tile {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

/* Background positions map each tile to its slice of the shared gradient */
.tile:nth-child(1) { background-position: 0% 0%; }
.tile:nth-child(2) { background-position: 50% 0%; }
.tile:nth-child(3) { background-position: 100% 0%; }
.tile:nth-child(4) { background-position: 0% 50%; }
.tile:nth-child(5) { background-position: 50% 50%; }
.tile:nth-child(6) { background-position: 100% 50%; }
.tile:nth-child(7) { background-position: 0% 100%; }
.tile:nth-child(8) { background-position: 50% 100%; }
.tile:nth-child(9) { background-position: 100% 100%; }

.stray-piece {
  position: absolute;
  width: 116px;
  top: -52px;
  right: -64px;
  filter: drop-shadow(0 14px 34px rgba(199, 125, 255, 0.5));
  animation: drift 7s ease-in-out infinite;
}

.stray-piece.two {
  width: 88px;
  top: auto;
  right: auto;
  bottom: -40px;
  left: -58px;
  animation-duration: 8.5s;
  animation-delay: 1.2s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotateX(0.6deg); }
  50% { transform: translateY(-12px) rotateX(-0.6deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50% { transform: translate(-8px, -16px) rotate(4deg); }
}

/* ---------- Price strip ---------- */

.strip {
  margin: 90px auto 0;
  text-align: center;
  font-size: 15.5px;
  color: var(--ink-2);
}

.strip strong {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
}

.strip .dot { margin: 0 14px; color: var(--ink-3); }

/* ---------- Sections ---------- */

section { padding: 110px 0 0; }

.section-head { text-align: center; margin-bottom: 54px; }

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  margin-top: 18px;
}

.section-head p {
  color: var(--ink-2);
  max-width: 52ch;
  margin: 14px auto 0;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-top);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  background: linear-gradient(115deg, var(--indigo), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { font-size: 19px; font-weight: 600; margin: 12px 0 8px; }

.step p { color: var(--ink-2); font-size: 15.5px; }

/* Feature bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-top);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }

.card.span3 { grid-column: span 3; }
.card.span2 { grid-column: span 2; }

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(110, 123, 255, 0.3), rgba(255, 143, 199, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 20px;
}

.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }

.card p { color: var(--ink-2); font-size: 15.5px; }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Final CTA ---------- */

.finale {
  text-align: center;
  padding: 130px 0 40px;
}

.finale img {
  width: 120px;
  filter: drop-shadow(0 18px 50px rgba(150, 120, 255, 0.55));
  animation: drift 8s ease-in-out infinite;
}

.finale h2 { margin: 26px auto 14px; max-width: 20ch; }

.finale p { color: var(--ink-2); margin-bottom: 32px; }

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

footer {
  margin-top: 90px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}

footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Privacy page ---------- */

.doc {
  max-width: 760px;
  margin: 70px auto 0;
  padding: 48px clamp(24px, 5vw, 56px) 56px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-top);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.doc h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  text-align: left;
  margin: 10px 0 6px;
  max-width: none;
}

.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 34px; }

.doc h2 {
  font-size: 20px;
  font-family: var(--body);
  font-weight: 700;
  margin: 34px 0 10px;
}

.doc p, .doc li { color: var(--ink-2); font-size: 16px; }

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

.doc .highlight {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(199, 125, 255, 0.35);
  background: linear-gradient(120deg, rgba(110, 123, 255, 0.12), rgba(255, 143, 199, 0.1));
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span3, .card.span2 { grid-column: span 2; }
  .hero { padding-top: 72px; }
  .stray-piece { width: 84px; top: -38px; right: -20px; }
  .stray-piece.two { width: 64px; left: -20px; }
}

@media (max-width: 540px) {
  .nav-links a.link-quiet { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card.span3, .card.span2 { grid-column: span 1; }
  footer { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-card, .stray-piece, .finale img { animation: none; }
  .tile { transition: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
