/* Lyroxa brand kit colours. Montserrat for text; the Cinzel lettering lives in the logo files. */
:root {
  --navy: #0E2240;
  --navy-deep: #081629;
  --light-blue: #5BA4D9;
  --orange: #F28C28;
  --orange-hover: #FF9D3D;
  --white: #FFFFFF;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Coming-soon page: one screen, centred, with the logo's waves along the bottom */
.soon {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 200px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 600px at 50% 38%, rgba(91, 164, 217, 0.16), transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.soon-glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.1), transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}

.soon-content {
  max-width: 640px;
  text-align: center;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.soon-logo {
  margin: 0 auto 44px;
  width: min(420px, 82vw);
}

.soon-logo img {
  width: 100%;
}

.soon-badge {
  display: inline-block;
  margin: 0 0 28px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.soon-title {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.soon-text {
  margin: 0 auto;
  max-width: 34em;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.soon-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

/* Waves */
.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 140px;
  z-index: -1;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  overflow: visible;
}

.wave path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.wave-white {
  top: -22px;
  opacity: 0.85;
  animation: drift 26s linear infinite;
}

.wave-white path {
  stroke: var(--white);
}

.wave-blue {
  top: 0;
  animation: drift 20s linear infinite reverse;
}

.wave-blue path {
  stroke: var(--light-blue);
}

.wave-orange {
  top: 22px;
  animation: drift 32s linear infinite;
}

.wave-orange path {
  stroke: var(--orange);
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* 404 page */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(91, 164, 217, 0.18), transparent 70%),
    var(--navy-deep);
}

.error-page img {
  width: 180px;
  margin-bottom: 40px;
}

.error-page h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.error-page p {
  margin: 0 0 32px;
}

.button {
  display: inline-flex;
  padding: 0.9em 1.5em;
  border-radius: 12px;
  font: 700 0.95rem/1.2 var(--font);
  text-decoration: none;
}

.button-accent {
  background: var(--orange);
  color: var(--navy-deep);
}

.button-accent:hover {
  background: var(--orange-hover);
}

@media (max-width: 560px) {
  .soon {
    padding-bottom: 170px;
  }

  .waves {
    height: 110px;
    bottom: 48px;
  }

  .wave {
    width: 400%;
  }
}

/* Short laptop screens: keep everything on one screen */
@media (max-height: 760px) and (min-width: 561px) {
  .soon {
    padding-top: 40px;
    padding-bottom: 170px;
  }

  .soon-logo {
    width: min(340px, 82vw);
    margin-bottom: 28px;
  }

  .soon-badge {
    margin-bottom: 20px;
  }

  .waves {
    height: 110px;
    bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soon-content,
  .soon-glow,
  .wave {
    animation: none;
  }
}
