/* ==========================================================================
   SCIUS KU #16 - Welcome Landing Page
   Exact Match to Design Mockup (Enlarged Hero Proportions)
   Perfect Vertical & Horizontal Centering for Mobile and Desktop
   ========================================================================== */

:root {
  --bg-color: #d9d9d9;
  --text-color: #ffffff;
}

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

html {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-color);
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: transparent;
  color: var(--text-color);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Fullscreen Background Layer (source/hero.png)
   ========================================================================== */
.bg-hero-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  background-color: var(--bg-color);
  background-image: url('source/hero.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.main-content {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.2rem, 5vh, 4.5rem);
  text-align: center;
}

/* ==========================================================================
   Top Section: Logo (source/logo.png)
   ========================================================================== */
.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: clamp(480px, 42vw, 680px);
  width: 90%;
  margin: 0 auto;
}

.badge-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 25px rgba(0, 0, 0, 0.4));
}

.badge-logo.logo-error {
  display: none !important;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fallback-badge {
  background: #333333;
  color: #fff;
  border-radius: 9999px;
  padding: 3rem 5.5rem;
  position: relative;
  border: 4px solid #111;
}

.fallback-star {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 3rem;
  color: #222;
}

.fallback-title {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ku-accent {
  color: #a78bfa;
}

.fallback-sub {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-style: italic;
  color: #fdf2f8;
}

/* ==========================================================================
   Middle Section: WELCOME
   ========================================================================== */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

.welcome-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 1.4vw, 1.6rem);
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.char-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.char-glyph {
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  will-change: font-family;
  transition: opacity 0.15s ease;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 8px 24px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.75),
    0 0 90px rgba(0, 0, 0, 0.5);
}

/* Subtle smooth transition when font morphs */
.char-box.updating .char-glyph {
  animation: glyphChange 0.35s ease-out;
}

@keyframes glyphChange {
  0% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Bottom Section: sciusku16.coM
   ========================================================================== */
.url-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.6rem auto 0 auto;
}

.domain-wrapper {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: #ffffff;
  user-select: none;
  margin: 0 auto;
  padding-bottom: 0.4rem;
}

.domain-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(3px, 0.4vw, 5px);
  background-color: #ffffff;
  border-radius: 9999px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 6px 18px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(255, 255, 255, 0.5);
}

.domain-text {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 6px 20px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 0, 0, 0.7);
}

.domain-m {
  font-family: 'Monoton', cursive;
  font-size: clamp(3.2rem, 7.2vw, 5.8rem);
  font-weight: 400;
  line-height: 0.9;
  margin-left: 0.06em;
  display: inline-block;
  transform: translateY(3px);
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 6px 20px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Mobile Responsive: ~80% Screen Width Calibration
   ========================================================================== */
@media (max-width: 768px) {
  .page-container {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .main-content {
    margin: auto 0;
    gap: clamp(1.8rem, 5vh, 3.4rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* 1. Logo ~80% of mobile screen */
  .logo-wrapper {
    width: 82vw;
    max-width: 85vw;
    margin: 0 auto;
  }

  .badge-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  /* 2. WELCOME ~80% of mobile screen */
  .welcome-container {
    width: 85vw;
    max-width: 88vw;
    justify-content: center;
    align-items: center;
    gap: clamp(2px, 1.4vw, 8px);
    margin: 0 auto;
  }
  
  .char-glyph {
    font-size: clamp(2.8rem, 14.2vw, 5.2rem);
  }
  
  /* 3. sciusku16.coM ~80% proportion */
  .url-section {
    width: 85vw;
    max-width: 88vw;
    justify-content: center;
    margin: 0.6rem auto 0 auto;
  }

  .domain-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    margin: 0 auto;
  }
  
  .domain-text {
    font-size: clamp(1.7rem, 6.8vw, 2.8rem);
  }
  
  .domain-m {
    font-size: clamp(2.3rem, 9.2vw, 3.9rem);
  }
}
