:root {
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --bg1: #fefefe;
  --bg2: #f3f4f6;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --text: #1e293b;
  --muted: #6b7280;
  --radius: 18px;
  --safe-padding: max(16px, env(safe-area-inset-bottom));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow: hidden;
  position: relative;
  padding: 16px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  animation: float 12s ease-in-out infinite;
}
.bubble1 { width: 200px; height: 200px; top: 10%; left: 5%; animation-delay: 0s; }
.bubble2 { width: 150px; height: 150px; bottom: 15%; right: 10%; animation-delay: 4s; }
.bubble3 { width: 100px; height: 100px; top: 50%; right: 30%; animation-delay: 8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.chat-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px var(--shadow);
  text-align: center;
  position: relative;
  animation: fadeUp 0.8s ease forwards;
  transform: translateY(40px);
  opacity: 0;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.chat-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--radius);
  background: linear-gradient(45deg, #a78bfa, #60a5fa, var(--accent));
  background-size: 300% 300%;
  filter: blur(12px);
  animation: glow 8s linear infinite;
  opacity: 0.08;
  z-index: -1;
}

@keyframes glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.chat-card h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.chat-card h1 i {
  color: var(--accent);
  animation: softPulse 2.5s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

.chat-card p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.6;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.button-group button {
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

#startBtn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
#startBtn:active {
  background: var(--accent-hover);
  transform: scale(0.97);
}

footer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: var(--safe-padding);
}
