/* Theme tokens */
:root {
  --bg: #0b1830;            /* midnight navy */
  --accent: #ff9270;        /* accent */
  --secondary: #f7eedb;     /* secondary */
  --highlight: #25e6c0;     /* highlight */
  --text: var(--secondary);
}

/* Reset + base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #0e2044 0%, transparent 60%),
              radial-gradient(900px 600px at -20% 120%, #0a1430 0%, transparent 60%),
              var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
               Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero { text-align: center; }

/* Chrome typography effect */
.logo {
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.logo-text {
  display: inline-block;
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  padding: 0.2em 0.1em;
  /* Metallic “chrome” gradient + subtle sparkles */
  background:
    /* calmer, fewer sparkles for a more refined look */
    radial-gradient(circle at 64% 28%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.0) 6%),
    radial-gradient(circle at 32% 78%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.0) 5.5%),
    /* subtle top-left brightening */
    linear-gradient( 15deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.0) 22%) 0 0/100% 100% no-repeat,
    /* core chrome banding */
    linear-gradient( 90deg, #151515 0%, #5a5a5a 12%, #d6d6d6 28%, #f6f6f6 36%, #dcdcdc 45%, #7a7a7a 60%, #cfcfcf 72%, #ffffff 83%, #6b6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Sharper edges, reduced glow to avoid blur on "D" */
  text-shadow:
    0.25px 0.5px 0 rgba(0,0,0,0.35),
    0 0 8px rgba(37, 230, 192, 0.12),
    0 0 3px rgba(255, 146, 112, 0.10);
  -webkit-text-stroke: 0.3px rgba(255,255,255,0.22);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
.logo-text::after { /* moving sheen */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(70deg, transparent 0%, rgba(247,238,219,0.18) 45%, transparent 60%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  /* Run once, slower */
  animation: sheen 14s ease-in-out 0.8s 1 both;
}

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

.tag {
  margin: 0.25rem 0 1.25rem;
  color: color-mix(in oklab, var(--secondary) 85%, white 15%);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  opacity: 0.9;
}

/* Warm orange gradient for the word "Warm" (matches the Listen button) */
.tag .warm-gradient {
  display: inline-block;
  font-weight: 750;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    color-mix(in oklab, var(--accent) 85%, #8a3f2b 15%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(115%) contrast(108%);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 8px rgba(255,146,112,0.08);
}

/* Liquid-metal technicolor finish for the word "Midnight" */
.tag .liquid {
  display: inline-block;
  position: relative;
  font-weight: 750;
  background:
    /* technicolor spectrum */
    linear-gradient( 90deg,
      #7df 0%, #f6f 18%, #ffcc66 36%, #9df 52%, #7df 70%, #f6f 88%, #ffcc66 100%
    );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(120%) contrast(108%);
  text-shadow:
    0 0 10px rgba(255,255,255,0.10),
    0 1px 0 rgba(0,0,0,0.25);
  animation: liquidShift 14s ease-in-out infinite alternate;
}

.tag .liquid::after { /* specular highlight sweep */
  content: "";
  position: absolute; inset: -4% 0 -6% 0;
  background: linear-gradient(70deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 62%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: liquidSheen 8s ease-in-out 1.2s infinite;
}

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

@keyframes liquidSheen {
  0%, 20% { transform: translateX(-120%); opacity: 0.0; }
  35% { transform: translateX(40%); opacity: 0.35; }
  55% { transform: translateX(120%); opacity: 0.15; }
  100% { transform: translateX(120%); opacity: 0.0; }
}

.cta { display: flex; gap: 0.75rem; justify-content: center; }
.btn {
  --ring: color-mix(in oklab, var(--highlight) 45%, white 5%);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: transform 180ms ease, box-shadow 200ms ease, background 220ms ease;
  backdrop-filter: saturate(120%) blur(2px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 24, 48, 0.9), 0 0 0 6px var(--ring);
}
.btn-primary {
  color: #0b1220;
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 85%, #8a3f2b 15%));
}
.btn-primary:hover { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent); transform: translateY(-1px); }

.btn-ghost {
  color: var(--secondary);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.btn-ghost:hover { box-shadow: 0 0 0 6px color-mix(in oklab, var(--highlight) 20%, transparent); transform: translateY(-1px); }

.blurb { max-width: 60ch; margin: 2.25rem auto 0; text-align: center; opacity: 0.9; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem 2rem;
  color: color-mix(in oklab, var(--secondary) 80%, white 20%);
  opacity: 0.9;
}
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 1px; }
.footer-nav a:hover { border-bottom-style: solid; }
.copyright { opacity: 0.8; }

/* Glowing gradient circles */
.fx { position: fixed; pointer-events: none; z-index: 0; }
.fx-orb { filter: blur(40px) saturate(130%); opacity: 0.22; }
.orb-a {
  width: 55vmin; height: 55vmin; top: -10vmin; left: -8vmin;
  background: radial-gradient(circle at 30% 30%, var(--highlight), transparent 60%);
  animation: orbDrift 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 45vmin; height: 45vmin; right: -12vmin; top: 10vmin;
  background: radial-gradient(circle at 70% 40%, var(--accent), transparent 62%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.orb-c {
  width: 60vmin; height: 60vmin; bottom: -15vmin; left: 30vw;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--highlight) 35%, var(--accent) 65%), transparent 65%);
  animation: orbDrift 28s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.22; }
  50%  { transform: translate3d(0.8vmin, -0.6vmin, 0) scale(1.015); opacity: 0.23; }
  100% { transform: translate3d(-0.6vmin, 0.7vmin, 0) scale(1.03); opacity: 0.22; }
}

/* Lens flare ribbons */
.fx-flare { mix-blend-mode: screen; opacity: 0.08; filter: blur(6px) saturate(130%); }
.flare-a {
  inset: auto auto 15vh -15vw; width: 140vw; height: 28vh;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255,146,112,0.35) 22%, rgba(37,230,192,0.45) 55%, rgba(247,238,219,0.35) 72%, transparent 100%);
  transform: rotate(-6deg);
}

/* Subtle VHS grain + scanlines */
.fx-grain {
  inset: -20px; left: -20px; right: -20px; top: -20px; bottom: -20px;
  background:
    /* scanlines */
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 3px
    ),
    /* soft noise via multi-stop gradient */
    radial-gradient(100px 120px at 20% 30%, rgba(255,255,255,0.04), transparent),
    radial-gradient(120px 100px at 70% 60%, rgba(0,0,0,0.12), transparent),
    radial-gradient(180px 160px at 40% 80%, rgba(255,255,255,0.03), transparent);
  /* Remove jittering for a calmer, professional feel */
  opacity: 0.1;
}

@keyframes jitter {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.22; }
  20%  { transform: translate3d(0.4px, -0.3px, 0); opacity: 0.20; }
  40%  { transform: translate3d(-0.6px, 0.5px, 0); opacity: 0.24; }
  60%  { transform: translate3d(0.3px, 0.2px, 0); opacity: 0.21; }
  80%  { transform: translate3d(-0.2px, -0.4px, 0); opacity: 0.23; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.22; }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .cta { gap: 0.5rem; }
  .btn { padding: 0.65rem 1rem; }
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #0b1830;
  border-radius: 6px;
  z-index: 9999;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-text::after { animation: none !important; }
  .fx-grain { animation: none !important; }
  .btn { transition: none !important; }
  .tag .liquid { animation: none !important; }
  .tag .liquid::after { animation: none !important; }
  .fx-orb { animation: none !important; }
}
