:root {
  color-scheme: dark;
  --bg: #000006;
  --ink: #fbfaff;
  --muted: #c7bed7;
  --dim: rgba(251, 250, 255, 0.64);
  --line: rgba(190, 133, 255, 0.28);
  --panel: rgba(11, 7, 20, 0.76);
  --panel-strong: rgba(34, 15, 62, 0.66);
  --purple: #9b58ff;
  --purple-bright: #bd83ff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(141, 74, 255, 0.36), transparent 18rem),
    radial-gradient(circle at 70% 58%, rgba(97, 45, 210, 0.14), transparent 26rem),
    linear-gradient(180deg, #020106 0%, var(--bg) 42%, #05030a 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

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

.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 5, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand span {
  text-shadow: 0 0 18px rgba(155, 88, 255, 0.34);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(251, 250, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(211, 175, 255, 0.78);
  border-radius: 10px;
  background: linear-gradient(180deg, #a55dff, #6f37d7);
  color: #fff;
  box-shadow: 0 12px 34px rgba(155, 88, 255, 0.34);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 128px 20px 74px;
  text-align: center;
}

.glow-ring {
  position: absolute;
  top: 13%;
  left: 50%;
  z-index: -1;
  width: min(560px, 82vw);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-14deg);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 34%),
    conic-gradient(from 18deg, transparent 5%, rgba(158, 82, 255, 0.74), transparent 42%, rgba(90, 48, 210, 0.44), transparent 78%);
  filter: blur(9px);
  opacity: 0.94;
}

.hero-inner {
  width: min(940px, 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(189, 131, 255, 0.64);
  border-radius: 999px;
  background: rgba(11, 7, 20, 0.62);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(155, 88, 255, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin: 30px auto 20px;
  font-size: clamp(4rem, 11vw, 8.2rem);
  font-weight: 950;
}

.subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  font-weight: 900;
}

.lead {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 650;
}

.link-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 92px;
}

.modules-section {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 112px;
}

.modules-section::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: -1;
  width: min(720px, 90vw);
  aspect-ratio: 1.25;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(155, 88, 255, 0.22), transparent 68%);
  filter: blur(20px);
}

.section-heading {
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading .kicker {
  min-height: 30px;
  margin-bottom: 16px;
  color: var(--purple-bright);
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 258px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: 0 0 38px rgba(155, 88, 255, 0.18), inset 0 0 26px rgba(155, 88, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 175, 255, 0.88);
  box-shadow: 0 0 62px rgba(155, 88, 255, 0.34), inset 0 0 34px rgba(155, 88, 255, 0.12);
}

.card-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  border: 1px solid rgba(189, 131, 255, 0.66);
  border-radius: 999px;
  color: var(--purple-bright);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(155, 88, 255, 0.52);
}

.link-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.link-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 740;
}

.card-url {
  margin-top: auto;
  color: var(--purple-bright);
  font-size: 0.9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.modules-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  margin-bottom: clamp(30px, 5vw, 52px);
}

.modules-copy h2 {
  max-width: 680px;
  margin: 18px 0 18px;
}

.modules-copy p:not(.kicker) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 650;
}

.modules-visual {
  min-height: 340px;
  padding: 18px;
  border: 1px solid rgba(190, 133, 255, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 18% 10%, rgba(189, 131, 255, 0.22), transparent 36%),
    rgba(7, 5, 14, 0.78);
  box-shadow: 0 0 64px rgba(155, 88, 255, 0.26), inset 0 0 42px rgba(155, 88, 255, 0.09);
  backdrop-filter: blur(18px);
}

.visual-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.visual-topbar span:first-child {
  background: var(--purple-bright);
  box-shadow: 0 0 18px rgba(189, 131, 255, 0.8);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.visual-panel,
.visual-line {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 28px rgba(155, 88, 255, 0.08);
}

.visual-panel {
  min-height: 112px;
  padding: 18px;
}

.visual-panel.wide {
  grid-column: span 2;
  min-height: 126px;
  background:
    radial-gradient(circle at 72% 30%, rgba(155, 88, 255, 0.34), transparent 34%),
    rgba(0, 0, 0, 0.34);
}

.visual-panel span {
  display: block;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 800;
}

.visual-panel strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.visual-line {
  height: 22px;
}

.visual-line.short {
  opacity: 0.58;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  min-height: 292px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(190, 133, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(34, 15, 62, 0.52), rgba(8, 5, 15, 0.76)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 44px rgba(155, 88, 255, 0.14), inset 0 0 32px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.module-category {
  color: var(--purple-bright);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-card h3 {
  margin: 18px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.module-card p {
  max-width: 560px;
  color: var(--muted);
  font-weight: 650;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(190, 133, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--dim);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--purple-bright);
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    place-items: center start;
    min-height: 760px;
    text-align: left;
  }

  .hero-inner,
  .lead,
  h1 {
    margin-left: 0;
  }

  .section-heading {
    text-align: left;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modules-layout,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .modules-visual {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    gap: 12px 18px;
    font-size: 0.84rem;
  }

  .site-nav .nav-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 720px;
    padding-top: 150px;
  }

  h1 {
    font-size: clamp(3.65rem, 18vw, 5.3rem);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 220px;
  }

  .modules-section {
    padding-bottom: 84px;
  }

  .modules-visual {
    min-height: 280px;
    padding: 14px;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel.wide {
    grid-column: auto;
  }

  .module-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
