@import "tailwindcss";

:root {
  --background: #eef1fb;
  --foreground: #0f172a;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

/* Light glassmorphism theme.
   The app's markup is written against the zinc scale (dark-first). Inverting the
   scale here renders it as a light UI everywhere: zinc-950 = page background,
   zinc-900 = raised surface (white glass), zinc-100/50 = headings/ink. */
@theme {
  --color-zinc-950: #eef1fb;
  --color-zinc-900: #ffffff;
  --color-zinc-800: #dde4f2;
  --color-zinc-700: #c4cfe1;
  --color-zinc-600: #8fa0b8;
  --color-zinc-500: #61708a;
  --color-zinc-400: #45566e;
  --color-zinc-300: #33415c;
  --color-zinc-200: #1f2a44;
  --color-zinc-100: #101a33;
  --color-zinc-50: #070d1f;
}

html {
  color-scheme: light;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* vibrant mesh backdrop the glass surfaces blur against — slowly drifting */
body::before {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55rem 38rem at 8% -8%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(48rem 34rem at 102% -2%, rgba(236, 72, 153, 0.14), transparent 55%),
    radial-gradient(50rem 36rem at 85% 108%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at -5% 90%, rgba(168, 85, 247, 0.12), transparent 55%);
  animation: fx-mesh-drift 26s ease-in-out infinite alternate;
}

/* ── Motion system ─────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

@keyframes fx-mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); filter: hue-rotate(0deg); }
  to   { transform: translate3d(-1.5%, 1.5%, 0) scale(1.07); filter: hue-rotate(14deg); }
}

@keyframes fx-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fx-pop {
  0%   { opacity: 0; transform: scale(0.94) translateY(10px); }
  60%  { opacity: 1; transform: scale(1.015) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes fx-gradient-move {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes fx-marquee {
  to { transform: translateX(-50%); }
}

@keyframes fx-header-solidify {
  to { box-shadow: 0 10px 34px rgba(80, 90, 180, 0.14); }
}

@keyframes fx-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

/* entrance on load, with stagger helpers */
.fx-in       { animation: fx-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.fx-pop-in   { animation: fx-pop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.fx-d1 { animation-delay: 0.08s; }
.fx-d2 { animation-delay: 0.16s; }
.fx-d3 { animation-delay: 0.24s; }
.fx-d4 { animation-delay: 0.32s; }
.fx-d5 { animation-delay: 0.4s; }
.fx-d6 { animation-delay: 0.48s; }

/* scroll-driven reveal (CSS scroll timelines; no JS, no observer) */
@supports (animation-timeline: view()) {
  .fx-reveal {
    animation: fx-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* sticky headers grow a shadow as the page scrolls */
@supports (animation-timeline: scroll()) {
  .fx-header {
    animation: fx-header-solidify linear both;
    animation-timeline: scroll();
    animation-range: 0 140px;
  }
}

/* hover lift for interactive cards */
.fx-lift {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s;
}
.fx-lift:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 22px 50px rgba(80, 90, 180, 0.22);
}

/* glossy shine sweep across buttons/banners on hover */
.fx-shine {
  position: relative;
  overflow: hidden;
}
.fx-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.fx-shine:hover::after {
  transform: translateX(130%);
}

/* animated gradient ink (pair with bg-clip-text) */
.fx-gradient-text {
  background-size: 220% 220%;
  animation: fx-gradient-move 5s ease-in-out infinite alternate;
}

/* gentle levitation (stagger with fx-d*) */
.fx-float {
  animation: fx-float 5.5s ease-in-out infinite;
}

/* infinite marquee — duplicate the track content once */
.fx-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.fx-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: fx-marquee 28s linear infinite;
}
.fx-marquee:hover .fx-marquee-track {
  animation-play-state: paused;
}

/* live-dot pulse ring */
.fx-live-dot {
  animation: fx-pulse-ring 1.6s ease-out infinite;
}

/* press feedback everywhere */
button:active,
a:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

::selection {
  background: rgb(99 102 241 / 0.25);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c4cfe1 transparent;
}

input,
select,
textarea {
  color-scheme: light;
}

@media print {
  body {
    background: white;
    color: black;
  }
  .no-print {
    display: none !important;
  }
}
