:root {
  --ink: #07080d;
  --ink-2: #0c0e14;
  --panel: rgba(14, 16, 24, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --ember: #ff4b3e;
  --apricot: #ff8a4c;
  --gold: #f0c27a;
  --mist: #9aa3b5;
}

html,
body {
  background: var(--ink);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Manrope, "Noto Sans SC", sans-serif;
  color: #edf0f6;
}

.display {
  font-family: Syne, "Noto Sans SC", sans-serif;
}

.mesh {
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 75, 62, 0.22), transparent 55%),
    radial-gradient(720px 380px at 92% 8%, rgba(240, 194, 122, 0.12), transparent 50%),
    radial-gradient(640px 480px at 70% 120%, rgba(88, 101, 242, 0.14), transparent 55%),
    linear-gradient(180deg, #07080d 0%, #0b0d14 100%);
}

.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255, 75, 62, 0.08), rgba(240, 194, 122, 0.08), rgba(90, 110, 255, 0.08), rgba(255, 75, 62, 0.08));
  filter: blur(80px);
  animation: drift 22s linear infinite;
  pointer-events: none;
}

.grid-fade {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
}

.brand-mark {
  background: linear-gradient(135deg, #ff6a4d 0%, #ff4b3e 42%, #f0c27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rail {
  scrollbar-width: none;
  overflow: visible;
}

.nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ember), var(--gold));
  opacity: 0;
  transform: scaleY(0.4);
  transition: 0.35s ease;
}

.nav-item:hover::after,
.nav-item.is-active::after {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(255, 75, 62, 0.16), rgba(255, 75, 62, 0.03));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 75, 62, 0.16);
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.8s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

.card-spot {
  position: relative;
  isolation: isolate;
}

.card-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 75, 62, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spot:hover::after {
  opacity: 1;
}

.pulse-ring {
  box-shadow: 0 0 0 0 rgba(255, 75, 62, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.topbar.is-scrolled {
  background: rgba(7, 8, 13, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.drawer {
  transform: translateX(-104%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.is-open {
  transform: translateX(0);
}

.backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@keyframes drift {
  to {
    transform: rotate(1turn);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -16px, 0) scale(1.08);
  }
}

@keyframes sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 75, 62, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 75, 62, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 62, 0);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
