@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800;900&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --sky-top: #4f9ff0;
  --sky-mid: #8cc6fb;
  --sky-low: #d8ecff;
  --ink: #2a3a7a;
  --ink-soft: #5a6aa8;
  --white-glass: rgba(255, 255, 255, 0.42);
  --white-edge: rgba(255, 255, 255, 0.85);

  --pink: #ff5fa8;
  --pink-deep: #e2338a;
  --pink-soft: #ffd3ea;
  --lilac: #a985ff;
  --lilac-deep: #7a52f0;
  --lilac-soft: #e8dcff;
  --mint: #2fcfb3;
  --mint-deep: #0f9f88;
  --mint-soft: #ccf7ee;
  --lemon: #ffd84d;
  --orange: #ff9a2e;

  --tag-drop: var(--pink);
  --tag-branding: var(--lilac);
  --tag-social: var(--mint);

  --f-display: 'Unbounded', ui-rounded, system-ui, sans-serif;
  --f-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --pearl: #f5f7ff;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-jelly: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 8% -8%, rgba(255, 246, 214, 0.95), rgba(255, 246, 214, 0) 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 100%);
  background-attachment: fixed;
}

::selection { background: var(--pink-soft); color: var(--pink-deep); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 12px; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sun {
  position: absolute; left: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, #fffef4 0%, rgba(255, 244, 200, 0.85) 25%, rgba(255, 233, 170, 0) 70%);
}
.cloud {
  position: absolute;
  width: var(--w, 260px);
  height: calc(var(--w, 260px) * 0.32);
  border-radius: 999px;
  background: #fff;
  filter: blur(1px) drop-shadow(0 10px 18px rgba(80, 140, 220, 0.25));
  opacity: var(--o, 0.95);
  animation: drift var(--d, 120s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: #fff; border-radius: 50%;
}
.cloud::before { width: 45%; height: 140%; left: 14%; bottom: 30%; }
.cloud::after { width: 34%; height: 110%; left: 48%; bottom: 40%; }
@keyframes drift {
  from { transform: translateX(-30vw); }
  to { transform: translateX(130vw); }
}

/* ---------- jelly type ---------- */
.jelly {
  --c1: #ffe1f0; --c2: #ff86c2; --c3: #ff4fa3; --glow: rgba(255, 79, 163, 0.45);
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 38%, var(--c3) 78%, var(--c2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 14px 22px var(--glow));
}
.jelly::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 22%, rgba(255, 255, 255, 0) 42%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
}
.jelly.lilac { --c1: #f3ebff; --c2: #c2a6ff; --c3: #8a5cf6; --glow: rgba(138, 92, 246, 0.45); }
.jelly.mint { --c1: #e6fff9; --c2: #7ce8d4; --c3: #18b89c; --glow: rgba(24, 184, 156, 0.4); }
.jelly.orange { --c1: #fff0d6; --c2: #ffb35c; --c3: #ff7a1a; --glow: rgba(255, 122, 26, 0.45); }
.jelly.gold { --c1: #fffbe0; --c2: #ffd84d; --c3: #f2a900; --glow: rgba(242, 169, 0, 0.45); }
.jelly.ice { --c1: #f2fbff; --c2: #a8dcff; --c3: #5cb6f2; --glow: rgba(92, 182, 242, 0.45); }

/* brand wordmark: pink G, orange E, lemon L, icy I */
.wordmark { display: inline-flex; gap: 0.02em; }
.wordmark .jelly { animation: bob 5s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.wordmark .jelly:nth-child(1) { --bd: 0s; }
.wordmark .jelly:nth-child(2) { --bd: -1.2s; }
.wordmark .jelly:nth-child(3) { --bd: -2.4s; }
.wordmark .jelly:nth-child(4) { --bd: -3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }

.label, .mono {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(40, 90, 180, 0.45), 0 1px 10px rgba(40, 90, 180, 0.45);
}
.sparkle::before { content: '✦'; margin-right: 0.6em; }

/* ---------- glass ---------- */
.glass {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--white-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 30px rgba(255, 255, 255, 0.12),
    0 20px 50px rgba(40, 90, 180, 0.18);
  border-radius: var(--r-lg);
}

/* ---------- pills / chips ---------- */
.pill {
  --pc: #fff; --pt: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45em;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  color: var(--pt);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(40, 90, 180, 0.14);
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms, color 160ms;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pill:active { transform: scale(0.96); }
@media (hover: hover) { .pill:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(40, 90, 180, 0.2); } }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dc, var(--pink)); box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.7); }
.pill[aria-pressed='true'], .pill.on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 50%),
    var(--pc-on, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -4px 10px rgba(0, 0, 0, 0.08), 0 8px 20px var(--pc-glow, rgba(42, 58, 122, 0.3));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.pill[aria-pressed='true'] .dot, .pill.on .dot { background: #fff; }
.pill.t-drop { --dc: var(--tag-drop); --pc-on: var(--pink); --pc-glow: rgba(255, 95, 168, 0.45); }
.pill.t-branding { --dc: var(--tag-branding); --pc-on: var(--lilac); --pc-glow: rgba(169, 133, 255, 0.45); }
.pill.t-social { --dc: var(--tag-social); --pc-on: var(--mint); --pc-glow: rgba(47, 207, 179, 0.45); }
.pill.t-all { --pc-on: linear-gradient(90deg, var(--pink), var(--lilac), var(--mint)); }
.pill .count { opacity: 0.6; font-weight: 500; font-variant-numeric: tabular-nums; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%), var(--tc, var(--pink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 0, 0, 0.12);
}
.tag.drop { --tc: var(--tag-drop); }
.tag.branding { --tc: var(--tag-branding); }
.tag.social { --tc: var(--tag-social); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%), var(--bc, var(--pink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -5px 12px rgba(0, 0, 0, 0.1), 0 10px 24px var(--bglow, rgba(255, 95, 168, 0.45));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 160ms var(--ease-out), filter 160ms;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; }
.btn.lilac { --bc: var(--lilac); --bglow: rgba(169, 133, 255, 0.45); }
.btn.ghost { --bc: rgba(255, 255, 255, 0.3); --bglow: rgba(40, 90, 180, 0.12); color: var(--ink); text-shadow: none; border: 1px solid #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cloud { animation: none; }
}
