*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06060c;
  --c: #00d4ff;
  --c2: #0088ff;
  --w: #eef3ff;
  --m: #6b7390;
  --g: rgba(255,255,255,0.045);
  --b: rgba(0,180,255,0.22);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--w);
  font-family: 'Inter', system-ui, sans-serif;
}

/* canvas full */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* STAGE */
.stage {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* LOGO */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  animation: floatIn 1s ease-out both;
}

.logo-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(0,180,255,0.5));
  animation: logoPulse 4s ease-in-out infinite;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--w);
}

/* TITLE – full width feel */
.title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100vw;
  animation: floatIn 1s ease-out 0.15s both;
}

.title .t1,
.title .t2 {
  display: block;
  font-size: clamp(2.8rem, 11vw, 6.5rem);
}

.title .t2 {
  background: linear-gradient(105deg, #00d4ff 0%, #7c5cff 45%, #ff2d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(0,180,255,0.25));
}

.tag {
  font-size: 0.8rem;
  color: var(--m);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-bottom: 2.4rem;
  max-width: 480px;
  line-height: 1.45;
  animation: floatIn 1s ease-out 0.25s both;
}

/* FORM */
.form {
  width: min(420px, 92vw);
  animation: floatIn 1s ease-out 0.35s both;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

/* Gemini-style multicolor animated border */
.field {
  position: relative;
  border-radius: 13px;
  padding: 1.5px;
  background: linear-gradient(
    120deg,
    #00d4ff,
    #7c5cff,
    #ff2d95,
    #00ff9d,
    #00d4ff
  );
  background-size: 300% 300%;
  animation: geminiShift 6s ease infinite;
}

.field::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  padding: 1.5px;
  background: linear-gradient(
    120deg,
    #00d4ff,
    #7c5cff,
    #ff2d95,
    #00ff9d,
    #00d4ff
  );
  background-size: 300% 300%;
  animation: geminiShift 6s ease infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
}

.field:focus-within {
  animation-duration: 2.5s;
}

.field:focus-within::before {
  animation-duration: 2.5s;
  opacity: 1;
  filter: brightness(1.2);
}

.form input {
  width: 100%;
  background: #0a0a12;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: var(--w);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  position: relative;
  z-index: 1;
}

.form input::placeholder { color: var(--m); }

.cta {
  width: 100%;
  background: linear-gradient(135deg, #00d4ff, #0088ff);
  color: #05070e;
  border: none;
  border-radius: 12px;
  padding: 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,160,255,0.35);
  filter: brightness(1.07);
}

.cta:active { transform: translateY(0); }

/* ACK */
.ack {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: floatIn 0.5s ease-out both;
}

.ack.visible { display: flex; }

.ack-pulse {
  width: 14px;
  height: 14px;
  background: var(--c);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--c);
  animation: beat 1.4s ease-in-out infinite;
}

.ack p {
  font-size: 1rem;
  color: var(--w);
}

.ack span {
  color: var(--c);
  font-weight: 600;
}

.ack-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--m);
  font-weight: 400;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

/* FOOTER BAR */
.bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.72rem;
}

.qibm {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.heart {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core {
  width: 7px;
  height: 7px;
  background: #00ff9d;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff9d;
  z-index: 2;
  animation: beat 1.3s ease-in-out infinite;
}

.ping {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #00ff9d;
  border-radius: 50%;
  opacity: 0.6;
  animation: ping 1.3s ease-out infinite;
}

.q-label {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #00ff9d;
  font-size: 0.7rem;
}

.status {
  color: var(--m);
  letter-spacing: 0.06em;
}

/* ANIMS */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,180,255,0.45)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 22px rgba(0,180,255,0.75)); transform: scale(1.04); }
}

@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  30%      { transform: scale(1.25); opacity: 0.85; }
  50%      { transform: scale(0.95); }
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

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

/* RESPONSIVE */
@media (max-width: 600px) {
  .logo-icon { width: 40px; height: 40px; }
  .logo-text { font-size: 1.3rem; }
  .title .t1, .title .t2 { font-size: clamp(2.3rem, 13vw, 3.4rem); }
  .tag { margin-bottom: 1.8rem; }
}

@media (max-height: 680px) {
  .logo-wrap { margin-bottom: 1.3rem; }
  .title .t1, .title .t2 { font-size: clamp(2rem, 9vw, 3.8rem); }
  .tag { margin-bottom: 1.4rem; font-size: 0.75rem; }
  .form input { padding: 0.75rem 1rem; }
  .cta { padding: 0.8rem; }
}
