*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --gold: #D4AF37;
  --violet: #A855F7;
  --text: #fff;
  --dim: rgba(255, 255, 255, 0.4);
}

html {
  height: 100%;
}

body {
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Aurora glow */
.aurora {
  position: fixed;
  bottom: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 60vh;
  background:
    radial-gradient(ellipse 50% 60% at 30% 60%, rgba(168, 85, 247, 0.18), transparent),
    radial-gradient(ellipse 40% 50% at 70% 70%, rgba(212, 175, 55, 0.1), transparent);
  filter: blur(60px);
  pointer-events: none;
  animation: auroraShift 6s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { opacity: 0.7; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* Grid */
.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    calc(5rem + env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  gap: clamp(1.25rem, 4vw, 1.75rem);
}

.logo {
  width: min(240px, 72vw);
  max-width: 100%;
  height: auto;
}

/* Status */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: clamp(0.75rem, 3.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 0.5rem;
}

.status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.85); }
}

/* Copy block */
.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1rem);
  width: 100%;
  max-width: 36rem;
  padding: 0 0.5rem;
}

/* Title */
.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  width: 100%;
}

.title__line {
  font-size: clamp(1.35rem, 4.8vw, 2.5rem);
  line-height: 1.2;
  text-wrap: balance;
}

.title__line:last-child {
  font-weight: 600;
  color: var(--text);
}

.title__highlight {
  background: linear-gradient(135deg, #F5D060, var(--gold), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.tagline {
  font-size: clamp(0.72rem, 3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--dim);
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}

/* Tide bar */
.tide-bar {
  width: min(280px, 80vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.tide-bar__fill {
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
  animation: tide 3s ease-in-out infinite alternate;
}

@keyframes tide {
  from { width: 15%; margin-left: 0; }
  to   { width: 85%; margin-left: 15%; }
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding:
    1rem
    max(1.25rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer p {
  font-size: clamp(0.7rem, 2.8vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* Small phones */
@media (max-width: 380px) {
  .main {
    gap: 1.1rem;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .logo {
    width: min(200px, 80vw);
  }

  .status {
    letter-spacing: 0.08em;
  }

  .title__line {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 0.68rem;
    letter-spacing: -0.01em;
  }
}

/* Short screens (landscape / small height) */
@media (max-height: 600px) {
  .main {
    justify-content: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top));
    gap: 1rem;
  }

  .logo {
    width: min(160px, 50vw);
  }

  .title__line {
    font-size: clamp(1.1rem, 4vw, 1.75rem);
  }

  .tagline {
    font-size: clamp(0.8rem, 2.8vw, 1rem);
  }
}
