/* =========================================================
   VICEFEED — design system
   Glossy candy 3D, sunset Leonida palette, quiet premium UI.
   ========================================================= */
:root {
  /* brand */
  --cream: #fbecd4;
  --cream-hi: #fff8ec;
  --cyan: #14ecd9;
  --cyan-hi: #7ff9ee;
  --cyan-lo: #08c4b4;
  --pink: #ff1589;
  --pink-lo: #c8006a;
  --sun: #ff8a3d;
  --gold: #ffc65e;
  --violet: #6d2bff;

  /* surfaces */
  --bg: #08050d;
  --bg-1: #0e0916;
  --bg-2: #140d1f;
  --bg-3: #1b1229;
  --glass: rgba(255, 244, 230, 0.045);
  --glass-2: rgba(255, 244, 230, 0.08);
  --line: rgba(255, 236, 214, 0.08);
  --line-2: rgba(255, 236, 214, 0.14);
  --text: #f6eee4;
  --text-2: #b9aec4;
  --text-3: #7f7590;

  --sunset: linear-gradient(
    120deg,
    #ff1589 0%,
    #ff5a5f 45%,
    #ff8a3d 75%,
    #ffc65e 100%
  );
  --sunset-v: linear-gradient(
    180deg,
    #1c0a35 0%,
    #5a1a6b 34%,
    #c62a74 58%,
    #ff6a4a 78%,
    #ffb35c 100%
  );

  --display: "Archivo", "Geist", system-ui, sans-serif;
  --ui: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.announcement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.8rem;
  padding: env(safe-area-inset-top, 0px)
    max(0.65rem, env(safe-area-inset-right, 0px)) 0
    max(0.65rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--cream);
  font: 600 0.75rem/1.3 var(--mono);
}
.announcement p {
  margin: 0;
  padding-block: 0.45rem;
}
.announcement__socials {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--line-2);
  font-family: var(--ui);
}
.announcement__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.35rem;
  border-radius: 4px;
  color: var(--text-2);
}
.announcement__socials a:hover,
.announcement__socials a:focus-visible {
  color: var(--cyan);
}
.announcement__socials .i {
  width: 0.75rem;
  height: 0.75rem;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--pink);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
}
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sunset-text {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- candy buttons (cyan with pink extrusion, like the mark) ---------- */
.btn {
  --face: linear-gradient(
    180deg,
    var(--cyan-hi) 0%,
    var(--cyan) 42%,
    var(--cyan-lo) 100%
  );
  --ext: var(--pink-lo);
  --glow: rgba(255, 21, 137, 0.45);
  --fg: #07030c;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--face);
  color: var(--fg);
  font: 700 15px/1 var(--ui);
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 5px 0 var(--ext),
    0 16px 30px -10px var(--glow);
  transform: translateY(0);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    filter 0.2s;
  isolation: isolate;
  overflow: hidden;
}
.btn::before {
  /* gloss */
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  top: 3px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 7px 0 var(--ext),
    0 22px 36px -10px var(--glow);
}
.btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 var(--ext),
    0 6px 14px -6px var(--glow);
}
.btn .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.btn--cream {
  --face: linear-gradient(180deg, #fffaf1 0%, var(--cream) 50%, #f0d9b8 100%);
}
.btn--pink {
  --face: linear-gradient(180deg, #ff6fb7 0%, var(--pink) 50%, #e0007a 100%);
  --ext: #8a0044;
  --fg: #fff;
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    0 4px 0 var(--ext),
    0 12px 22px -10px var(--glow);
}
.btn--sm:hover {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    0 5px 0 var(--ext),
    0 14px 26px -10px var(--glow);
}
.btn--lg {
  height: 60px;
  padding: 0 32px;
  font-size: 17px;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  filter: grayscale(0.8) brightness(0.7);
  pointer-events: none;
}

/* quiet glass button */
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: 600 15px/1 var(--ui);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
  white-space: nowrap;
}
.ghost:hover {
  background: var(--glass-2);
  border-color: rgba(255, 236, 214, 0.24);
}
.ghost .i {
  width: 18px;
  height: 18px;
}
.ghost--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* square icon button */
.ib {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-2);
  transition:
    background 0.15s,
    color 0.15s;
}
.ib:hover {
  background: var(--glass-2);
  color: var(--text);
}
.ib[aria-pressed="true"],
.ib.is-on {
  background: rgba(20, 236, 217, 0.12);
  color: var(--cyan);
}
.ib .i {
  width: 18px;
  height: 18px;
}

/* ---------- surfaces ---------- */
.glass {
  background: linear-gradient(
    180deg,
    rgba(255, 244, 230, 0.06),
    rgba(255, 244, 230, 0.025)
  );
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font: 500 13px/1 var(--ui);
  color: var(--text-2);
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: none;
}
.dot--pink {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}
.dot--gold {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- form ---------- */
.input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  background: rgba(255, 244, 230, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--text);
  font: 500 16px/1 var(--ui);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.input::placeholder {
  color: var(--text-3);
}
.input:focus {
  outline: none;
  border-color: rgba(20, 236, 217, 0.6);
  background: rgba(20, 236, 217, 0.04);
  box-shadow: 0 0 0 4px rgba(20, 236, 217, 0.1);
}

/* ---------- brand watermark (shared by phones, editor, previews) ---------- */
.wm {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.8em 0.42em 0.45em;
  border-radius: 999px;
  background: rgba(8, 4, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.wm img {
  height: 1.9em;
  width: auto;
}
.wm__icon {
  height: 2.1em !important;
  filter: drop-shadow(0 0.1em 0.2em rgba(0, 0, 0, 0.35));
}
.wm__txt {
  display: grid;
  gap: 0.15em;
  line-height: 1;
}
.wm__txt img {
  height: 1.25em;
}
.wm__txt span {
  font: 600 0.9em/1 var(--ui);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

/* platform glyph tiles */
.pf {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  color: #fff;
}
.pf .i {
  width: 15px;
  height: 15px;
}
.pf--tiktok {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pf--youtube {
  background: #ff0033;
}
.pf--instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #ffd776 0%,
    #f7546a 40%,
    #c536a4 70%,
    #6a3cf0 100%
  );
}
.pf--x {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: rgba(20, 13, 31, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 500 14px/1.2 var(--ui);
  transform: translate(-50%, 30px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.35s var(--spring),
    opacity 0.25s,
    visibility 0.25s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* grain */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- light sweep across candy buttons ---------- */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn:hover::after {
  left: 130%;
}

/* ---------- glossy display type: cream with the wordmark's pink extrusion ---------- */
.glossy {
  color: var(--cream);
  text-shadow:
    0 0.022em 0 #ff3d9d,
    0 0.044em 0 #f0007f,
    0 0.066em 0 #c8006a,
    0 0.14em 0.22em rgba(30, 0, 30, 0.55);
}
.sunset-text {
  text-shadow: none;
}

/* ---------- tinted scrollbars ---------- */
html {
  scrollbar-color: #2e2340 transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #2e2340;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #463359;
}
::-webkit-scrollbar-track {
  background: transparent;
}
