@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --purple: #6d35d9;
  --purple-dark: #24104f;
  --red: #ed3150;
  --white: #ffffff;
  --muted: rgba(255,255,255,.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--purple-dark);
  color: var(--white);
  overflow: hidden;
}

.loading-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(109,53,217,.45), transparent 34%),
    linear-gradient(135deg, #180a37 0%, #32116a 48%, #180a37 100%);
}

.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url('assets/logo.png');
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: min(520px, 76vw) auto;
  opacity: .055;
  filter: blur(1px);
}

.loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to bottom, rgba(20,8,45,.15), rgba(20,8,45,.78));
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .34;
  z-index: -1;
  animation: float 5s ease-in-out infinite alternate;
}

.glow-one {
  width: 220px;
  height: 220px;
  background: var(--purple);
  top: 10%;
  left: -70px;
}

.glow-two {
  width: 190px;
  height: 190px;
  background: var(--red);
  right: -55px;
  bottom: 8%;
  animation-delay: -2s;
}

.loader-content {
  width: min(680px, 92vw);
  text-align: center;
  padding: 30px 20px 36px;
  animation: enter .8s cubic-bezier(.2,.8,.2,1) both;
}

.logo-background {
  width: min(390px, 72vw);
  height: 155px;
  margin: 0 auto 6px;
  background: url('assets/logo.png') center / contain no-repeat;
  filter: drop-shadow(0 16px 35px rgba(0,0,0,.28));
  animation: logoPulse 2.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .28em;
  font-weight: 800;
  color: rgba(255,255,255,.65);
}

h1 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(31px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 span { color: #ff5570; }

.loading-text {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: clamp(14px, 2.3vw, 17px);
}

.loader {
  width: min(340px, 78vw);
  height: 5px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}

.loader-bar {
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--red));
  animation: loading 2.7s cubic-bezier(.4,0,.2,1) forwards;
}

.opening {
  margin: 0;
  min-height: 22px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .03em;
}

.dots::after {
  content: '';
  display: inline-block;
  width: 18px;
  text-align: left;
  animation: dots 1.1s steps(4, end) infinite;
}

.continue-link {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s ease, transform .2s ease;
}

.continue-link:hover { opacity: 1; transform: translateY(-1px); }

@keyframes loading {
  from { width: 8%; }
  to { width: 100%; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(.985); }
  50% { transform: scale(1.015); }
}

@keyframes float {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(18px,-14px,0) scale(1.08); }
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75%, 100% { content: '...'; }
}

@media (max-width: 520px) {
  .loader-content { padding: 20px 14px 30px; }
  .logo-background { height: 125px; margin-bottom: 8px; }
  .loading-screen::before { background-size: 105vw auto; background-position: center 27%; }
  .loading-text { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.social-links { display:flex; gap:12px; margin-top:16px; align-items:center; }
.social-links a { width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#5b21b6; color:#fff; text-decoration:none; transition:transform .25s ease, background .25s ease; }
.social-links a:hover { transform:translateY(-3px); background:#e11d48; }
.footer-contact-extra { display:flex; flex-direction:column; gap:8px; }
.footer-contact-extra a { color:inherit; text-decoration:none; }
.footer-contact-extra a:hover { text-decoration:underline; }
.designer-credit { font-weight:700; }
@media (max-width:700px){ .footer-contact-extra { margin-top:18px; } }
