* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  color: var(--text);
  background: var(--bg-radial-1), var(--bg-radial-2), var(--bg-radial-3), var(--bg);
  overflow-x: hidden;
}

.wrap {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: min(5vw, 36px) 18px 44px;
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.blob-a {
  width: min(78vw, 760px);
  height: min(78vw, 760px);
  left: -22%;
  top: -18%;
  background: radial-gradient(circle at 40% 40%, rgba(167, 119, 250, 0.95), rgba(124, 58, 237, 0.35) 55%, transparent 72%);
}

.blob-b {
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  right: -18%;
  top: 15%;
  background: radial-gradient(circle at 35% 45%, rgba(74, 222, 128, 0.75), rgba(34, 197, 94, 0.25) 58%, transparent 72%);
}

.blob-c {
  width: min(62vw, 560px);
  height: min(62vw, 560px);
  left: 18%;
  bottom: -32%;
  background: radial-gradient(circle at 50% 35%, rgba(124, 58, 237, 0.55), rgba(99, 102, 241, 0.25) 60%, transparent 70%);
}

.grid-floor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 92% 78% at 50% 40%, rgba(0, 0, 0, 0.7) 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 40%, rgba(0, 0, 0, 0.7) 0%, transparent 74%);
}

.logo-mural {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 82% 75% at 50% 48%, rgba(0, 0, 0, 0.95) 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 82% 75% at 50% 48%, rgba(0, 0, 0, 0.95) 0%, transparent 72%);
}

.logo-mural img {
  width: min(118vmin, 1040px);
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.14;
  transform: translate(10%, 4%) rotate(-9deg) scale(1.06);
  filter: saturate(1.2) blur(0.4px);
  mix-blend-mode: soft-light;
  animation: logo-mural-drift 48s ease-in-out infinite;
}

@keyframes logo-mural-drift {
  0%,
  100% {
    transform: translate(10%, 4%) rotate(-9deg) scale(1.06);
  }
  50% {
    transform: translate(5%, 0%) rotate(-6deg) scale(1.1);
  }
}

.wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: min(920px, 100%);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.18) 100%);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.5s ease;
  z-index: 2;
}

.card:hover {
  box-shadow: var(--shadow), 0 0 100px rgba(124, 58, 237, 0.2), 0 0 140px rgba(34, 197, 94, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(900px 520px at 18% -8%, rgba(124, 58, 237, 0.2), transparent 58%),
    radial-gradient(700px 480px at 92% 12%, rgba(34, 197, 94, 0.12), transparent 52%),
    radial-gradient(1200px 400px at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3.2vw, 32px) clamp(14px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px clamp(16px, 3vw, 24px) 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
}

.brand {
  display: block;
  width: 100%;
  padding: clamp(4px, 1vw, 12px) 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.brand h1 {
  font-family: var(--font);
  font-size: clamp(2.35rem, min(11vw, 10vh), 5.25rem);
  margin: 0;
  font-weight: 800;
  font-style: normal;
  letter-spacing: clamp(0.06em, 1.2vw, 0.16em);
  line-height: 0.98;
  text-align: center;
  font-variant-ligatures: none;
  text-transform: none;
  width: 100%;
  padding: clamp(10px, 2vw, 22px) clamp(8px, 3vw, 36px);
  box-sizing: border-box;
  background-image: linear-gradient(
    118deg,
    rgb(167, 119, 250) 0%,
    rgb(124, 58, 237) 28%,
    rgb(74, 222, 128) 72%,
    rgb(34, 197, 94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(124, 58, 237, 0.65)) drop-shadow(0 0 20px rgba(34, 197, 94, 0.5))
    drop-shadow(0 0 40px rgba(124, 58, 237, 0.3));
}

.pill {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 197, 94, 0.08));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 0 24px rgba(124, 58, 237, 0.12);
  animation: pill-pulse 5s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 0 22px rgba(124, 58, 237, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 0 36px rgba(34, 197, 94, 0.18), 0 0 28px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.28);
  }
}

.content {
  padding: clamp(28px, 4vw, 40px) clamp(18px, 3vw, 28px) clamp(26px, 3vw, 34px);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.splash-ready .kicker {
  animation: rise-in 0.85s var(--ease-out-expo) backwards;
  animation-delay: 0.06s;
}

.splash-ready .title {
  animation: rise-in 0.95s var(--ease-out-expo) backwards;
  animation-delay: 0.12s;
}

.splash-ready .subtitle {
  animation: rise-in 0.9s var(--ease-out-expo) backwards;
  animation-delay: 0.2s;
}

.splash-ready .grid {
  animation: rise-in 1s var(--ease-out-expo) backwards;
  animation-delay: 0.28s;
}

.splash-ready .footer {
  animation: rise-in 0.85s var(--ease-out-expo) backwards;
  animation-delay: 0.36s;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* .notify-pulse — design tokens in :root (theme.css) */
.notify-pulse {
  position: relative;
  flex-shrink: 0;
  width: var(--notify-pulse-size);
  height: var(--notify-pulse-size);
  border-radius: 999px;
  background: var(--notify-pulse-fill);
  box-shadow:
    0 0 0 2px rgba(var(--notify-pulse-rgb), 0.2),
    0 0 12px rgba(var(--notify-pulse-rgb), 0.55);
  z-index: 0;
  isolation: isolate;
  animation: notify-pulse-nub var(--notify-pulse-duration) cubic-bezier(0.34, 1.1, 0.64, 1) infinite;
}

.notify-pulse::before,
.notify-pulse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(var(--notify-pulse-rgb), 0.85);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%) scale(1);
  animation: notify-pulse-ring var(--notify-pulse-duration) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.notify-pulse::after {
  animation-delay: var(--notify-pulse-ring-lag);
}

@keyframes notify-pulse-nub {
  0%,
  28%,
  100% {
    transform: scale(1);
  }
  5% {
    transform: scale(1.22);
  }
  11% {
    transform: scale(1);
  }
  16% {
    transform: scale(1.12);
  }
  21% {
    transform: scale(1);
  }
}

@keyframes notify-pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  52% {
    transform: translate(-50%, -50%) scale(2.45);
    opacity: 0;
  }
  53%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.title {
  font-size: clamp(2.25rem, 6.8vw, 3.65rem);
  margin: 14px 0 0;
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.9) 42%, rgba(210, 200, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 50px rgba(124, 58, 237, 0.14));
}

.subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  line-height: 1.68;
  max-width: 56ch;
}

.grid {
  margin-top: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.14) 100%);
  border-radius: 16px;
  padding: 16px 16px 14px;
  min-height: 96px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), border-color 0.35s ease, box-shadow 0.45s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(400px 120px at var(--tx, 50%) var(--ty, 0%), rgba(124, 58, 237, 0.18), transparent 65%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 36px rgba(124, 58, 237, 0.12), 0 0 24px rgba(34, 197, 94, 0.06);
}

.tile:hover::before {
  opacity: 1;
}

.tile .t {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.tile .d {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
  position: relative;
  z-index: 1;
}

.footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}

.a:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.2);
}

.a:active {
  transform: translateY(0);
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .pill,
  .notify-pulse,
  .notify-pulse::before,
  .notify-pulse::after {
    animation: none !important;
    transform: none !important;
  }

  .notify-pulse::before,
  .notify-pulse::after {
    opacity: 0;
  }

  .logo-mural img {
    animation: none !important;
    transform: translate(8%, 2%) rotate(-8deg) scale(1.05);
  }

  .splash-ready .kicker,
  .splash-ready .title,
  .splash-ready .subtitle,
  .splash-ready .grid,
  .splash-ready .footer {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .card {
    transform: none !important;
  }

  .tile,
  .tile:hover,
  .a,
  .a:hover {
    transform: none;
    transition-duration: 0.01ms;
  }
}
