/* ─── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0d1117;
  --bg-mid:      #0f1623;
  --text:        #e8eaf6;
  --text-dim:    #8892a4;
  --accent:      #6e9fff;
  --accent-2:    #9b59ff;
  --accent-3:    #3ce8c5;
  --halo-1:      rgba(110, 159, 255, 0.18);
  --halo-2:      rgba(110, 159, 255, 0.08);
  --halo-3:      rgba(110, 159, 255, 0.03);
  --font:        'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ─── Ambient background orbs ──────────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  width: 600px;
  height: 600px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(110, 159, 255, 0.10) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}

.bg-orb--2 {
  width: 500px;
  height: 500px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(60, 232, 197, 0.07) 0%, transparent 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}

.bg-orb--3 {
  width: 420px;
  height: 420px;
  bottom: 40px;
  right: -60px;
  background: radial-gradient(circle, rgba(155, 89, 255, 0.07) 0%, transparent 70%);
  animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-30px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -25px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-15px, 20px); }
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  padding-bottom: 80px; /* space for footer */
}

/* ─── Icon & halo system ────────────────────────────────────────────────── */
.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
}

/* Halo rings */
.halo {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background-origin: border-box;
  animation: haloSpin 4s linear infinite;
}

.halo--outer {
  width: 140px;
  height: 140px;
  background: 
    linear-gradient(var(--bg) 0 0) padding-box,
    conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent)) border-box;
  animation-duration: 5s;
  opacity: 0.55;
  filter: blur(0.5px);
}

.halo--mid {
  width: 110px;
  height: 110px;
  background: 
    linear-gradient(var(--bg) 0 0) padding-box,
    conic-gradient(from 180deg, var(--accent-3), var(--accent), var(--accent-2), var(--accent-3)) border-box;
  animation-duration: 3.5s;
  animation-direction: reverse;
  opacity: 0.40;
}

.halo--inner {
  width: 84px;
  height: 84px;
  background: 
    linear-gradient(var(--bg) 0 0) padding-box,
    conic-gradient(from 90deg, var(--accent-2), var(--accent-3), var(--accent), var(--accent-2)) border-box;
  animation-duration: 2.5s;
  opacity: 0.35;
}

/* Glow pulse behind the icon */
.icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 159, 255, 0.20) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* Icon circle */
.icon-circle {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow:
    0 0 0 1px rgba(110, 159, 255, 0.15),
    0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Heading ───────────────────────────────────────────────────────────── */
.heading {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  min-height: 1.3em;
}

/* Blinking cursor appended by JS */
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 2px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Subtext ───────────────────────────────────────────────────────────── */
.subtext {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 400;
  min-height: 3.5em;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.footer-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
}

/* ─── Fade-in on load ───────────────────────────────────────────────────── */
.container, .footer {
  animation: fadeIn 0.9s ease both;
}
.footer { animation-delay: 0.3s; }

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