/* Coral Shed — responsive, static splash page.
   The background and approved transparent logo are independent layers. */

:root {
  color-scheme: dark;
  --page-bg: #050817;
  --text: #fffaf7;
  --accent: #ff8a52;
  --content-width: 72rem;
  --page-gutter: clamp(1rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.splash {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: max(2rem, env(safe-area-inset-top)) var(--page-gutter)
           max(1.25rem, env(safe-area-inset-bottom));
  background: var(--page-bg);
}

.splash__background,
.splash__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.splash__background {
  background-image: url("assets/images/reef-frag-bg2.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.025); /* avoids hairline edges on large displays */
}

/* Keep the centre calm enough for the logo while letting the frags glow at the edges. */
.splash__shade {
  background:
          radial-gradient(ellipse 102% 116% at 50% 50%, rgba(3, 7, 22, 0.00) 0%, rgba(3, 7, 22, 0.36) 42%, rgba(3, 7, 22, 0.54) 72%),
          linear-gradient(180deg, rgba(2, 5, 17, 0.36), rgba(2, 5, 17, 0.33) 48%, rgba(2, 5, 17, 0.55))
}

.splash__content {
  width: min(100%, var(--content-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.8rem);
  padding-block: 1rem;
  transform: translateY(-1.5vh);
}

.brand-logo {
  display: block;
  width: clamp(17.5rem, 43vw, 46rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0, 0, 0, .32));
}

/* Frosted-glass card that lifts the logo and status above the reef image. */
.brand-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2rem);
  width: fit-content;
  max-width: 100%;
  padding: clamp(1.5rem, 4.5vw, 3.75rem) clamp(1.25rem, 4.5vw, 4rem);
  border: 1px solid rgba(214, 224, 255, .48);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background:
          linear-gradient(180deg, rgb(90 90 90 / 72%), rgb(0 0 0 / 48%));
  -webkit-backdrop-filter: blur(2px) saturate(150%);
  backdrop-filter: blur(2px) saturate(150%);
  /*box-shadow:
          0 1.5rem 4rem rgba(0, 0, 0, .32),
          0 0 0 1px rgba(125, 153, 255, .12) inset,
          0 0 2.5rem rgba(67, 92, 255, .12);*/
}


.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2.6vw, 2.25rem);
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: clamp(.9rem, 2.15vw, 1.65rem);
  font-weight: 400;
  letter-spacing: clamp(.22em, 1.1vw, .48em);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

.coming-soon > span:nth-child(2) { white-space: nowrap; }

.coming-soon__rule {
  display: block;
  width: clamp(1.75rem, 7vw, 5.5rem);
  height: 1px;
  flex: 0 1 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 247, .9));
}

.coming-soon__rule:last-child {
  background: linear-gradient(90deg, rgba(255, 250, 247, .9), transparent);
}

.splash__footer {
  align-self: end;
  margin: 1rem 0 0;
  color: rgba(255, 250, 247, .7);
  font-size: clamp(.7rem, 1.2vw, .85rem);
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

/* Tablets and portrait devices */
@media (max-width: 700px) {
  .splash {
    padding-inline: clamp(1rem, 5vw, 2rem);
  }

  .splash__background {
    background-position: 45% center;
  }

  .splash__shade {
    background:
            radial-gradient(
                    ellipse at center,
                    rgba(3, 7, 22, .20) 0%,
                    rgba(3, 7, 22, .30) 58%,
                    rgba(3, 7, 22, .22) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(2, 5, 17, .12),
                    rgba(2, 5, 17, .20) 48%,
                    rgba(2, 5, 17, .35)
            );
  }

  .splash__content {
    gap: clamp(1.4rem, 4vh, 2.2rem);
    transform: translateY(-1vh);
  }

  .brand-logo { width: min(88vw, 35rem); }
  .coming-soon { letter-spacing: clamp(.14em, 2.3vw, .3em); }
  .coming-soon__rule { width: clamp(1.1rem, 6vw, 2.5rem); }
}

/* Short screens: reduce vertical footprint so the full lockup stays visible. */
@media (max-height: 620px) and (min-width: 701px) {
  .splash { padding-block: 1rem; }
  .splash__content { gap: 1rem; transform: none; }
  .brand-logo { width: min(48vw, 29rem); max-height: 65svh; }
  .coming-soon { font-size: clamp(.85rem, 2.5vh, 1.2rem); }
  .splash__footer { margin-top: .5rem; }
}

@media (max-width: 380px) {
  .brand-logo { width: 94vw; }
  .coming-soon { gap: .55rem; font-size: .8rem; letter-spacing: .12em; }
  .coming-soon__rule { width: 1rem; }
  .splash__footer { max-width: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
