:root {
  color-scheme: dark;
  --primary: #1f0051;
  --primary-alt: #34008a;
  --background: #05010f;
  --text: #f6f4ff;
  --text-muted: #b5aee0;
  --surface: rgba(36, 11, 86, 0.75);
  --surface-strong: rgba(44, 18, 102, 0.92);
  --outline: rgba(151, 122, 255, 0.35);
  --glow: rgba(111, 49, 255, 0.65);
  --success: #5efac5;
  --accent: #7c5cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.animated-background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(79, 28, 156, 0.35), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(12, 0, 40, 0.75), transparent 60%),
    linear-gradient(135deg, var(--primary), #030008 60%);
  animation: hueShift 18s ease-in-out infinite;
  z-index: -3;
}

.particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle-field span {
  position: absolute;
  display: block;
  width: clamp(2px, 0.6vw, 6px);
  height: clamp(2px, 0.6vw, 6px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: float 18s linear infinite;
  opacity: 0.5;
}

.pointer-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(94, 250, 197, 0.22),
    rgba(30, 0, 81, 0.05) 35%,
    transparent 60%
  );
  transition: background 0.25s ease;
  z-index: -2;
}

.page {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 5rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(11, 0, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.25);
}

.header__tagline {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.hero__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.05;
}

.hero__subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-alt), rgba(124, 92, 255, 0.95));
  color: var(--text);
  box-shadow: 0 12px 35px rgba(52, 0, 138, 0.45);
}

.btn--ghost {
  background: rgba(15, 3, 40, 0.35);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(15, 3, 40, 0.35);
}

.btn:hover,
[data-hover]:hover,
.newsletter:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(124, 92, 255, 0.45);
}

.btn--shine::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: rotate(25deg);
  animation: shine 4s ease-in-out infinite;
}

.hero__panel {
  position: relative;
}

.panel-card {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(7, 0, 20, 0.55);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-card::before {
  content: '';
  position: absolute;
  inset: -50% -20% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  filter: blur(40px);
  opacity: 0.65;
}

.panel-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.panel-card__header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-card__status {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(94, 250, 197, 0.15);
  color: var(--success);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.panel-card__metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.panel-card__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.panel-card__value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.panel-card__progress {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.panel-card__progress-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.panel-card__progress-bar {
  position: relative;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.panel-card__progress-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 250, 197, 0.8), rgba(124, 92, 255, 0.85));
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.7);
}

.panel-card__list {
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.demo {
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: 28px;
  background: rgba(24, 6, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 45px 80px rgba(6, 0, 18, 0.55);
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
}

.demo__header h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.demo__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.demo__form {
  display: grid;
  gap: 1.5rem;
}

.demo__field {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.demo__field span {
  color: rgba(255, 255, 255, 0.75);
}

.demo__field input,
.demo__field select {
  background: rgba(8, 2, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 1.05rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.demo__field input:focus,
.demo__field select:focus {
  outline: none;
  border-color: rgba(94, 250, 197, 0.8);
  box-shadow: 0 0 0 2px rgba(94, 250, 197, 0.35);
}

.demo__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 1.6rem) calc(1.1rem), calc(100% - 1.2rem) calc(1.1rem);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.demo__instructions {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.demo__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.result-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.25), rgba(20, 0, 54, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(5, 0, 18, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.result-card::before {
  content: '';
  position: absolute;
  inset: auto auto -40% -40%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(94, 250, 197, 0.3), transparent 75%);
  filter: blur(30px);
}

.result-card.is-active {
  box-shadow: 0 0 50px rgba(94, 250, 197, 0.35), 0 35px 70px rgba(5, 0, 18, 0.6);
  animation: pulseGlow 1.2s ease-out;
}

.result-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.result-card__value {
  margin: 1.2rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
}

.result-card__caption {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.result-card--wide {
  grid-column: span 2;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.dashboard__copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
}

.dashboard__copy p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.dashboard__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.dashboard__panel {
  position: relative;
}

.dashboard__glow {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 35% 20%, rgba(124, 92, 255, 0.45), transparent 65%);
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

.dashboard__screen {
  position: relative;
  border-radius: 28px;
  background: rgba(14, 0, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 90px rgba(5, 0, 18, 0.6);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  backdrop-filter: blur(18px);
  z-index: 1;
}

.dashboard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard__title {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.dashboard__badge {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.2);
  color: rgba(124, 92, 255, 0.95);
  font-weight: 600;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.dashboard__tile {
  padding: 1.4rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 0, 58, 0.9), rgba(124, 92, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(6, 0, 18, 0.55);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.dashboard__tile::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(94, 250, 197, 0.25), transparent 75%);
}

.dashboard__tile-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard__tile-value {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: clamp(2rem, 6vw, 2.8rem);
  border-radius: 28px;
  background: rgba(14, 0, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 45px 90px rgba(3, 0, 12, 0.7);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.newsletter__cta {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: rgba(94, 250, 197, 0.8);
  text-transform: uppercase;
}

.newsletter__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.newsletter__embed {
  position: relative;
  width: 100%;
  min-height: 460px;
}

.newsletter__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.4);
}

.footer {
  margin: 0;
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) scale(0.6);
    opacity: 0;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-150%) rotate(25deg);
  }
  50% {
    transform: translateX(150%) rotate(25deg);
  }
  100% {
    transform: translateX(150%) rotate(25deg);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(94, 250, 197, 0.4);
  }
  60% {
    box-shadow: 0 0 45px rgba(94, 250, 197, 0.5);
  }
  100% {
    box-shadow: 0 0 50px rgba(94, 250, 197, 0.35), 0 35px 70px rgba(5, 0, 18, 0.6);
  }
}

[data-parallax] {
  will-change: transform;
}

@media (max-width: 900px) {
  .panel-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .result-card--wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn--ghost {
    width: 100%;
  }

  .demo {
    padding: 2rem;
  }

  .newsletter__embed {
    min-height: 520px;
  }
}
