@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --text: #fff;
  --muted: rgba(255,255,255,.72);
  --soft: rgba(255,255,255,.88);
  --purple: #6e4cff;
  --blue: #2f7cff;
  --line: rgba(255,255,255,.16);
  --card: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(110,76,255,.35), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(47,124,255,.25), transparent 26%),
    linear-gradient(145deg, #080915 0%, #17102a 55%, #0b1328 100%);
  font-family: Poppins, system-ui, sans-serif;
  color: var(--text);
}

.app {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-frame { width: min(100%, 430px); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 14px 40px rgba(47,124,255,.25);
  overflow: hidden;
  padding: 7px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark span {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.brand-small, .brand-title {
  margin: 0;
  line-height: 1.1;
}

.brand-small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #05050a;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px var(--line);
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #05050a;
}

.play-overlay, .question-card, .loading {
  position: absolute;
  inset: 0;
}

.play-overlay {
  border: 0;
  color: var(--text);
  background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.12));
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
}

.play-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 4px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-size: 28px;
}

.question-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(to top, rgba(5,5,10,.94), rgba(5,5,10,.66) 52%, rgba(5,5,10,.18));
  animation: fadeIn 260ms ease both;
}

.question {
  white-space: pre-line;
  margin: 0;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.03em;
}

.options { display: grid; gap: 10px; }

.option-btn, .final-btn {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}

.option-btn:hover, .final-btn:hover { background: rgba(255,255,255,.16); }

.final-screen {
  text-align: left;
}

.final-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

.final-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 9vw, 46px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 800;
}

.final-body {
  margin: 0;
  max-width: 31ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.final-body strong {
  color: #fff;
  font-weight: 700;
}

.final-btn {
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(47,124,255,.28);
}

.loading {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(0,0,0,.55);
}

.loading span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: spin 850ms linear infinite;
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.secondary-btn {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
  color: var(--muted);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.missing {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hidden { display: none !important; }

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

@keyframes spin { to { transform: rotate(360deg); } }
