* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root {
  --bg-1: #060816;
  --bg-2: #09111f;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(11, 18, 33, 0.88);
  --stroke: rgba(148, 163, 184, 0.16);
  --stroke-strong: rgba(129, 140, 248, 0.32);
  --text: rgba(248, 250, 252, 0.96);
  --muted: rgba(203, 213, 225, 0.72);
  --accent-a: #8b5cf6;
  --accent-b: #2563eb;
  --accent-c: #22d3ee;
  --shadow-soft: 0 20px 60px rgba(2, 6, 23, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(139, 92, 246, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(34, 211, 238, 0.16),
      transparent 25%
    ),
    radial-gradient(
      circle at 50% 85%,
      rgba(37, 99, 235, 0.16),
      transparent 28%
    ),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 50%, #05070f 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(139, 92, 246, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 75% 30%,
      rgba(34, 211, 238, 0.08),
      transparent 28%
    ),
    radial-gradient(circle at 50% 70%, rgba(37, 99, 235, 0.08), transparent 30%);
  filter: blur(30px);
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.8),
    transparent 80%
  );
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  animation: fadeUp 0.8s ease-out both;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(8, 13, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

header h1 {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  color: #f8fbff;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.98),
    rgba(37, 99, 235, 0.98) 52%,
    rgba(34, 211, 238, 0.98)
  );
  background-size: 160% 160%;
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease,
    background-position 0.45s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  background-position: 100% 0;
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.34),
    0 0 26px rgba(34, 211, 238, 0.22);
  filter: saturate(1.1);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn:focus-visible,
.cta input:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.16),
    0 0 0 1px rgba(34, 211, 238, 0.42) inset;
}

.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% auto auto 50%;
  width: min(760px, 90vw);
  height: min(420px, 70vw);
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(139, 92, 246, 0.28),
      transparent 34%
    ),
    radial-gradient(
      circle at 30% 60%,
      rgba(37, 99, 235, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 55%,
      rgba(34, 211, 238, 0.18),
      transparent 28%
    );
  filter: blur(34px);
  opacity: 0.9;
  z-index: -1;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.hero h2 {
  max-width: 12ch;
  margin: 0 auto 18px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #dbeafe 20%,
    #8b5cf6 48%,
    #22d3ee 82%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.hero p {
  max-width: 62ch;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero > .btn {
  min-width: 180px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 68px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.82),
    rgba(8, 13, 24, 0.58)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 30px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
  animation: fadeUp 0.8s ease-out both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.16),
    rgba(34, 211, 238, 0.1),
    transparent 55%
  );
  opacity: 0.75;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.48),
    0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 0 32px rgba(37, 99, 235, 0.14);
}

.card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.96);
}

.card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.65;
}

.cta {
  text-align: center;
  margin: 96px auto 64px;
  padding: 34px 22px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.78),
    rgba(8, 12, 22, 0.56)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.cta .sub {
  color: var(--muted);
  margin: 10px auto 24px;
  max-width: 50ch;
}

.cta form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta input {
  width: min(100%, 360px);
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 13, 24, 0.82);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(2, 6, 23, 0.28);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

.cta input::placeholder {
  color: rgba(148, 163, 184, 0.82);
}

.cta input:hover {
  border-color: rgba(34, 211, 238, 0.22);
}

.cta input:focus {
  background: rgba(7, 12, 22, 0.94);
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.42);
}

.cta form .btn {
  min-width: 120px;
}

footer {
  text-align: center;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.88rem;
  line-height: 1.8;
  padding: 16px 0 8px;
}

footer p + p {
  margin-top: 2px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes pulseGlow {
  from {
    opacity: 0.72;
    transform: translateX(-50%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.03);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  header {
    margin-bottom: 52px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .hero {
    padding: 46px 0 28px;
  }

  .hero h2 {
    max-width: 10ch;
  }

  .hero p {
    font-size: 1rem;
  }

  .features {
    margin-top: 48px;
    gap: 16px;
  }

  .card,
  .cta {
    border-radius: 22px;
  }

  .cta {
    margin: 72px auto 56px;
    padding: 28px 18px;
  }

  .cta form {
    flex-direction: column;
    align-items: stretch;
  }

  .cta input,
  .cta form .btn,
  .hero > .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
