@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --bg: #f5f3ff;
  --surface: #ffffff;
  --ink: #1e1b4b;
  --muted: #6d668b;
  --line: #ddd6fe;
  --success: #16a34a;
  --shadow: 0 20px 50px rgba(91, 33, 182, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  min-height: 100vh;
}

body.dark-stage {
  color: #fff;
  background: #030006;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(124, 58, 237, 0.14);
  background: rgba(245, 243, 255, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.34);
}

.brand-mark.logo {
  background: url("/assets/quizgo-logo.svg") center / cover no-repeat;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: #ede9fe;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.35rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h3 {
  margin: 0 0 8px;
}

.lede {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lucide {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.28);
}

.btn.cyan {
  color: #042f36;
  background: var(--cyan);
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.22);
}

.btn.ghost {
  background: transparent;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.24), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 22%),
    linear-gradient(145deg, #ffffff, #ede9fe);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-demo {
  position: absolute;
  inset: 42px 38px;
  display: flex;
  flex-direction: column;
  border: 12px solid #17132f;
  border-radius: 26px;
  background: #f7f7fb;
  box-shadow: 0 30px 70px rgba(30, 27, 75, 0.2);
  overflow: hidden;
}

.phone-head {
  padding: 16px;
  color: #fff;
  background: #075e54;
  font-weight: 800;
}

.chat {
  display: grid;
  gap: 12px;
  align-content: end;
  flex: 1;
  padding: 18px;
}

.bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 27, 75, 0.08);
}

.bubble.me {
  justify-self: end;
  background: #dcf8c6;
}

.reply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.reply {
  padding: 10px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: #ede9fe;
  text-align: center;
  font-weight: 800;
}

.section {
  padding: 52px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: none;
}

.section-head.split .lede {
  max-width: 440px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(91, 33, 182, 0.08);
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 32px 16px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1.05;
}

.auth-card p {
  color: var(--muted);
}

.auth-card p a {
  color: var(--primary-dark);
  font-weight: 900;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 58, 237, 0.5), transparent 18%),
    radial-gradient(circle at 88% 28%, rgba(6, 182, 212, 0.24), transparent 22%),
    radial-gradient(circle at 35% 92%, rgba(245, 158, 11, 0.13), transparent 24%),
    #030006;
  overflow: hidden;
}

.sidebar::before,
.sidebar::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
}

.sidebar::before {
  top: -80px;
  right: -72px;
  width: 190px;
  height: 190px;
  background: rgba(6, 182, 212, 0.28);
}

.sidebar::after {
  left: -90px;
  bottom: 8%;
  width: 230px;
  height: 230px;
  background: rgba(124, 58, 237, 0.34);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.side-nav .nav-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.12);
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.side-nav .lucide {
  width: 19px;
  height: 19px;
  opacity: 0.9;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.52);
}

.main {
  padding: 26px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ede9fe;
  font-weight: 800;
  font-size: 0.85rem;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: #151033;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  animation: slide-in 0.2s ease;
}

@keyframes slide-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

.stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
  overflow: hidden;
}

.stage::before {
  position: absolute;
  inset: -20%;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, rgba(124, 58, 237, 0.26), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.22), transparent 16%),
    radial-gradient(circle at 52% 82%, rgba(245, 158, 11, 0.12), transparent 18%);
  filter: blur(12px);
  animation: stage-aurora 58s linear infinite;
}

.glow {
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.34;
  will-change: transform, opacity;
}

.glow.one {
  top: -12%;
  left: -8%;
  background: var(--primary);
  animation: drift-one 42s ease-in-out infinite alternate;
}

.glow.two {
  right: -8%;
  bottom: -12%;
  background: var(--cyan);
  animation: drift-two 52s ease-in-out infinite alternate;
}

.glow.three {
  top: 25%;
  right: 10%;
  width: 18vmax;
  height: 18vmax;
  background: var(--amber);
  animation: drift-three 46s ease-in-out infinite alternate;
}

@keyframes stage-aurora {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes drift-one {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(0.98);
    opacity: 0.3;
  }

  100% {
    transform: translate3d(18%, 12%, 0) scale(1.16);
    opacity: 0.55;
  }
}

@keyframes drift-two {
  0% {
    transform: translate3d(5%, -4%, 0) scale(1);
    opacity: 0.28;
  }

  100% {
    transform: translate3d(-20%, -15%, 0) scale(1.12);
    opacity: 0.52;
  }
}

@keyframes drift-three {
  0% {
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0.2;
  }

  100% {
    transform: translate3d(-38%, 30%, 0) scale(1.22);
    opacity: 0.43;
  }
}

@keyframes drift {
  to {
    transform: translate3d(10%, -8%, 0) scale(1.12);
    opacity: 0.52;
  }
}

.light-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--orb-color);
  filter: blur(var(--blur));
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0.72);
  animation: pulse-orb var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

@keyframes pulse-orb {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.72);
  }

  42%,
  58% {
    opacity: var(--alpha);
    transform: translate3d(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)), 0) scale(1);
  }
}

.qr-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  text-align: center;
}

.qr-title {
  margin: 18px 0 8px;
  font-size: clamp(2.1rem, 9vw, 5rem);
}

.qr-subtitle {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
}

.qr-code {
  position: relative;
  display: grid;
  place-items: center;
  width: min(330px, 80vw);
  aspect-ratio: 1;
  margin: 26px auto 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 0 44px rgba(124, 58, 237, 0.65),
    0 0 76px rgba(6, 182, 212, 0.42);
}

.qr-code img {
  width: 100%;
  height: 100%;
}

.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
}

.counter .lucide {
  width: clamp(26px, 6vw, 44px);
  height: clamp(26px, 6vw, 44px);
  color: var(--cyan);
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.62));
}

.latest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 24px;
}

.latest span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.run-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
}

.live-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.live-stage::before {
  position: absolute;
  inset: -20%;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, rgba(124, 58, 237, 0.26), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.22), transparent 16%),
    radial-gradient(circle at 52% 82%, rgba(245, 158, 11, 0.12), transparent 18%);
  filter: blur(12px);
  animation: stage-aurora 58s linear infinite;
}

.live-card,
.winner-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 4, 20, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.live-card {
  padding: clamp(22px, 4vw, 46px);
}

.live-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.live-timer {
  box-shadow: 0 0 34px rgba(244, 63, 94, 0.32);
}

.live-card h1 {
  max-width: 960px;
  margin: 16px auto 28px;
  font-size: clamp(2.2rem, 6.4vw, 5.8rem);
  line-height: 1.05;
  text-align: center;
}

.live-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.live-options article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.live-options strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #07161a;
  background: var(--cyan);
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
}

.live-options span {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 900;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.live-stats article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.live-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.live-stats strong {
  display: block;
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
}

.live-stats .correct strong {
  color: #4ade80;
}

.live-stats .wrong strong {
  color: #fb7185;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.live-actions .btn {
  min-width: 172px;
  min-height: 48px;
  padding-inline: 22px;
}

.winner-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(900px, 100%);
  padding: clamp(34px, 7vw, 78px);
  text-align: center;
  animation: winner-pop 0.55s ease both;
}

.winner-card h1 {
  margin: 0;
  color: #fbbf24;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.95;
  text-shadow:
    0 0 24px rgba(251, 191, 36, 0.6),
    0 0 60px rgba(124, 58, 237, 0.5);
}

.winner-card h2 {
  margin: 4px 0;
  font-size: clamp(2rem, 7vw, 4.5rem);
}

.winner-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
}

.winner-card .winner-contact {
  margin: -2px 0 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  font-weight: 800;
}

.trophy {
  display: grid;
  place-items: center;
  width: clamp(96px, 20vw, 150px);
  aspect-ratio: 1;
  border-radius: 999px;
  color: #3a2600;
  background:
    radial-gradient(circle at 34% 28%, #fff7ad, transparent 22%),
    linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow:
    0 0 36px rgba(251, 191, 36, 0.74),
    0 0 92px rgba(245, 158, 11, 0.4);
  animation: trophy-glow 1.8s ease-in-out infinite alternate;
}

.trophy .lucide {
  width: 58%;
  height: 58%;
  stroke-width: 1.8;
}

.confetti-piece {
  position: fixed;
  top: -20px;
  left: var(--x);
  z-index: 5;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--color);
  animation: confetti-fall var(--duration) linear var(--delay) infinite;
}

@keyframes winner-pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}

@keyframes trophy-glow {
  to {
    transform: translateY(-5px) scale(1.04);
  }
}

@keyframes confetti-fall {
  to {
    transform: translate3d(40px, 110vh, 0) rotate(720deg);
  }
}

.timer {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar {
  display: grid;
  grid-template-columns: 34px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(91, 33, 182, 0.08);
  overflow: hidden;
}

.step-card::after {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  content: "";
  background: rgba(124, 58, 237, 0.1);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 900;
}

.home-band {
  padding: 54px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.24), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.18), transparent 20%),
    #100827;
}

.home-band .eyebrow,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.home-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.use-case-grid span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-align: center;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 14%, rgba(6, 182, 212, 0.12), transparent 22%),
    #fff;
  box-shadow: 0 18px 44px rgba(91, 33, 182, 0.1);
}

.preview-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.3), transparent 24%),
    linear-gradient(145deg, #140b31, #5b21b6);
}

.preview-stat,
.preview-question {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.preview-stat strong {
  display: block;
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
}

.preview-question {
  grid-column: 1 / -1;
}

.mini-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-bars span {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mini-bars span::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  content: "";
  background: rgba(6, 182, 212, 0.42);
}

.mini-bars span {
  z-index: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 24%, rgba(6, 182, 212, 0.28), transparent 24%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 22px 52px rgba(91, 33, 182, 0.24);
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.8);
  background: #090414;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 900;
}

.legal-page {
  padding: 46px 0 58px;
}

.legal-hero {
  padding: 44px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.24), transparent 24%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 22px 52px rgba(91, 33, 182, 0.2);
}

.legal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.legal-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(91, 33, 182, 0.08);
}

.legal-card h2 {
  margin: 20px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.pricing-page {
  padding-bottom: 30px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 46px 0 24px;
}

.pricing-hero h1 {
  max-width: 720px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.02;
}

.pricing-visual {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 18%, rgba(6, 182, 212, 0.26), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.24), transparent 20%),
    linear-gradient(145deg, #120826, #5125b5 58%, #06b6d4);
  box-shadow: 0 28px 70px rgba(91, 33, 182, 0.24);
  overflow: hidden;
}

.pricing-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 82%);
}

.pricing-phone,
.pricing-board {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.pricing-phone {
  top: 34px;
  left: 34px;
  width: min(250px, calc(100% - 76px));
  padding: 16px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
}

.mini-qr {
  display: grid;
  place-items: center;
  width: 145px;
  aspect-ratio: 1;
  margin: 22px auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 24px 24px,
    #fff;
  box-shadow: inset 0 0 0 10px #fff, 0 12px 26px rgba(30, 27, 75, 0.12);
}

.mini-qr img {
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.mini-row,
.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mini-row span,
.leader-row span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-board {
  right: 28px;
  bottom: 32px;
  width: min(270px, calc(100% - 56px));
  padding: 16px;
}

.leader-row strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
}

.leader-row b {
  color: var(--primary-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(91, 33, 182, 0.08);
}

.price-card.featured {
  color: #fff;
  background:
    radial-gradient(circle at 86% 8%, rgba(6, 182, 212, 0.32), transparent 24%),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 58px rgba(91, 33, 182, 0.3);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.price-badge {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ede9fe;
  font-size: 0.78rem;
  font-weight: 900;
}

.price-card.featured .price-badge {
  color: #062a30;
  background: var(--cyan);
}

.price {
  font-family: "Sora", sans-serif;
  font-size: 2.15rem;
}

.price-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
  font-weight: 700;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 900;
}

.about-page {
  display: grid;
  gap: 18px;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  min-height: 420px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(63, 16, 112, 0.94), rgba(124, 58, 237, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.36), transparent 24%),
    radial-gradient(circle at 30% 82%, rgba(245, 158, 11, 0.24), transparent 22%),
    #3b0764;
  box-shadow: 0 22px 56px rgba(91, 33, 182, 0.22);
  overflow: hidden;
}

.about-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.14), transparent 10%),
    radial-gradient(circle at 68% 58%, rgba(255, 255, 255, 0.1), transparent 12%);
  opacity: 0.7;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.04;
}

.about-hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-brand-card {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(24, 10, 56, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.about-brand-art {
  display: grid;
  place-items: center;
  min-height: 205px;
  background:
    radial-gradient(circle at 24% 18%, rgba(6, 182, 212, 0.28), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(124, 58, 237, 0.5), transparent 30%),
    #100827;
}

.about-brand-art img {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 22px 32px rgba(6, 182, 212, 0.24));
}

.about-brand-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  font-weight: 900;
}

.about-brand-foot small {
  color: rgba(255, 255, 255, 0.72);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.about-copy {
  color: var(--muted);
  line-height: 1.8;
}

.feature-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--primary);
  background: #ede9fe;
  font-weight: 900;
}

.about-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.about-footer-grid div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.about-footer-grid div:last-child {
  border-right: 0;
}

.about-footer-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero,
  .grid.three,
  .grid.two,
  .stats,
  .timeline,
  .home-band-inner,
  .dashboard-preview,
  .run-grid,
  .live-options,
  .live-stats,
  .pricing-hero,
  .pricing-grid,
  .about-hero,
  .about-intro,
  .about-footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head {
    display: grid;
  }

  .section-head.split,
  .cta-band,
  .footer-inner {
    display: grid;
    align-items: start;
  }

  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-brand-card {
    max-width: 340px;
  }

  .pricing-visual {
    min-height: 500px;
  }

  .about-footer-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-footer-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav,
  .nav-links,
  .actions {
    align-items: stretch;
  }

  .nav {
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links,
  .actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .phone-demo {
    inset: 24px 18px;
  }

  .main {
    padding: 18px 12px;
  }

  .dashboard-preview,
  .cta-band {
    padding: 22px;
  }

  .preview-panel {
    grid-template-columns: 1fr;
  }

  .live-stage {
    padding: 16px;
  }

  .live-top,
  .live-actions {
    display: grid;
  }

  .pricing-phone {
    left: 18px;
    top: 24px;
  }

  .pricing-board {
    right: 18px;
    bottom: 24px;
  }
}
