:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: #111827;
  --surface-2: #151d2e;
  --ink: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.62);
  --soft: rgba(244, 247, 251, 0.4);
  --line: rgba(129, 140, 248, 0.14);
  --violet: #818cf8;
  --purple: #a78bfa;
  --gold: #fbbf24;
  --blue: #60a5fa;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-ink: #06080f;
  --glow: 0 0 40px rgba(129, 140, 248, 0.32);
  --display: "Syne", sans-serif;
  --font: "Outfit", system-ui, sans-serif;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(129, 140, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(800px 500px at 70% 80%, rgba(251, 191, 36, 0.08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.55);
  pointer-events: none;
}

.page {
  overflow-x: clip;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.top.scrolled {
  background: rgba(6, 8, 15, 0.88);
  border-bottom-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(120deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.12em;
}

.nav {
  display: none;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn-accent {
  color: var(--accent-ink);
  background: linear-gradient(120deg, #818cf8, #a78bfa 55%, #fbbf24);
  background-size: 160% 160%;
  box-shadow: var(--glow), 0 12px 28px rgba(0, 0, 0, 0.35);
  animation: ctaShimmer 5s ease-in-out infinite;
}

.btn-accent:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 0 52px rgba(167, 139, 250, 0.35), 0 16px 34px rgba(0, 0, 0, 0.4);
  animation-play-state: paused;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.08);
}

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  align-items: end;
  padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 48px) 52px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-stars {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(251, 191, 36, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(129, 140, 248, 0.8), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(167, 139, 250, 0.7), transparent),
    radial-gradient(1px 1px at 90% 15%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(129, 140, 248, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(160deg, #0a0e1a 0%, #06080f 50%, #0d1220 100%);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 8, 15, 0.92) 0%, rgba(6, 8, 15, 0.62) 48%, rgba(6, 8, 15, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.2) 0%, rgba(6, 8, 15, 0.88) 100%),
    radial-gradient(500px 280px at 70% 40%, rgba(129, 140, 248, 0.2), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ddd6fe;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.15);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
  animation: pulse 1.6s ease-out infinite;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  background: linear-gradient(180deg, #fff 20%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-meta {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
}

.hero-stats > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.hero-stats span {
  color: var(--soft);
  font-size: 0.78rem;
}

.trust {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 26, 0.95));
  border-block: 1px solid var(--line);
}

.trust > div {
  padding: 22px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.trust > div::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.trust > div:hover::before {
  opacity: 1;
}

.trust strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.trust span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-head {
  margin-bottom: 32px;
  max-width: 42rem;
}

.section-head h2,
.final h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-head p,
.final p,
.servers-foot {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.product,
.how,
.security,
.scenarios,
.servers,
.compare,
.faq,
.final {
  padding: clamp(56px, 9vh, 100px) clamp(16px, 4vw, 48px);
  position: relative;
}

.product {
  background: var(--bg-2);
}

.feature-grid,
.scenario-grid,
.compare-grid {
  display: grid;
  gap: 14px;
}

.feature-grid article,
.scenario-grid article,
.compare-grid article,
.steps li,
.server-grid > div,
.security-list li,
.spec-row > div {
  position: relative;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(129, 140, 248, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-grid article::after,
.scenario-grid article::after,
.steps li::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.55), transparent 40%, rgba(251, 191, 36, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-grid article:hover,
.scenario-grid article:hover,
.steps li:hover,
.compare-grid article:hover,
.server-grid > div:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(129, 140, 248, 0.12);
}

.feature-grid article:hover::after,
.scenario-grid article:hover::after,
.steps li:hover::after {
  opacity: 1;
}

.feature-grid h3,
.scenario-grid h3,
.steps h3,
.compare-grid h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
}

.feature-grid p,
.scenario-grid p,
.steps p,
.compare-grid li {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--violet), var(--gold));
}

.how-note {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(129, 140, 248, 0.12), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: inset 0 0 30px rgba(129, 140, 248, 0.06);
}

.how-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.security {
  background:
    radial-gradient(700px 360px at 90% 10%, rgba(167, 139, 250, 0.14), transparent 60%),
    var(--bg);
  border-block: 1px solid var(--line);
}

.security-split {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.security-list strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.security-list span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.spec-row {
  display: grid;
  gap: 10px;
}

.spec-row em {
  display: block;
  font-style: normal;
  color: var(--purple);
  font-size: 0.78rem;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.spec-row b {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.scenarios {
  background: var(--bg-2);
}

.server-grid {
  display: grid;
  gap: 10px;
}

.server-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.server-grid .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.server-grid > div:nth-child(2) .live-dot { animation-delay: 0.2s; }
.server-grid > div:nth-child(3) .live-dot { animation-delay: 0.4s; }
.server-grid > div:nth-child(4) .live-dot { animation-delay: 0.6s; }
.server-grid > div:nth-child(5) .live-dot { animation-delay: 0.8s; }
.server-grid > div:nth-child(6) .live-dot { animation-delay: 1s; }

.server-grid b {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: auto;
}

.server-grid span {
  color: var(--soft);
  font-size: 0.92rem;
}

.servers-foot {
  margin-top: 18px !important;
}

.compare {
  background: var(--bg);
}

.compare-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-grid li {
  padding-left: 1rem;
  position: relative;
}

.compare-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--gold));
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.compare-grid article:first-child {
  background:
    linear-gradient(160deg, rgba(129, 140, 248, 0.14), rgba(167, 139, 250, 0.06) 40%, var(--surface));
  border-color: rgba(129, 140, 248, 0.35);
}

.muted-card {
  opacity: 0.88;
}

.muted-card li::before {
  background: rgba(244, 247, 251, 0.28);
  box-shadow: none;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  flex: 0 0 auto;
  opacity: 0.75;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--purple);
}

.faq details p {
  animation: faqOpen 0.28s ease;
}

.faq p {
  margin: 12px 0 4px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42rem;
}

.final {
  background: linear-gradient(180deg, var(--bg-2), #080c16);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.final-glow {
  position: absolute;
  inset: auto auto -20% 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.28), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.final-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.final .btn {
  margin-top: 22px;
}

.foot {
  display: grid;
  gap: 18px;
  padding: 36px clamp(16px, 4vw, 48px) 48px;
  border-top: 1px solid var(--line);
  background: #04060c;
}

.foot-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.foot-brand span,
.foot-copy {
  color: var(--soft);
  font-size: 0.92rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-weight: 600;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--purple);
}

.dl-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--accent-ink);
  font-weight: 800;
  background: linear-gradient(120deg, var(--violet), var(--gold));
  box-shadow: var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dl-float.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.65);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(129, 140, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(40px, -24px, 0);
  }
}

@keyframes ctaShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dl-success-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(129, 140, 248, 0.18), transparent 45%),
    var(--bg);
}

.dl-success {
  width: min(440px, 100%);
  text-align: center;
}

.dl-success .logo {
  display: inline-block;
  margin-bottom: 18px;
}

.dl-success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow);
}

.dl-success-card h1 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 750;
  margin: 8px 0 12px;
}

.dl-success-lead,
.dl-success-hint {
  color: var(--muted);
  line-height: 1.55;
}

.dl-success-hint {
  color: var(--soft);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.dl-success-card .btn {
  width: 100%;
}

.dl-success-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .trust {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust > div {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .trust > div:last-child {
    border-right: 0;
  }

  .feature-grid,
  .scenario-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps,
  .compare-grid,
  .server-grid,
  .spec-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .security-split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .foot {
    grid-template-columns: 1.2fr 1fr;
  }

  .foot-copy {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature-grid article,
  .scenario-grid article,
  .steps li,
  .dl-float,
  .reveal,
  .hero-stars,
  .pulse,
  .final-glow,
  .btn-accent,
  .live-dot,
  .faq details p {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}
