:root {
  --page: #181d25;
  --panel: #181d25;
  --panel-soft: #1b2029;
  --ink: #e1e4ea;
  --muted: #a2a8b4;
  --dim: #737b8c;
  --accent: #677ce4;
  --accent-strong: #8292ff;
  --line: rgba(118, 132, 208, 0.24);
  --shadow-dark: rgba(5, 8, 13, 0.72);
  --shadow-light: rgba(72, 83, 108, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 10%, rgba(103, 124, 228, 0.12), transparent 32rem),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.035), transparent 22rem),
    var(--page);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7) 16%, transparent 82%);
}

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

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

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.welcome-pill,
.venn-circle,
.known-overlap,
.secondary-pill,
.system-panel,
.legal-panel {
  background: var(--panel);
  box-shadow:
    12px 12px 26px var(--shadow-dark),
    -8px -8px 20px var(--shadow-light),
    inset 1px 1px 1px rgba(255, 255, 255, 0.04),
    inset -1px -1px 1px rgba(0, 0, 0, 0.52);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 18px;
  color: #f3f5f8;
  font-weight: 800;
}

.known-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background: #1a202a;
  box-shadow:
    10px 10px 20px rgba(4, 6, 10, 0.72),
    -6px -6px 18px rgba(69, 80, 104, 0.34);
}

.brand-mark img {
  display: block;
  width: 31px;
  max-width: 31px;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}

.brand-name {
  padding-right: 18px;
}

main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(58px, 10vh, 98px) 0 44px;
  text-align: center;
}

.hero-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(520px, 100%);
  height: 156px;
  margin-bottom: 18px;
}

.logo-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 92px;
  max-width: 92px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(12, 19, 32, 0.58));
}

.welcome-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 28px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.welcome-pill::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 16px rgba(103, 124, 228, 0.85);
}

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

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  color: #e6e8ee;
  font-size: clamp(3rem, 7vw, 5.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h1::first-line {
  color: #f4f5f8;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.venn-section {
  display: grid;
  gap: 24px;
  padding: 16px 0 58px;
}

.venn-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.venn-copy h2 {
  margin: 0;
  color: #f4f5f8;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.venn-map {
  position: relative;
  display: grid;
  min-height: 560px;
  margin: 0 auto;
  width: min(100%, 980px);
}

.venn-map::before {
  position: absolute;
  inset: 12% 12% auto;
  height: 68%;
  pointer-events: none;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(103, 124, 228, 0.2), transparent 64%);
  filter: blur(42px);
}

.venn-circle {
  position: absolute;
  top: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  min-width: 390px;
  min-height: 390px;
  padding: 76px 62px 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  transition: border-color 180ms ease, transform 180ms ease;
}

.venn-circle::after {
  position: absolute;
  inset: 12%;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(103, 124, 228, 0.12);
  border-radius: 50%;
  box-shadow: inset 16px 16px 42px rgba(0, 0, 0, 0.28);
}

.venn-circle:hover,
.known-overlap:hover {
  border-color: rgba(103, 124, 228, 0.52);
  transform: translateY(-3px);
}

.supra-circle {
  left: 0;
  align-items: flex-start;
  padding-right: 130px;
  border-color: rgba(103, 124, 228, 0.28);
}

.pulse-circle {
  right: 0;
  align-items: flex-end;
  padding-left: 130px;
  text-align: right;
}

.venn-circle,
.known-overlap {
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.card-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 6px 11px;
  overflow-wrap: anywhere;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(103, 124, 228, 0.08);
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.28), inset -4px -4px 10px rgba(95, 106, 134, 0.16);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 22px;
  color: var(--accent-strong);
  background: #1a202a;
  box-shadow:
    10px 10px 22px rgba(5, 8, 13, 0.72),
    -6px -6px 18px rgba(75, 86, 112, 0.34);
  font-weight: 900;
}

.card-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pulse-icon img {
  width: 40px;
}

.circle-title {
  display: block;
  margin-bottom: 12px;
  color: #f4f5f8;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.circle-copy,
.system-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.circle-copy {
  display: block;
  max-width: 280px;
}

.card-action {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.known-overlap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: 250px;
  min-height: 184px;
  padding: 26px 24px;
  border: 1px solid rgba(103, 124, 228, 0.46);
  border-radius: 18px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.known-overlap:hover {
  transform: translate(-50%, calc(-50% - 3px));
}

.known-mark.small {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}

.known-overlap span:not(.known-mark) {
  display: block;
  margin-bottom: 8px;
  color: #f4f5f8;
  font-size: 1.45rem;
  font-weight: 800;
}

.known-overlap small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.system {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding: 0 0 86px;
  text-align: center;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-panel {
  max-width: 760px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 16px;
}

.panel-kicker {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.system-panel h2 {
  margin-bottom: 16px;
  color: #f1f3f7;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.system-panel p {
  max-width: 640px;
  margin: 0 auto;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a,
.legal-panel a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover,
.legal-panel a:hover {
  color: #ffffff;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  padding: clamp(42px, 9vh, 88px) 0 78px;
}

.legal-panel {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 16px;
}

.legal-panel .welcome-pill {
  margin-bottom: 28px;
}

.legal-panel h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-updated {
  margin-bottom: 42px;
  color: var(--dim);
  font-size: 0.95rem;
}

.legal-panel h2 {
  margin: 34px 0 10px;
  color: #f4f5f8;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.legal-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .site-header {
    justify-content: center;
  }

  .hero {
    padding-top: 62px;
  }

  .venn-map {
    min-height: 920px;
    width: min(100%, 520px);
  }

  .venn-circle {
    left: 50%;
    right: auto;
    width: min(88vw, 500px);
    height: min(88vw, 500px);
    min-width: 0;
    min-height: 0;
    padding: 68px 54px;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
  }

  .venn-circle:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  .supra-circle {
    top: 0;
  }

  .pulse-circle {
    top: 420px;
  }

  .known-overlap {
    top: 420px;
  }

  .circle-copy {
    max-width: 310px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer,
  .legal-page {
    width: min(100% - 24px, 980px);
  }

  .welcome-pill {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.35rem);
  }

  .hero-logo {
    width: 72px;
    max-width: 72px;
  }

  .hero-logo-stage {
    width: 100%;
    height: 122px;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .venn-copy h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .venn-map {
    min-height: 900px;
  }

  .venn-circle {
    width: min(94vw, 360px);
    height: min(94vw, 360px);
    padding: 48px 34px;
  }

  .pulse-circle {
    top: 490px;
  }

  .known-overlap {
    top: 426px;
    width: min(78vw, 250px);
    min-height: 156px;
    padding: 20px 18px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .circle-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .circle-copy {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .card-action {
    margin-top: 16px;
    font-size: 0.68rem;
  }

  .pulse-circle .card-badge {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
