/* ==========================================================================
   Theme: Y2K Pixel Pop, pastel chrome, pixel labels, glossy candy UI.
   Curated nostalgia: sparkles and loading bars, but never at the cost
   of readability.
   ========================================================================== */

[data-theme="y2k"] {
  --bg: #fdf0fa;
  --bg-soft: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.85);
  --ink: #33235a;
  --muted: #675687;
  --accent: #e62eae;
  --accent-ink: #ffffff;
  --accent-2: #1ba6c4;
  --line: #f0b9e3;
  --border-w: 1.5px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 6px 18px rgba(160, 80, 200, 0.16);
  --shadow-strong: 0 10px 32px rgba(160, 80, 200, 0.26);

  --font-display: "Space Grotesk", sans-serif;
  --h-weight: 700;
  --h-tracking: -0.015em;
  --h-transform: none;
  --kicker-font: "Silkscreen", monospace;
  --btn-radius: 99px;
}

[data-theme="y2k"] body {
  background-image: linear-gradient(160deg, #ffe1f5 0%, #f3e8ff 48%, #dbf4ff 100%);
  background-attachment: fixed;
}

[data-theme="y2k"] .kicker { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); }
[data-theme="y2k"] .kicker::after { content: " ☆"; color: var(--accent-2); }

/* Chrome-gradient headlines (em keeps a solid fill so it never vanishes) */
[data-theme="y2k"] .hero-title,
[data-theme="y2k"] .section-title {
  background-image: linear-gradient(95deg, #e62eae 5%, #7c4dff 50%, #1ba6c4 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="y2k"] .hero-title em,
[data-theme="y2k"] .section-title em {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

/* Glossy candy buttons */
[data-theme="y2k"] .btn {
  border: 2px solid #ffffff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(160, 80, 200, 0.3);
}
[data-theme="y2k"] .btn--primary {
  background: linear-gradient(180deg, #ffffff 0%, #ffd1ef 42%, #ff8fd9 52%, #ffc0ea 100%);
  color: #8a1361;
}
[data-theme="y2k"] .btn--primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d8f4ff 42%, #8edcf5 52%, #c9f0ff 100%);
  color: #0c5e72;
  transform: translateY(-2px);
}
[data-theme="y2k"] .btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}
[data-theme="y2k"] .btn--ghost:hover { background: #ffffff; color: var(--ink); transform: translateY(-2px); }

[data-theme="y2k"] .site-header { border-bottom: 1.5px solid rgba(255, 255, 255, 0.9); }
[data-theme="y2k"] .lang-btn { background: rgba(255,255,255,0.7); border: 1.5px solid #fff; box-shadow: var(--shadow); }
[data-theme="y2k"] .brand-name i { color: var(--accent); }
[data-theme="y2k"] .hp {
  font-family: "Silkscreen", monospace;
  font-size: 0.62rem;
  border: 1.5px solid #ffffff;
  background: linear-gradient(180deg, #ffffff, #fde9f8);
  box-shadow: 0 4px 10px rgba(160, 80, 200, 0.22);
  border-radius: 99px;
}

/* Hero: sparkles + glass browser + loading bar */
[data-theme="y2k"] .ha-1, [data-theme="y2k"] .ha-2,
[data-theme="y2k"] .ha-3, [data-theme="y2k"] .ha-4 { opacity: 1; }
[data-theme="y2k"] .ha-1::before,
[data-theme="y2k"] .ha-2::before,
[data-theme="y2k"] .ha-3::before { display: block; line-height: 1; }
[data-theme="y2k"] .ha-1 { top: -4%; right: 6%; }
[data-theme="y2k"] .ha-1::before { content: "✦"; font-size: 3rem; color: #ffffff; text-shadow: 0 0 14px #e62eae, 0 0 4px #ff8fd9; }
[data-theme="y2k"] .ha-2 { bottom: 4%; left: 0; }
[data-theme="y2k"] .ha-2::before { content: "✧"; font-size: 2.1rem; color: #9ef0ff; text-shadow: 0 0 12px #1ba6c4; }
[data-theme="y2k"] .ha-3 { top: 4%; left: 0; }
[data-theme="y2k"] .ha-3::before { content: "♥ ♥ ♥"; font-size: 1.05rem; letter-spacing: 0.2em; color: #e62eae; text-shadow: 2px 2px 0 #ffc4ec; }
[data-theme="y2k"] .ha-4 {
  width: 3.2rem; height: 3.2rem;
  bottom: 18%; right: 2%;
  background-image: radial-gradient(#33235a 1px, transparent 1.5px);
  background-size: 6px 6px;
  opacity: 0.3;
  border-radius: 8px;
}
[data-theme="y2k"] .ha-1, [data-theme="y2k"] .ha-2 { animation: y2k-float 5s ease-in-out infinite alternate; }
[data-theme="y2k"] .ha-3 { animation: y2k-float 4s 1s ease-in-out infinite alternate; }
@keyframes y2k-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* Generated chrome stickers, fetched only while this theme is active */
[data-theme="y2k"] .td-1 {
  display: block; width: 6rem; height: 6rem;
  background: url("../../assets/gen/y2k-star.webp") center / contain no-repeat;
  top: -10%; left: 26%;
  filter: drop-shadow(0 6px 14px rgba(160, 80, 200, 0.35));
  animation: y2k-float 5.5s 0.4s ease-in-out infinite alternate;
  z-index: 3;
}
[data-theme="y2k"] .td-2 {
  display: block; width: 7.5rem; height: 7.5rem;
  background: url("../../assets/gen/y2k-orb.webp") center / contain no-repeat;
  bottom: -6%; right: -2%;
  filter: drop-shadow(0 8px 18px rgba(27, 166, 196, 0.35));
  animation: y2k-float 7s ease-in-out infinite alternate-reverse;
  z-index: 1;
}
[data-theme="y2k"] .td-3 {
  display: block; width: 3.6rem; height: 3.6rem;
  background: url("../../assets/gen/y2k-heart.webp") center / contain no-repeat;
  top: 38%; left: -4%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 5px 12px rgba(230, 46, 174, 0.4));
  animation: y2k-float 6s 1s ease-in-out infinite alternate;
  z-index: 3;
}
/* a chrome star pinned to the featured pricing card */
[data-theme="y2k"] .price-card--featured::after {
  content: "";
  position: absolute; top: -1.7rem; right: -1rem;
  width: 3.8rem; height: 3.8rem;
  background: url("../../assets/gen/y2k-star.webp") center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(160, 80, 200, 0.4));
  pointer-events: none;
}

[data-theme="y2k"] .win {
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-strong);
}
[data-theme="y2k"] .win-bar {
  background: linear-gradient(180deg, #d3f4ff 0%, #8edcf5 55%, #c2efff 100%);
  border-bottom: 1.5px solid #ffffff;
  font-family: "Silkscreen", monospace;
  font-size: 0.6rem;
  color: #0c5e72;
}
[data-theme="y2k"] .win-dots i {
  background: radial-gradient(circle at 35% 30%, #ffffff 8%, #ff8fd9 45%, #e62eae);
}
[data-theme="y2k"] .win-dots i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #ffffff 8%, #b69bff 45%, #7c4dff); }
[data-theme="y2k"] .win-dots i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #ffffff 8%, #8edcf5 45%, #1ba6c4); }
[data-theme="y2k"] .ha-chip { background: linear-gradient(180deg, #ff9ade, #e62eae); border-radius: 99px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
[data-theme="y2k"] .ha-chip--alt { background: rgba(255,255,255,0.8); border: 1.5px solid #f0b9e3; }
[data-theme="y2k"] .ha-line { background: #f6e3f3; }
[data-theme="y2k"] .ha-bar {
  display: block;
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}
[data-theme="y2k"] .ha-bar i {
  background: linear-gradient(90deg, #e62eae, #7c4dff, #1ba6c4);
  border-radius: 99px;
  animation: y2k-load 3s steps(10) infinite;
}
@keyframes y2k-load { 0% { width: 6%; } 100% { width: 94%; } }
/* "LOADING..." caption under the bar, becomes its own grid row in .win-body */
[data-theme="y2k"] .win--hero .win-body::after {
  content: "LOADING... ✦ ALWAYS SMILE";
  font-family: "Silkscreen", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: #8b6bb8;
  margin-top: -0.25rem;
}

[data-theme="y2k"] .svc-card, [data-theme="y2k"] .why-card,
[data-theme="y2k"] .step, [data-theme="y2k"] .demo-card,
[data-theme="y2k"] .price-card, [data-theme="y2k"] .form,
[data-theme="y2k"] .win--admin {
  border: 1.5px solid #ffffff;
  box-shadow: var(--shadow);
}
[data-theme="y2k"] .svc-card:hover, [data-theme="y2k"] .demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
[data-theme="y2k"] .svc-icon {
  color: #a21fae;
  background: linear-gradient(180deg, #ffffff, #fbe2f6);
  border-radius: 10px;
  padding: 0.45rem;
  width: 2.8rem; height: 2.8rem;
  box-shadow: 0 3px 8px rgba(160, 80, 200, 0.2);
}
[data-theme="y2k"] .demo-thumb { border: 1.5px solid #ffffff; background: linear-gradient(160deg, #fff0fa, #eaf6ff); }
[data-theme="y2k"] .dt-b { background: linear-gradient(180deg, #ff9ade, #e62eae); }

[data-theme="y2k"] .why-num { font-family: "Silkscreen", monospace; color: var(--accent-2); }
[data-theme="y2k"] .step-num {
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, #ffffff, #fde0f5);
  color: #8a1361;
  box-shadow: 0 4px 10px rgba(160, 80, 200, 0.22);
  font-family: "Silkscreen", monospace;
  font-size: 0.7rem;
}
[data-theme="y2k"] .demo-status { font-family: "Silkscreen", monospace; font-size: 0.56rem; border: 1.5px solid var(--line); background: rgba(255,255,255,0.7); }
[data-theme="y2k"] .demo-status--prod { border-color: #fff; background: linear-gradient(180deg, #d3f4ff, #8edcf5); color: #0c5e72; }

[data-theme="y2k"] .price-badge {
  background: linear-gradient(90deg, #e62eae, #7c4dff);
  font-family: "Silkscreen", monospace;
  font-size: 0.58rem;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(160, 80, 200, 0.3);
}
[data-theme="y2k"] .price-card--featured { background: linear-gradient(170deg, rgba(255,255,255,0.95) 55%, #fbe4f7); }
[data-theme="y2k"] .price-list li::before { content: "✦"; color: var(--accent-2); }

[data-theme="y2k"] .field input, [data-theme="y2k"] .field select, [data-theme="y2k"] .field textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
[data-theme="y2k"] .field input:focus, [data-theme="y2k"] .field select:focus, [data-theme="y2k"] .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 46, 174, 0.18);
}
[data-theme="y2k"] .site-footer { border-top: 1.5px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.4); }

/* Bouncy pop-in */
[data-theme="y2k"] .reveal {
  transform: translateY(10px) scale(0.92);
  transition-timing-function: cubic-bezier(0.34, 1.45, 0.64, 1);
  transition-duration: 0.5s;
}
[data-theme="y2k"] .reveal.in-view { transform: none; }

[data-theme="y2k"] .car-btn { border: 2px solid #fff; background: rgba(255,255,255,0.75); box-shadow: var(--shadow); border-radius: 99px; }

/* Ticker: a glossy candy band */
[data-theme="y2k"] { --tk-speed: 65; }
[data-theme="y2k"] .ticker {
  background: linear-gradient(180deg, #ffffff 0%, #ffd9f1 45%, #ffb9e6 55%, #ffe3f4 100%);
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: 0 6px 16px rgba(160, 80, 200, 0.18);
}
[data-theme="y2k"] .tk-item {
  font-family: "Silkscreen", monospace;
  font-size: 0.62rem;
  color: #8a1361;
}
[data-theme="y2k"] .tk-sep { color: #1ba6c4; text-shadow: 0 0 6px rgba(142, 220, 245, 0.9); }
[data-theme="y2k"] .tk-sep::before { content: "✦"; }

/* Philosophy panel: a glass profile card */
[data-theme="y2k"] .mode-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid #ffffff;
  box-shadow: var(--shadow);
}
[data-theme="y2k"] .mp-title {
  background-image: linear-gradient(95deg, #e62eae 5%, #7c4dff 60%, #1ba6c4 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
[data-theme="y2k"] .mp-label { font-family: "Silkscreen", monospace; font-size: 0.6rem; }
[data-theme="y2k"] .mp-dot { border: 1.5px solid #ffffff; box-shadow: 0 2px 6px rgba(160, 80, 200, 0.3); }
[data-theme="y2k"] .palette-pop { border: 1.5px solid #ffffff; box-shadow: var(--shadow-strong); }

/* --------------------------------------------------------------------------
   Self-preview
   -------------------------------------------------------------------------- */
.mode-card[data-mode="y2k"] .mc-prev {
  background: linear-gradient(160deg, #ffe1f5, #f3e8ff 50%, #dbf4ff);
  border: 1.5px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(160, 80, 200, 0.2);
}
.mode-card[data-mode="y2k"] .mp-a {
  left: 0.5rem; right: 0.5rem; top: 0.5rem; height: 0.9rem; width: auto;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #d3f4ff, #8edcf5);
  border: 1px solid #fff;
}
.mode-card[data-mode="y2k"] .mp-b {
  width: 2.4rem; height: 0.55rem; border-radius: 99px;
  background: linear-gradient(90deg, #e62eae, #7c4dff, #1ba6c4);
  left: 0.7rem; bottom: 0.8rem;
}
.mode-card[data-mode="y2k"] .mp-c {
  width: auto; height: auto; background: none;
  right: 0.55rem; top: 1.5rem;
}
.mode-card[data-mode="y2k"] .mp-c::before {
  content: "✦"; font-size: 1.15rem; color: #fff;
  text-shadow: 0 0 8px #e62eae;
}
.mode-card[data-mode="y2k"] .mc-aa {
  font-family: "Silkscreen", monospace;
  color: #33235a; left: 0.7rem; top: 1.7rem; font-size: 0.85rem;
}
