:root {
  color-scheme: dark;
  --bg: #020202;
  --panel: rgba(9, 9, 11, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.72);
  --soft-white: rgba(255, 255, 255, 0.14);
  --soft-gray: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #020202;
}

.animated-gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(130deg, #000 0%, #0a0a0b 30%, #161618 50%, #0a0a0b 72%, #f0f0f0 100%);
  background-size: 140% 140%, 160% 160%, 200% 200%;
  animation: floatBackground 22s ease-in-out infinite;
  z-index: 0;
}

.animated-gradient::before,
.animated-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.045) 48%, transparent 100%);
  filter: blur(36px);
  opacity: 0.7;
  transform: skewX(-18deg);
}

.animated-gradient::before {
  animation: sweepOne 16s ease-in-out infinite;
}

.animated-gradient::after {
  animation: sweepTwo 20s ease-in-out infinite;
}

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

button {
  font: inherit;
}

.mobile-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mockup-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: min(100vh - 40px, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 8px 34px;
  z-index: 2;
}

.brand-mini {
  margin: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.background-orbs {
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), transparent 14%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.03), transparent 26%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.02), transparent 40%);
  filter: blur(10px);
  animation: pulseField 12s ease-in-out infinite;
  z-index: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 1;
}

.center-logo {
  position: relative;
  margin-top: auto;
  margin-bottom: 60px;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
}

.logo-aura {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.05) 42%, transparent 74%);
  filter: blur(34px);
}

.main-logo-image {
  position: relative;
  width: min(100%, 290px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.16))
    drop-shadow(0 0 36px rgba(255, 255, 255, 0.08));
}

.dock-stack {
  width: 100%;
  margin-top: auto;
  padding-bottom: 156px;
}

.bottom-dock {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.dock-button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(7, 7, 8, 0.82);
  color: #f4f4f5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.icon-only {
  display: grid;
  place-items: center;
}

.icon-only svg,
.script-copy-card svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.script-copy-card {
  width: 100%;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.script-copy-card:hover,
.script-copy-card:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.24);
}

.script-copy-card code {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  line-height: 50px;
  color: #f3f4f6;
}

@keyframes floatBackground {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.03);
    filter: brightness(0.95);
  }
  50% {
    transform: translate3d(3%, 1%, 0) scale(1.08);
    filter: brightness(1.02);
  }
  100% {
    transform: translate3d(-1%, 4%, 0) scale(1.05);
    filter: brightness(0.98);
  }
}

@keyframes sweepOne {
  0%,
  100% {
    transform: translateX(-28%) skewX(-18deg);
    opacity: 0.24;
  }
  50% {
    transform: translateX(28%) skewX(-18deg);
    opacity: 0.48;
  }
}

@keyframes sweepTwo {
  0%,
  100% {
    transform: translateX(22%) skewX(-18deg);
    opacity: 0.18;
  }
  50% {
    transform: translateX(-24%) skewX(-18deg);
    opacity: 0.34;
  }
}

@keyframes pulseField {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.04);
  }
}

@media (max-width: 480px) {
  .mobile-stage {
    padding: 0;
  }

  .mockup-shell {
    width: 100%;
    min-height: 100vh;
    padding: 28px 16px 26px;
  }

  .center-logo {
    margin-bottom: 48px;
    width: 260px;
    height: 260px;
  }

  .bottom-dock {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .dock-stack {
    padding-bottom: 134px;
  }
}
