/* ============================================================
   Markety — Teaser landing page
   ============================================================ */

:root {
  --bg-0: #04070a;
  --bg-1: #07130f;

  --green: #49ca67;      /* brand primary */
  --green-bright: #5cf08a;
  --mint: #b8ffd2;
  --teal: #2fe0c0;
  --emerald: #109b54;

  --text: #eafff1;
  --muted: rgba(206, 245, 219, 0.55);

  --font: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 90% at 50% 12%, #0b1d17 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 110%, #08161a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* ----------------------------------------------------------------
   Background layers
   ---------------------------------------------------------------- */

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.lights {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.7;
  will-change: transform;
}

.orb-1 {
  width: 52vmax; height: 52vmax;
  top: -16vmax; left: -12vmax;
  background: radial-gradient(circle, var(--green) 0%, transparent 68%);
  animation: float-a 19s ease-in-out infinite alternate;
}
.orb-2 {
  width: 46vmax; height: 46vmax;
  bottom: -18vmax; right: -10vmax;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.55;
  animation: float-b 23s ease-in-out infinite alternate;
}
.orb-3 {
  width: 40vmax; height: 40vmax;
  top: 18%; left: 50%;
  background: radial-gradient(circle, var(--green-bright) 0%, transparent 65%);
  opacity: 0.45;
  animation: float-c 17s ease-in-out infinite alternate;
}
.orb-4 {
  width: 34vmax; height: 34vmax;
  top: -8vmax; right: 12%;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  opacity: 0.6;
  animation: float-d 27s ease-in-out infinite alternate;
}
.orb-5 {
  width: 30vmax; height: 30vmax;
  bottom: -6vmax; left: 16%;
  background: radial-gradient(circle, var(--mint) 0%, transparent 72%);
  opacity: 0.35;
  animation: float-b 21s ease-in-out infinite alternate-reverse;
}
.orb-6 {
  width: 22vmax; height: 22vmax;
  top: 60%; right: 28%;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.4;
  animation: float-a 15s ease-in-out infinite alternate-reverse;
}

@keyframes float-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(7vmax, 5vmax) scale(1.12); }
}
@keyframes float-b {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-6vmax, -7vmax) scale(0.9); }
}
@keyframes float-c {
  0%   { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-44%, 6vmax) scale(1.15); }
}
@keyframes float-d {
  0%   { transform: translate(0, 0) scale(0.95); }
  100% { transform: translate(-5vmax, 6vmax) scale(1.1); }
}

/* Film grain for a premium, textured feel */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

/* Edge vignette to focus the centre */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 40%, rgba(2, 5, 8, 0.55) 100%);
}

/* ----------------------------------------------------------------
   Centre stage
   ---------------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1000px;
}

.parallax {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- The μ mark --- */
.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(58vw, 340px);
  height: min(58vw, 340px);
  margin-bottom: clamp(6px, 2vw, 18px);
}

.halo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(73, 202, 103, 0.40) 0%,
      rgba(73, 202, 103, 0.14) 42%,
      transparent 70%);
  filter: blur(6px);
  animation: halo-pulse 5s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%, 100% { scale: 1;    opacity: 0.75; }
  50%      { scale: 1.09; opacity: 1; }
}

.ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(73, 202, 103, 0) 70deg,
      rgba(92, 240, 138, 0.9) 150deg,
      rgba(47, 224, 192, 0.4) 200deg,
      rgba(73, 202, 103, 0) 250deg,
      transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  opacity: 0.8;
  animation: spin 14s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.mu {
  position: relative;
  z-index: 1;
  font-size: clamp(7rem, 27vmin, 13rem);
  font-weight: 700;
  line-height: 1;
  transform: skewX(-9deg);
  background: linear-gradient(165deg, #e6fff0 0%, var(--green-bright) 46%, #27b15a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(73, 202, 103, 0.55));
  animation: mu-float 6s ease-in-out infinite, mu-glow 4s ease-in-out infinite;
}

@keyframes mu-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@keyframes mu-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(73, 202, 103, 0.45)) drop-shadow(0 0 48px rgba(73, 202, 103, 0.25)); }
  50%      { filter: drop-shadow(0 0 32px rgba(92, 240, 138, 0.7))  drop-shadow(0 0 78px rgba(73, 202, 103, 0.45)); }
}

/* --- Wordmark --- */
.wordmark {
  font-size: clamp(3.2rem, 13.5vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg,
      #e7fff2 0%, #e7fff2 38%,
      #ffffff 47%, #9bffc6 50%, #ffffff 53%,
      #e7fff2 62%, #e7fff2 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 34px rgba(73, 202, 103, 0.22));
  animation: shimmer 6.5s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* --- Divider --- */
.divider {
  width: min(220px, 42vw);
  height: 1px;
  margin: clamp(18px, 4vw, 30px) 0 clamp(14px, 3vw, 22px);
  background: linear-gradient(90deg, transparent, rgba(73, 202, 103, 0.75), transparent);
  border-radius: 2px;
  animation: divider-pulse 4s ease-in-out infinite;
}

@keyframes divider-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(73, 202, 103, 0.25); }
  50%      { box-shadow: 0 0 18px rgba(73, 202, 103, 0.6); }
}

/* --- Coming soon --- */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #c4f5d4;
  padding-left: 0.42em; /* visually centre despite letter-spacing */
}

.dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--green-bright), 0 0 24px rgba(92, 240, 138, 0.6);
  animation: dot-pulse 1.7s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(0.8);  opacity: 0.45; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* --- Tagline --- */
.tagline {
  margin-top: clamp(12px, 2.6vw, 18px);
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* --- Footer --- */
.footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 22px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(206, 245, 219, 0.32);
}

/* ----------------------------------------------------------------
   Entrance choreography
   ---------------------------------------------------------------- */

.mark, .wordmark, .divider, .soon, .tagline {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.loaded .mark     { opacity: 1; transform: none; transition-delay: 0.15s; }
body.loaded .wordmark { opacity: 1; transform: none; transition-delay: 0.42s; }
body.loaded .divider  { opacity: 1; transform: none; transition-delay: 0.66s; }
body.loaded .soon     { opacity: 1; transform: none; transition-delay: 0.84s; }
body.loaded .tagline  { opacity: 1; transform: none; transition-delay: 1.02s; }

/* ----------------------------------------------------------------
   Accessibility — respect reduced motion
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .mark, .wordmark, .divider, .soon, .tagline {
    opacity: 1 !important;
    transform: none !important;
  }
}
