:root {
  --bg:           #0A0A0A;
  --surface:      #161616;
  --text:         #E8EDF8;
  --muted:        #8A95B0;
  --accent:       #4D78FF;
  --accent-dark:  #2D3FE0;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(77,120,255,0.35);
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* ── Glow — purple, subtle ── */
.glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(77,120,255,0.06) 0%, transparent 60%);
}

/* ── Centered wrap ── */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp .5s ease both;
}

/* ── Logo ── */
.logo {
  width: 100px;
  height: 100px;
  border-radius: 0;
  display: block;
  margin: 0 auto 28px;
}

/* ── Headline ── */
h1 {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Card ── */
.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 26px 26px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── Progress bar ── */
.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.05);
  margin: 0 -26px 28px;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* ── Question label ── */
.question {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: left;
  margin-bottom: 14px;
}

/* ── Input ── */
.field {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 18px;
}

.field::placeholder { color: rgba(138,138,154,0.45); }

.field:focus {
  border-color: rgba(77,120,255,0.5);
  box-shadow: 0 0 0 3px rgba(77,120,255,0.08);
}

.field.error { border-color: rgba(239,68,68,0.55); }

/* ── Card footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ── Send button — pill ── */
.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(45,63,224,0.35);
}

.btn-send:hover   { opacity: .88; transform: translateY(-1px); }
.btn-send:active  { transform: translateY(0); }
.btn-send:disabled { opacity: .35; pointer-events: none; }

/* ── Disclaimer ── */
.disclaimer {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.4;
  margin-top: 18px;
}

/* ── Check icon (success) ── */
.check-icon {
  width: 56px;
  height: 56px;
  background: rgba(77,120,255,0.1);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .35s ease forwards; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%, 75%  { transform: translateX(-5px); }
  50%       { transform: translateX(5px); }
}

.shake { animation: shake .3s ease; }
