/* AYVR Performance, Coming Soon
   Dark, clean, "electric current" accent on a black/white base. */

:root {
  --bg: #050507;
  --bg-soft: #0b0d11;
  --ink: #ffffff;
  --muted: #8b93a1;
  --muted-soft: #565d68;
  --line: rgba(255, 255, 255, 0.08);

  --accent: #bfe6ff;
  --accent-strong: #5fc4ff;
  --accent-glow: rgba(95, 196, 255, 0.55);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- background texture ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 10%, transparent 75%);
}

/* ---------- perimeter current ---------- */

.edge-current {
  position: fixed;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
}

.edge-current__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
}

.edge-current__bar {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent-strong) 45%, var(--accent) 50%, var(--accent-strong) 55%, transparent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  opacity: 0.85;
}

.edge-current__bar--top,
.edge-current__bar--bottom {
  height: 2px;
  width: 18%;
  top: -1px;
}

.edge-current__bar--bottom { top: auto; bottom: -1px; }

.edge-current__bar--left,
.edge-current__bar--right {
  width: 2px;
  height: 18%;
  left: -1px;
  background: linear-gradient(180deg, transparent, var(--accent-strong) 45%, var(--accent) 50%, var(--accent-strong) 55%, transparent);
}

.edge-current__bar--right { left: auto; right: -1px; }

.edge-current__bar--top     { animation: travel-top 7s linear infinite; }
.edge-current__bar--right   { animation: travel-right 7s linear infinite; animation-delay: -1.75s; }
.edge-current__bar--bottom  { animation: travel-bottom 7s linear infinite; animation-delay: -3.5s; }
.edge-current__bar--left    { animation: travel-left 7s linear infinite; animation-delay: -5.25s; }

@keyframes travel-top {
  from { left: -20%; }
  to   { left: 100%; }
}
@keyframes travel-right {
  from { top: -20%; }
  to   { top: 100%; }
}
@keyframes travel-bottom {
  from { right: -20%; }
  to   { right: 100%; }
}
@keyframes travel-left {
  from { bottom: -20%; }
  to   { bottom: 100%; }
}

/* ---------- stage / content ---------- */

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 6vh;
  gap: 22px;
}

.mark {
  position: relative;
  width: min(440px, 78vw);
  margin-bottom: 6px;
}

.mark__glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0.35;
  filter: blur(10px);
  animation: pulse-glow 4.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.22; transform: scale(0.96); }
  50%      { opacity: 0.42; transform: scale(1.04); }
}

.mark__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 14px rgba(120, 205, 255, 0));
  animation: surge 4.5s ease-in-out infinite;
}

@keyframes surge {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(120, 205, 255, 0.10)); }
  50%      { filter: drop-shadow(0 0 18px rgba(120, 205, 255, 0.30)); }
}

.mark__sparks {
  position: absolute;
  inset: -25% -10%;
  width: 120%;
  height: 150%;
  z-index: 1;
  overflow: visible;
}

.spark {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--accent-glow));
  opacity: 0;
}

.spark--1 { animation: flicker 6s ease-in-out infinite; animation-delay: 0.2s; }
.spark--2 { animation: flicker 6s ease-in-out infinite; animation-delay: 1.8s; }
.spark--3 { animation: flicker 6s ease-in-out infinite; animation-delay: 3.4s; }
.spark--4 { animation: flicker 6s ease-in-out infinite; animation-delay: 4.6s; }

@keyframes flicker {
  0%, 92%, 100% { opacity: 0; }
  93%  { opacity: 0.9; }
  94%  { opacity: 0.15; }
  95%  { opacity: 0.75; }
  97%  { opacity: 0; }
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.lede {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- form ---------- */

.signup {
  width: 100%;
  max-width: 420px;
  margin-top: 6px;
}

.signup__hp {
  position: absolute;
  left: -9999px;
}

.signup__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup__row {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.signup__row:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--accent-strong), 0 0 18px var(--accent-glow);
}

.signup__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 8px 10px 12px;
}

.signup__input::placeholder {
  color: var(--muted-soft);
}

.signup__button {
  position: relative;
  flex-shrink: 0;
  background: var(--ink);
  color: #04050a;
  border: none;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.signup__button:hover {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.signup__button:active {
  transform: scale(0.97);
}

.signup__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup__status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.signup__status[data-state="success"] {
  color: var(--accent);
}

.signup__status[data-state="error"] {
  color: #ff9a8b;
}

.signup.is-done .signup__row {
  display: none;
}

/* ---------- socials ---------- */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 4px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.social:hover {
  color: var(--accent);
}

.social__icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0 22px;
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.privacy {
  color: var(--muted-soft);
}

.privacy summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.privacy summary:hover {
  color: var(--accent);
}

.privacy__body {
  max-width: 480px;
  margin: 10px auto 0;
  padding: 0 6vw;
  text-align: left;
}

.privacy__body p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.privacy__body p:last-child {
  margin-bottom: 0;
}

/* ---------- cookie consent ---------- */

.consent[hidden] {
  display: none;
}

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 6vw;
  background: rgba(11, 13, 17, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.consent__text {
  margin: 0;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.consent__link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent__button {
  flex-shrink: 0;
  background: var(--ink);
  color: #04050a;
  border: none;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.consent__button:hover {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  .edge-current__bar,
  .mark__glow,
  .mark__logo,
  .spark {
    animation: none !important;
  }
  .mark__glow { opacity: 0.28; }
  .spark { opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  .signup__row {
    flex-direction: column;
  }
  .signup__button {
    padding: 12px;
  }
}
