:root {
  --bg-1: #120124;
  --bg-2: #6b30a2;
  --bg-3: #18022d;
  --card: #ececec;
  --text: #f2eef9;
  --accent: #9c58df;
  --accent-2: #6e2ca5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 50% 55%, var(--bg-2), var(--bg-1) 65%, var(--bg-3));
  animation: pageIn 260ms ease-out;
}

.topbar {
  height: 72px;
  background: linear-gradient(90deg, #140129, #58298d);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  padding: 0 8vw;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

.home-wrap {
  width: min(1120px, 92vw);
  margin: 1.6rem auto 2rem;
  display: block;
}

.hero-card {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
}

.hero-card h1 {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  text-align: center;
  animation: fadeUp 280ms ease-out;
}

.hero-card h1 span {
  color: #bb7dff;
}

.badge {
  margin: 0 auto;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: #d8bbff;
  font-weight: 600;
}

.subtitle {
  max-width: 740px;
  margin: 1rem auto;
  text-align: center;
  color: #ddcdf6;
}

.hero-actions {
  margin: 1.8rem auto;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.demo-action-row {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
}

.btn {
  min-width: 170px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.btn.primary {
  background: #9445df;
  color: white;
}

.btn.ghost {
  background: transparent;
  color: #f3e7ff;
  border-color: #8f5ec8;
}

.btn.dark {
  margin-top: 1rem;
  background: #08080b;
  color: white;
  width: 100%;
}

.demo-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 14, 0.76);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}

.demo-modal.hidden {
  display: none;
}

.demo-dialog {
  width: min(920px, 96vw);
  background: #181022;
  border: 1px solid rgba(200, 167, 255, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
  position: relative;
  animation: fadeUp 220ms ease-out;
}

#demo-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  max-height: 72vh;
}

.close-demo {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.demo-note {
  margin-top: 0.55rem;
  color: #d9c7f6;
  font-size: 0.85rem;
}

.feature-grid {
  margin-top: 3.4rem;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(159, 93, 226, 0.6), rgba(75, 28, 118, 0.7));
  border: 1px solid rgba(30, 7, 50, 0.8);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
  padding: 1.4rem;
  animation: fadeUp 300ms ease-out;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 24px rgba(0, 0, 0, 0.28);
}

.feature h3 {
  margin-bottom: 0.8rem;
}

.feature p {
  color: #dfcbfa;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

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

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

