:root {
  --bg: #04030b;
  --surface: #0d0b1c;
  --surface-2: #140f2b;
  --text: #eef4ff;
  --muted: #98a7d9;
  --border: rgba(82, 231, 255, 0.28);
  --purple: #8a3dff;
  --blue: #22d1ff;
  --pink: #ff2bd6;
  --ok: #6bffd6;
  --danger: #ff77ad;
  --gradient: linear-gradient(130deg, var(--purple) 0%, var(--pink) 45%, var(--blue) 100%);
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 0 0 1px rgba(138, 61, 255, 0.25), 0 10px 34px rgba(15, 4, 39, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 43, 214, 0.22), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(34, 209, 255, 0.2), transparent 35%),
    radial-gradient(circle at 50% 120%, rgba(138, 61, 255, 0.24), transparent 48%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 209, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 61, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.32;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.35;
  z-index: -1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(34, 209, 255, 0.22);
  background: rgba(4, 3, 11, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(4, 3, 14, 0.7);
}

.nav-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #f3fbff 5%, #8fe8ff 38%, #cb8bff 68%, #ff9cf0 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(34, 209, 255, 0.6);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  white-space: nowrap;
  overflow-x: auto;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav a {
  color: #b6c8ff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.nav a:hover {
  color: #eef6ff;
  border-color: rgba(34, 209, 255, 0.45);
  background: rgba(34, 209, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(34, 209, 255, 0.08), 0 0 12px rgba(138, 61, 255, 0.35);
}

.theme-toggle {
  border: 1px solid rgba(34, 209, 255, 0.45);
  background: linear-gradient(120deg, rgba(34, 209, 255, 0.12), rgba(138, 61, 255, 0.16));
  color: #e8f4ff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(34, 209, 255, 0.28), inset 0 0 16px rgba(138, 61, 255, 0.22);
}

.theme-toggle:active {
  transform: translateY(0);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dcf4ff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(125deg, rgba(34, 209, 255, 0.14), rgba(138, 61, 255, 0.16));
  margin-bottom: 18px;
  box-shadow: inset 0 0 16px rgba(34, 209, 255, 0.12);
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-shadow: 0 0 22px rgba(138, 61, 255, 0.24);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 14ch;
  margin-bottom: 20px;
  background: linear-gradient(125deg, #ffffff 0%, #d8b8ff 38%, #97f3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  margin-bottom: 16px;
}

.sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 60ch;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(18, 14, 38, 0.84), rgba(9, 8, 19, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 209, 255, 0.08), transparent 35%, rgba(255, 43, 214, 0.08));
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(34, 209, 255, 0.28), 0 14px 30px rgba(8, 5, 24, 0.72), 0 0 26px rgba(255, 43, 214, 0.18);
}

.hero {
  padding: 96px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(138, 61, 255, 0.28), rgba(255, 43, 214, 0.2), rgba(34, 209, 255, 0.2));
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 209, 255, 0.24), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.btn-primary {
  background: var(--gradient);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 26px rgba(255, 43, 214, 0.38), 0 0 30px rgba(34, 209, 255, 0.28);
}

.btn-secondary {
  background: rgba(34, 209, 255, 0.08);
  border: 1px solid var(--border);
  color: #dcf4ff;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  filter: saturate(1.1);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
}

.panel {
  background: linear-gradient(180deg, rgba(17, 12, 35, 0.9), rgba(8, 8, 20, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.flow-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.9rem;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  padding-left: 18px;
  position: relative;
  color: #d8e0ff;
}

.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  position: absolute;
  left: 0;
  top: 0.58em;
}

.number-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(138, 61, 255, 0.35), rgba(34, 209, 255, 0.25));
  border: 1px solid var(--border);
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: #eef7ff;
  box-shadow: inset 0 0 12px rgba(34, 209, 255, 0.2);
}

.demo {
  display: grid;
  gap: 14px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(7, 7, 16, 0.94);
  border: 1px solid rgba(34, 209, 255, 0.28);
  border-radius: 12px;
  padding: 14px;
  color: #d8ecff;
  overflow-x: auto;
  box-shadow: inset 0 0 18px rgba(138, 61, 255, 0.14);
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(34, 209, 255, 0.3);
}

.comparison th,
.comparison td {
  padding: 14px;
  border-bottom: 1px solid rgba(34, 209, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: linear-gradient(120deg, rgba(138, 61, 255, 0.36), rgba(34, 209, 255, 0.22));
  color: #eaf3ff;
  font-size: 0.93rem;
}

.comparison td:first-child {
  color: #d5e6ff;
  width: 30%;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.no {
  color: var(--danger);
  font-weight: 600;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(130deg, rgba(15, 12, 31, 0.9), rgba(8, 8, 18, 0.92));
  box-shadow: var(--shadow);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #e8f4ff;
}

details p {
  margin-top: 9px;
  color: #adb9e9;
}

.final-cta {
  text-align: center;
  padding: 78px 0 96px;
}

.final-cta .panel {
  padding: 34px;
  background: linear-gradient(135deg, rgba(138, 61, 255, 0.28), rgba(255, 43, 214, 0.2), rgba(34, 209, 255, 0.2), rgba(8, 8, 18, 0.95));
}

.final-title {
  max-width: 22ch;
  margin: 0 auto 14px;
}

.final-sub {
  max-width: 60ch;
  margin: 0 auto 24px;
}

.faq-wrap {
  margin-top: 20px;
  max-width: 820px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-8 {
  margin-bottom: 8px;
}

.table-card-primary {
  margin-top: 20px;
  overflow: auto;
}

.table-card-secondary {
  margin-top: 14px;
  overflow: auto;
}

::selection {
  background: rgba(255, 43, 214, 0.32);
  color: #f7fcff;
}

@media (prefers-reduced-motion: no-preference) {
  .brand {
    animation: brandPulse 3.6s ease-in-out infinite, brandGradientFlow 6.4s linear infinite;
  }

  .hero::after {
    animation: pulseGlow 4.8s ease-in-out infinite;
  }

  .btn-primary {
    animation: neonPulse 3.2s ease-in-out infinite;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

@keyframes brandPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(34, 209, 255, 0.45), 0 0 18px rgba(138, 61, 255, 0.35);
  }
  50% {
    text-shadow: 0 0 16px rgba(34, 209, 255, 0.68), 0 0 28px rgba(255, 43, 214, 0.38);
  }
}

@keyframes brandGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 26px rgba(255, 43, 214, 0.38), 0 0 30px rgba(34, 209, 255, 0.28);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 34px rgba(255, 43, 214, 0.52), 0 0 36px rgba(34, 209, 255, 0.4);
  }
}

footer {
  border-top: 1px solid rgba(34, 209, 255, 0.24);
  padding: 24px 0 34px;
  color: #8ea4df;
  font-size: 0.93rem;
  text-align: center;
}

body[data-theme="light"] {
  --bg: #eef3ff;
  --surface: #ffffff;
  --surface-2: #f5f7ff;
  --text: #12172e;
  --muted: #45527f;
  --border: rgba(94, 118, 255, 0.26);
  --shadow: 0 6px 20px rgba(94, 118, 255, 0.12);
  background:
    radial-gradient(circle at 10% -8%, rgba(168, 113, 255, 0.22), transparent 34%),
    radial-gradient(circle at 92% 5%, rgba(96, 193, 255, 0.2), transparent 35%),
    radial-gradient(circle at 50% 110%, rgba(138, 61, 255, 0.14), transparent 48%),
    var(--bg);
  color: var(--text);
}

body[data-theme="light"]::before {
  background-image:
    linear-gradient(rgba(106, 129, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 94, 255, 0.07) 1px, transparent 1px);
  opacity: 0.2;
}

body[data-theme="light"]::after {
  opacity: 0.12;
}

body[data-theme="light"] .topbar {
  border-bottom: 1px solid rgba(94, 118, 255, 0.22);
  background: rgba(243, 246, 255, 0.85);
  box-shadow: 0 6px 24px rgba(131, 144, 216, 0.2);
}

body[data-theme="light"] .brand {
  background: linear-gradient(120deg, #1c2758 5%, #3f4ac6 42%, #007ab8 75%, #6a2fb0 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

body[data-theme="light"] .nav a {
  color: #30407a;
}

body[data-theme="light"] .nav a:hover {
  color: #1c2856;
  border-color: rgba(94, 118, 255, 0.38);
  background: rgba(94, 118, 255, 0.12);
  box-shadow: none;
}

body[data-theme="light"] .theme-toggle {
  border-color: rgba(94, 118, 255, 0.4);
  color: #1f2a57;
  background: linear-gradient(120deg, rgba(94, 118, 255, 0.14), rgba(161, 94, 255, 0.12));
}

body[data-theme="light"] .tag {
  color: #223062;
  background: linear-gradient(125deg, rgba(94, 118, 255, 0.14), rgba(161, 94, 255, 0.1));
  box-shadow: none;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
  text-shadow: none;
}

body[data-theme="light"] h1 {
  background: linear-gradient(125deg, #192045 0%, #4f3ebf 45%, #1771c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-theme="light"] .card,
body[data-theme="light"] .panel,
body[data-theme="light"] details,
body[data-theme="light"] pre {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 255, 0.98));
  border-color: rgba(94, 118, 255, 0.26);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .card::before {
  background: linear-gradient(140deg, rgba(94, 118, 255, 0.08), transparent 35%, rgba(161, 94, 255, 0.08));
}

body[data-theme="light"] .card:hover {
  box-shadow: 0 0 0 1px rgba(94, 118, 255, 0.26), 0 10px 22px rgba(94, 118, 255, 0.14);
}

body[data-theme="light"] .hero::before {
  background: linear-gradient(120deg, rgba(138, 61, 255, 0.16), rgba(255, 43, 214, 0.08), rgba(34, 209, 255, 0.1));
}

body[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(34, 209, 255, 0.18), transparent 62%);
}

body[data-theme="light"] .btn-secondary {
  background: rgba(94, 118, 255, 0.08);
  color: #253263;
  border-color: rgba(94, 118, 255, 0.3);
}

body[data-theme="light"] .list li,
body[data-theme="light"] .comparison td:first-child,
body[data-theme="light"] .comparison td,
body[data-theme="light"] summary,
body[data-theme="light"] .flow-title {
  color: #1f2a58;
}

body[data-theme="light"] .sub,
body[data-theme="light"] details p,
body[data-theme="light"] footer {
  color: #4b5b8b;
}

body[data-theme="light"] .comparison,
body[data-theme="light"] .comparison th,
body[data-theme="light"] .comparison td {
  border-color: rgba(94, 118, 255, 0.2);
}

body[data-theme="light"] .comparison th {
  background: linear-gradient(120deg, rgba(138, 61, 255, 0.2), rgba(34, 209, 255, 0.14));
  color: #1f2a58;
}

body[data-theme="light"] .final-cta .panel {
  background: linear-gradient(135deg, rgba(138, 61, 255, 0.16), rgba(255, 43, 214, 0.1), rgba(34, 209, 255, 0.11), rgba(255, 255, 255, 0.98));
}

body[data-theme="light"] ::selection {
  background: rgba(138, 61, 255, 0.22);
  color: #12224f;
}

@media (max-width: 900px) {
  .nav-wrap {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }
}
