/* ============================================================
   UBAC Business Finance — Coming Soon
   Colours: Purple #5e17eb · Deep navy #1c2751 · White #ffffff
   ============================================================ */

:root {
  --purple: #5e17eb;
  --navy: #1c2751;
  --navy-deep: #131b3a;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: var(--navy-deep);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background-color: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Slow ambient glows — CSS only, loop forever */

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  will-change: transform;
}

.glow-a {
  width: 60vmax;
  height: 60vmax;
  top: -30vmax;
  left: -15vmax;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.30), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glow-b {
  width: 55vmax;
  height: 55vmax;
  bottom: -30vmax;
  right: -18vmax;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.22), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vmax, 6vmax) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-7vmax, -5vmax) scale(1); }
}

/* Gentle one-time settle on load */

.hero > * {
  animation: rise 0.9s ease-out backwards;
}

.hero .rule        { animation-delay: 0.15s; }
.hero h1           { animation-delay: 0.25s; }
.hero .intro       { animation-delay: 0.35s; }
.hero .reassurance { animation-delay: 0.45s; }
.hero .button      { animation-delay: 0.55s; }

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

@media (prefers-reduced-motion: reduce) {
  .glow,
  .hero > * {
    animation: none;
  }
}

/* Fixed full-viewport backdrop: gradient wash + subtle diagonal detail
   echoing the logo mark. Lives on a fixed layer (not the body background)
   so it stays consistent however tall the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      115deg,
      transparent 0 42%,
      rgba(255, 255, 255, 0.022) 42% 46%,
      transparent 46% 54%,
      rgba(255, 255, 255, 0.022) 54% 58%,
      transparent 58%
    ),
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(94, 23, 235, 0.38), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(94, 23, 235, 0.28), transparent 70%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 55%, #251a52 100%);
}

/* ---------- Hero ---------- */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.hero {
  position: relative;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .logo {
  width: 300px;
  max-width: 78%;
  height: auto;
  margin-bottom: 64px;
}

.hero .rule {
  width: 56px;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, rgba(94, 23, 235, 0), #8b5cf6, rgba(94, 23, 235, 0));
  margin-bottom: 40px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero .intro {
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  text-wrap: pretty;
  margin-bottom: 14px;
}

.hero .reassurance {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 44px;
}

/* ---------- CTA ---------- */

.button {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  background: #f2effc;
}

.button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .company {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

footer .address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 60ch;
  margin: 0 auto;
}

footer .legal {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer .legal p {
  font-size: 11px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 auto 14px;
}

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

footer .legal a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .legal a:hover,
footer .legal a:focus-visible {
  color: rgba(255, 255, 255, 0.75);
}

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

@media (max-width: 640px) {
  main {
    padding: 48px 20px;
  }

  .hero .logo {
    width: 230px;
    margin-bottom: 48px;
  }

  .hero .rule {
    margin-bottom: 32px;
  }

  .button {
    width: 100%;
    max-width: 340px;
    padding: 17px 32px;
  }

  footer {
    padding: 28px 20px 36px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero .logo {
    width: 190px;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 38px;
  }
}

/* Short viewports (landscape phones) — tighten vertical rhythm */
@media (max-height: 560px) {
  main {
    padding: 32px 24px;
  }

  .hero .logo {
    width: 180px;
    margin-bottom: 28px;
  }

  .hero .rule {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: 16px;
  }

  .hero .reassurance {
    margin-bottom: 24px;
  }

  footer {
    padding: 18px 24px 22px;
  }
}

/* Large desktops — let the composition breathe */
@media (min-width: 1800px) {
  .hero {
    max-width: 720px;
  }

  .hero .logo {
    width: 340px;
  }
}
