/* Desktop Detox — Single Page Styles */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #1c1926;
  --color-surface: #252232;
  --color-text: #e8e6ef;
  --color-text-muted: #9590a8;
  --color-accent: #8b6cff;
  --color-accent-hover: #7a58f0;
  --color-border: rgba(139, 108, 255, 0.1);
  --shadow-soft: 0 4px 24px rgba(80, 40, 180, 0.15);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-lifted: 0 8px 32px rgba(80, 40, 180, 0.2);
  --radius: 16px;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---------- Stage ---------- */
.stage { position: relative; width: 100%; height: 100vh; overflow: hidden; }

/* ---------- Scattered files ---------- */
.messy-files { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.messy-file {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
}

.messy-file-icon {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.messy-file-name {
  font-size: 10px;
  color: var(--color-text);
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(139, 108, 255, 0.3);
  border-radius: 3px;
  padding: 1px 4px;
}

/* ---------- Center content ---------- */
.center-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), gap 0.8s ease;
}

.center-content.compact {
  transform: translateY(-35vh);
  gap: 12px;
}

.center-content.compact .headline { font-size: 1.6rem; }
.center-content.compact .btn-buy { font-size: 0.95rem; padding: 10px 28px; }
.center-content.compact .byline { opacity: 0; max-height: 0; margin: 0; overflow: hidden; transition: opacity 0.3s ease, max-height 0.5s ease; }
.center-content.compact .see-it-btn { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; transition: opacity 0.3s ease, max-height 0.5s ease; }

/* ---------- Headline ---------- */
.headline {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 600px;
  padding: 0 24px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease, font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.headline.revealed { opacity: 1; transform: scale(1); }

/* ---------- Buy button ---------- */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.btn-buy:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lifted); }

.btn-buy .price-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Stage CTA ---------- */
.stage-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease;
  pointer-events: none;
}

.stage-cta.revealed { opacity: 1; transform: translateY(0); pointer-events: auto; }

.byline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 400;
  text-align: center;
  max-width: 500px;
  max-height: 60px;
  padding: 0 24px;
  transition: opacity 0.4s ease, max-height 0.6s ease;
}

/* ---------- See It button ---------- */
.see-it-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  max-height: 80px;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.2s ease, max-height 0.6s ease;
}

.see-it-btn.revealed { opacity: 1; transform: translateY(0); pointer-events: auto; }
.see-it-btn:hover { color: #fff; }

.see-it-btn svg {
  animation: bobDown 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(139, 108, 255, 0.4));
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Demo container ---------- */
.demo-container {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) translateY(40px);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 85%;
  max-width: 860px;
  min-width: 320px;
}

.demo-container.visible { opacity: 1; transform: translate(-50%, -50%) translateY(0); pointer-events: auto; }

.demo-frame { position: relative; }

.demo-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: rgba(139, 108, 255, 0.12);
  border-radius: calc(var(--radius) + 4px);
  z-index: -1;
  filter: blur(16px);
}

.demo-video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: block;
  border: 1px solid var(--color-border);
}

/* ---------- Sticky Dock ---------- */
.site-dock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  width: 90%;
  max-width: 720px;
}

.site-dock-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  background: rgba(37, 34, 50, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.dock-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
  transition: transform 0.15s ease;
  flex: 1;
  min-width: 0;
}

.dock-icon:hover { transform: scale(1.12) translateY(-2px); }

.dock-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

.dock-icon-img--purple { background: rgba(139, 108, 255, 0.2); color: #8b6cff; }
.dock-icon-img--teal { background: rgba(45, 212, 191, 0.2); color: #2dd4bf; }
.dock-icon-img--pink { background: rgba(244, 114, 182, 0.2); color: #f472b6; }
.dock-icon-img--orange { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.dock-icon-img--blue { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.dock-icon-img--green { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.dock-icon-img--indigo { background: rgba(129, 140, 248, 0.2); color: #818cf8; }

.dock-icon-label {
  font-size: 9px;
  color: var(--color-text-muted);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.dock-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex: none;
}

.dock-icon--trash .dock-icon-img { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.dock-icon--new .dock-icon-img { background: rgba(255, 255, 255, 0.06); color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .headline { font-size: 2.2rem; }
  .center-content.compact .headline { font-size: 1.3rem; }
}

@media (max-width: 600px) {
  .headline { font-size: 1.8rem; }
  .center-content.compact .headline { font-size: 1.1rem; }
  .btn-buy { font-size: 1rem; padding: 12px 28px; }
  .byline { font-size: 0.95rem; }
}
