/* Stash website — coming soon page.
   Colours are taken from the logo's gradient. */

:root {
  --bg: #07070b;
  --ink: #f5f4fa;
  --ink-soft: rgba(245, 244, 250, 0.72);
  --ink-faint: rgba(245, 244, 250, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.05);

  --pink: #ff3d8b;
  --orange: #ff8a3d;
  --yellow: #ffcf4a;
  --sky: #5ec8ff;
  --violet: #9b5cf6;
  --brand-grad: linear-gradient(100deg, var(--pink) 0%, var(--orange) 38%, var(--yellow) 62%, var(--sky) 100%);

  --radius: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Background glow ───────────────────────────────────────────── */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow::after { /* soft vignette so the edges settle into black */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(7, 7, 11, 0.55) 60%, var(--bg) 100%);
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  will-change: transform;
}
.b1 { background: var(--pink);   top: -14vmax; left: -10vmax; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: var(--orange); top: -18vmax; right: -14vmax; opacity: 0.3; animation: drift2 30s ease-in-out infinite alternate; }
.b3 { background: var(--sky);    bottom: -22vmax; right: -6vmax; opacity: 0.28; animation: drift3 34s ease-in-out infinite alternate; }
.b4 { background: var(--violet); bottom: -20vmax; left: -12vmax; opacity: 0.32; animation: drift1 38s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-7vmax, 8vmax) scale(0.94); } }
@keyframes drift3 { to { transform: translate(-9vmax, -5vmax) scale(1.06); } }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; min-width: 150px; }

.btn-primary {
  color: #120a12;
  background: var(--brand-grad);
  box-shadow: 0 8px 28px -10px rgba(255, 61, 139, 0.75);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(255, 138, 61, 0.85); }

.btn-ghost {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }

/* ── Top bar ───────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 24px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img { mix-blend-mode: screen; } /* the logo file has a black square behind it */
.topnav { display: flex; gap: 10px; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: 4vh 24px 40px;
}

.logo-wrap { position: relative; margin-bottom: 18px; }
.logo-wrap::before { /* halo behind the mark */
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--pink), var(--orange), var(--yellow), var(--sky), var(--violet), var(--pink));
  filter: blur(46px);
  opacity: 0.45;
  animation: pulse 6s ease-in-out infinite;
}
.logo {
  position: relative;
  width: clamp(150px, 22vw, 240px);
  height: auto;
  mix-blend-mode: screen;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: 0.62; transform: scale(1.06); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 207, 74, 0.7);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 207, 74, 0); } }

h1 {
  margin: 0;
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.fineprint {
  max-width: 420px;
  margin: 22px auto 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.scroll-hint {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-faint);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--ink); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ── Test gallery (TEST ONLY — remove before launch) ───────────── */
.gallery {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.gallery-head { max-width: 640px; margin-bottom: 24px; }
.gallery h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.gallery p { margin: 0; color: var(--ink-faint); font-size: 14px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ── Opened as a home-screen app (site.js adds .is-standalone) ── */
.standalone-note { display: none; }
.is-standalone .standalone-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}
.standalone-note p { margin: 0; }

/* ── Simple page (404) ─────────────────────────────────────────── */
.simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 70vh;
  padding: 40px 24px;
  text-align: center;
}
.simple h1 { font-size: clamp(36px, 6vw, 56px); }
.simple p { margin: 0; color: var(--ink-soft); }

/* ── Phones ────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand span { display: none; }
  .btn-sm { padding: 8px 14px; }
  .hero { padding: 2vh 16px 32px; }
  .cta { flex-direction: column; width: 100%; max-width: 320px; }
  .btn-lg { width: 100%; }
  .gallery { padding: 56px 16px 32px; }
  .footer { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
