/* ESIYNAB (PTY) LTD — under-construction holding page */

:root {
  --bg: #060b12;
  --ink: #e9f2f2;
  --muted: #93a7ad;
  --teal: #35b8b0;
  --gold: #d2a648;
  --link: #5ecfc7;
  --focus: #5ecfc7;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../images/esiynab-background.webp");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}

/* Legibility scrim: strong on the text side, clear over the portrait */
.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    100deg,
    rgba(4, 9, 15, 0.94) 0%,
    rgba(4, 9, 15, 0.82) 38%,
    rgba(4, 9, 15, 0.35) 62%,
    rgba(4, 9, 15, 0.05) 100%
  );
  padding: clamp(1.25rem, 4vw, 4rem);
}

.content {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.logo {
  width: min(100%, 24rem);
  height: auto;
  margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.company {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 1.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.status {
  margin: 0.55rem 0 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(0.68rem, 0.62rem + 0.3vw, 0.85rem);
}

.status::after {
  content: "";
  display: block;
  width: 6rem;
  height: 2px;
  margin-top: 0.8rem;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 14px rgba(53, 184, 176, 0.55);
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
  letter-spacing: 0.08em;
}

.links {
  margin: clamp(1.2rem, 3vh, 2rem) 0 0;
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.links a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.links a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.sep {
  color: var(--muted);
}

.copyright {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
}

/* Portrait sits mid-frame on narrow screens; centre the content over a full scrim */
@media (max-width: 760px) {
  body {
    background-position: 70% center;
  }
  .page {
    justify-content: center;
    background: linear-gradient(
      180deg,
      rgba(4, 9, 15, 0.9) 0%,
      rgba(4, 9, 15, 0.78) 55%,
      rgba(4, 9, 15, 0.9) 100%
    );
  }
  .content {
    align-items: center;
    text-align: center;
  }
  .status::after {
    margin-inline: auto;
  }
  .links {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .content > * {
    animation: rise 0.7s ease-out both;
  }
  .content > *:nth-child(2) { animation-delay: 0.08s; }
  .content > *:nth-child(3) { animation-delay: 0.16s; }
  .content > *:nth-child(4) { animation-delay: 0.24s; }
  .content > *:nth-child(5) { animation-delay: 0.32s; }
  .content > *:nth-child(6) { animation-delay: 0.4s; }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
