/* -------------------------------------------------- */
/* RivalNerve — Coming Soon                            */
/* Premium, minimal, restrained.                       */
/* -------------------------------------------------- */

:root {
  --color-bg: #fbfbfa;
  --color-text: #111111;
  --color-muted: #4a4a4a;

  --font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --logo-size: 128px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

/* -------------------------------------------------- */
/* Logo                                                */
/* -------------------------------------------------- */
/*
  The entrance (opacity/scale) and the rotation (rotateY) are
  split across two elements so neither animation has to share
  the `transform` property with the other:

  .logo-wrap  -> fade + scale entrance
  .logo (img) -> single 360deg Y-axis rotation, in 3D space
                 provided by perspective on the wrapper
*/

.logo-wrap {
  margin-bottom: 40px;
  perspective: 900px;

  opacity: 0;
  transform: scale(0.92);
  animation: logo-entrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo {
  display: block;
  width: var(--logo-size);
  height: auto;

  transform-style: preserve-3d;
  backface-visibility: hidden;

  animation: logo-rotate-y 3s 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1 forwards;
}

@keyframes logo-entrance {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-rotate-y {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* -------------------------------------------------- */
/* Text                                                */
/* -------------------------------------------------- */
/* Rotation ends at 0.9s + 3s = 3.9s. Text follows after. */

.brand {
  margin: 0 0 16px 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;

  opacity: 0;
  animation: fade-in 0.9s ease-out 4.1s forwards;
}

.status {
  margin: 0 0 20px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-muted);
  text-transform: uppercase;

  opacity: 0;
  animation: status-in 0.9s ease-out 4.4s forwards;
}

@keyframes status-in {
  from {
    opacity: 0;
    letter-spacing: 0.5em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.28em;
  }
}

.description {
  margin: 0;
  max-width: 440px;
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.6;
  color: var(--color-muted);

  opacity: 0;
  animation: fade-in 1s ease-out 4.7s forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------- */
/* Responsive                                          */
/* -------------------------------------------------- */

@media (max-width: 480px) {
  :root {
    --logo-size: 96px;
  }

  .page {
    padding: 20px;
  }

  .content {
    max-width: 100%;
  }
}

/* -------------------------------------------------- */
/* Reduced motion                                      */
/* -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .logo,
  .brand,
  .status,
  .description {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    letter-spacing: normal !important;
  }

  .status {
    letter-spacing: 0.28em !important;
  }
}