/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #04060e;
  --surface:   rgba(255,255,255,.04);
  --border:    rgba(255,255,255,.08);
  --text:      #e8e4d9;
  --muted:     rgba(232,228,217,.45);
  --accent:    #f5a733;
  --accent2:   #ff6b3d;
  --blue:      #5ab3f7;
  --green:     #62e8a0;
  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== STARFIELD CANVAS ===== */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== NEBULA BLOBS ===== */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(245,167,51,.09) 0%, transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(90,179,247,.08) 0%, transparent 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px,40px) scale(1.08); } }

/* ===== LAYOUT ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}

/* ===== HEADER / LOGO ===== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeUp .8s ease both;
}

.logo-mark {
  position: relative;
  width: 80px;
  height: 80px;
}

.arc-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  transform: translate(-50%,-50%);
  animation: spin linear infinite;
}
.ring-outer  { width: 80px; height: 80px; animation-duration: 20s; border-color: rgba(245,167,51,.3); }
.ring-outer::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  top: -3.5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent);
}
.ring-mid    { width: 56px; height: 56px; animation-duration: 13s; animation-direction: reverse; border-color: rgba(90,179,247,.3); }
.ring-mid::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  top: -2.5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--blue);
}
.ring-inner  { width: 32px; height: 32px; animation-duration: 8s; border-color: rgba(98,232,160,.3); }
.ring-inner::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 5px var(--green);
}

.star-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 14px; height: 14px;
  background: radial-gradient(circle at 40% 40%, #ffe580, var(--accent) 60%, var(--accent2));
  border-radius: 50%;
  box-shadow: 0 0 16px 4px rgba(245,167,51,.6), 0 0 40px 10px rgba(245,167,51,.2);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes corePulse { 0%,100%{ box-shadow: 0 0 16px 4px rgba(245,167,51,.6), 0 0 40px 10px rgba(245,167,51,.2); } 50%{ box-shadow: 0 0 22px 8px rgba(245,167,51,.8), 0 0 60px 20px rgba(245,167,51,.3); } }

.logo-text {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .45em;
  color: rgba(232,228,217,.6);
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  animation: fadeUp .8s .15s ease both;
  opacity: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.headline {
  font-family: var(--font-head);
  font-size: clamp(44px, 9vw, 82px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-1 {
  background: linear-gradient(135deg, #fff 20%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.line-2 {
  color: rgba(232,228,217,.55);
}

.sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
}

/* ===== PROGRESS ===== */
.progress-section {
  width: 100%;
  max-width: 420px;
  animation: fadeUp .8s .3s ease both;
  opacity: 0;
}

.progress-track {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: visible;
  margin-bottom: .75rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 2.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px 3px rgba(255,107,61,.7);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pct-text {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
}

.pct-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ===== STATUS GRID ===== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
  animation: fadeUp .8s .45s ease both;
  opacity: 0;
}

.status-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeUp .6s var(--delay, 0s) ease both;
  opacity: 0;
  transition: border-color .2s, background .2s;
}
.status-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-bottom: 2px;
}
.status-dot.active  { background: var(--green); box-shadow: 0 0 8px var(--green); animation: dotPulse 2s ease-in-out infinite; }
.status-dot.pending { background: rgba(255,255,255,.2); }

@keyframes dotPulse { 0%,100%{ box-shadow: 0 0 5px var(--green); } 50%{ box-shadow: 0 0 12px var(--green); } }

.status-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  animation: fadeUp .8s .6s ease both;
  opacity: 0;
}

.emoji-row {
  font-size: 22px;
  letter-spacing: .05em;
}

.sign-off {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
}
.sign-off strong {
  color: var(--text);
  font-weight: 500;
}

.fine {
  font-size: 11px;
  color: rgba(232,228,217,.25);
  letter-spacing: .06em;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .container { padding: 3rem 1.25rem 2.5rem; gap: 2.5rem; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .sub { font-size: 14px; }
}
