/* DBS Creations — landing page. No external requests, no JS. */

@font-face {
  font-family: "Inter DBS";
  src: url("/assets/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0c1d;
  --text: #ece9f7;
  --muted: #a4a0c4;
  --faint: #6f6b93;
  --violet: #7c3aed;
  --purple: #a855f7;
  --pink: #f472b6;
  --lilac: #c4b5fd;
  --orchid: #f0abfc;
  --line: rgba(196, 181, 253, 0.14);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: "Inter DBS", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: min(70vmax, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform;
}

.glow--violet {
  top: -30%;
  left: -25%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.55), rgba(124, 58, 237, 0) 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glow--pink {
  bottom: -35%;
  right: -25%;
  background: radial-gradient(circle at center, rgba(244, 114, 182, 0.42), rgba(244, 114, 182, 0) 62%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(196, 181, 253, 0.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, transparent 75%);
}

/* ---------- hero ---------- */

.hero {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 2rem;
}

.mark {
  position: relative;
  width: clamp(88px, 22vw, 116px);
  aspect-ratio: 1;
  margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
}

.mark::before {
  /* soft halo behind the robot */
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0) 65%);
  animation: halo 6s ease-in-out infinite;
}

.bot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bot .body {
  animation: float 6s ease-in-out infinite;
}

.bot .eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 7s infinite;
}

.bot .core {
  animation: core 3s ease-in-out infinite;
}

.bot .star { animation: twinkle 4s ease-in-out infinite; }
.bot .s2 { animation-delay: -1s; }
.bot .s3 { animation-delay: -2.2s; }
.bot .s4 { animation-delay: -3.1s; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .slash {
  color: var(--pink);
  margin-inline: 0.12em;
}

.title {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 5.25rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, var(--lilac) 0%, var(--purple) 32%, var(--pink) 64%, var(--orchid) 82%, var(--lilac) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s var(--ease-out) both, sheen 14s ease-in-out infinite alternate;
  /* keep descender-free text from clipping on some engines */
  padding-bottom: 0.06em;
}

.tagline {
  margin: clamp(0.9rem, 3vw, 1.25rem) 0 0;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.tagline .i {
  color: var(--text);
  font-weight: 700;
}

.lede {
  margin: 0.75rem 0 0;
  max-width: 30ch;
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  line-height: 1.6;
  color: var(--faint);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: clamp(1.75rem, 6vw, 2.5rem) 0 0;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 19, 58, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  color: var(--muted);
}

.dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pink);
  animation: ping 2.4s var(--ease-out) infinite;
}

.foot {
  justify-self: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- 404 page ---------- */

.code {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--lilac);
}

.back {
  margin-top: 2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background-color 0.2s;
}

.back:hover { border-color: rgba(244, 114, 182, 0.5); background: rgba(244, 114, 182, 0.08); }
.back:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- entrance ---------- */

.rise { animation: rise 0.9s var(--ease-out) both; }
.hero > :nth-child(1) { animation-delay: 0.05s; }
.hero > :nth-child(2) { animation-delay: 0.18s; }
.hero > :nth-child(3) { animation-delay: 0.26s, 0s; }
.hero > :nth-child(4) { animation-delay: 0.36s; }
.hero > :nth-child(5) { animation-delay: 0.44s; }
.hero > :nth-child(6) { animation-delay: 0.56s; }
.foot { animation-delay: 0.7s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.2px); }
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(0.1); }
  96%           { transform: scaleY(1); }
}

@keyframes core {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

@keyframes halo {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@keyframes sheen {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes ping {
  0%        { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vw, 6vh, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-7vw, -5vh, 0) scale(0.95); }
}

@media (min-width: 720px) {
  .grid { background-size: 32px 32px; }
  .eyebrow { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
