* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
}


.container {
  display: flex;
  justify-content: center;
  padding-top: 120px;   /* visual centering */
}


.card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 42px;
  width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow:
    0 0 30px rgba(99, 102, 241, 0.25),
    0 0 60px rgba(56, 189, 248, 0.15);
  text-align: center;
}


#header {
  margin-bottom: 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e0e7ff;
}


.subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 30px;
}


input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  outline: none;
  background: rgba(2, 6, 23, 0.9);
  color: #e5e7eb;
  transition: all 0.25s ease;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  border-color: #38bdf8;
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.35),
    0 0 25px rgba(56, 189, 248, 0.4);
}

/* ===== STATUS ===== */
.status {
  margin-top: 20px;
  font-size: 14px;
  text-align: left;
}

.status p {
  margin: 6px 0;
}

#typingStatus {
  color: #facc15;
}

#apiStatus {
  color: #94a3b8;
}


.scroll-demo {
  margin-top: 300px;
  padding: 100px 20px;
  min-height: 100vh;   
  text-align: center;
  color: #e0e7ff;
}

.scroll-demo h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.scroll-demo p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.6;
}

.counter {
  font-size: 22px;
  font-weight: bold;
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}


.copyright {
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
  color: #94a3b8;
}

.copyright a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.copyright a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}



