:root {
  --purple-950: #11062f;
  --purple-900: #220b5f;
  --purple-800: #2e1290;
  --purple-700: #3f1db1;
  --purple-500: #6d44e6;
  --purple-300: #a58cf5;
  --white: #ffffff;
  --text-on-dark: #f2ecff;
  --panel-text: #1d153d;
  --glass-bg: rgba(19, 12, 44, 0.62);
  --glass-border: rgba(198, 182, 255, 0.35);
  --card-bg: rgba(255, 255, 255, 0.93);
  --card-border: rgba(226, 217, 253, 0.95);
  --shadow: 0 16px 35px rgba(18, 8, 60, 0.28);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --font-sans: "Manrope", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: #04050a;
  color: var(--purple-900);
  scroll-behavior: smooth;
  position: relative;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.45rem);
}

h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
}

h3 {
  font-size: 1.18rem;
}

.matrix-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.matrix-strip {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/matrix-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.58;
  filter: saturate(1.25) contrast(1.18) brightness(1.1);
  animation: matrix-slide 14s linear infinite;
}

.matrix-strip-a {
  top: 0;
}

.matrix-strip-b {
  top: -100%;
}

@keyframes matrix-slide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.section-panel {
  padding: 1.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 6, 47, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(165, 140, 245, 0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.brand {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
  border-radius: 6px;
}

.logo-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #f3eaff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-list a:hover {
  color: var(--purple-300);
  background: rgba(165, 140, 245, 0.14);
}

.nav-list a[aria-current="page"] {
  color: var(--text-on-dark);
  background: rgba(165, 140, 245, 0.22);
}

.menu-toggle {
  display: none;
  border: 1px solid #9070b8;
  background: transparent;
  color: var(--white);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.hero {
  background: radial-gradient(circle at 10% 0%, rgba(98, 48, 223, 0.82) 0, rgba(46, 18, 144, 0.76) 54%, rgba(17, 6, 47, 0.88) 100%);
  color: var(--white);
  padding: 5.2rem 0 4.7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: #d7c7ff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  background: rgba(165, 140, 245, 0.18);
  border: 1px solid rgba(165, 140, 245, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.lead {
  color: var(--text-on-dark);
  max-width: 58ch;
}

.hero-grid .glass-panel {
  padding: 1.25rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.82rem 1.16rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.btn-primary {
  background: var(--purple-300);
  color: #1c0b56;
  box-shadow: 0 10px 25px rgba(165, 140, 245, 0.32);
}

.btn-primary:hover {
  background: #b9a4ff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(190, 165, 223, 0.85);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card-logo {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 170px;
  opacity: 0.11;
  pointer-events: none;
}

.hero-card h2 {
  color: #f7efff;
}

.hero-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
  color: #e8ddff;
}

.section {
  padding: 4.8rem 0;
  background: transparent;
}

.section-alt {
  background: transparent;
}

.section h2 {
  margin: 0 0 0.9rem;
  color: #f8f3ff;
}

.section-intro {
  color: #e6dcff;
  margin-bottom: 1.8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(42, 24, 130, 0.09);
  backdrop-filter: blur(1.5px);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 24, 130, 0.16);
}

.card h3,
.card p,
.steps article h3,
.steps article p {
  color: #1f1544;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps article {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(1.5px);
}

.steps span {
  display: inline-block;
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: 0.6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
}

.about-grid > .glass-panel {
  padding: 1.25rem;
}

.about-grid > .glass-panel p,
.about-grid > .glass-panel h2 {
  color: #f4edff;
}

.stats {
  display: grid;
  gap: 0.8rem;
}

.stats div {
  background: rgba(46, 18, 144, 0.9);
  color: #f1e8ff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(1.5px);
  border: 1px solid rgba(190, 165, 223, 0.4);
}

.stats strong {
  font-size: 1.65rem;
}

.cta {
  background: linear-gradient(140deg, #281173, #3f1db1);
  color: var(--white);
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-wrap p,
.cta-wrap h2 {
  color: #f4ecff;
}

.site-footer {
  background: rgba(17, 6, 47, 0.84);
  color: #ddd0ff;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(165, 140, 245, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .matrix-strip {
    animation: none;
  }
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d6c3ff;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .steps,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    right: 4%;
    background: #26106f;
    border: 1px solid #4930b5;
    border-radius: 10px;
    padding: 0.7rem;
    flex-direction: column;
    min-width: 160px;
  }

  .nav-list.open {
    display: flex;
  }

  .cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
