:root {
  --bg: #000;
  --panel: rgba(13, 13, 13, 0.82);
  --panel-strong: rgba(18, 18, 18, 0.94);
  --border: #222;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.74);
  --soft: rgba(255, 255, 255, 0.12);
  --accent: #7be7d2;
  --accent-2: #8a72ff;
  --nebula: #814ac8;
  --nebula-hot: #df7afe;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
  min-width: 320px;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img,
canvas {
  display: block;
}

.site-header {
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 10px 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 53px;
}

.brand img {
  height: 53px;
  object-fit: contain;
  width: 53px;
}

.brand span {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-large img {
  height: 75px;
  width: 75px;
}

.brand-large span {
  font-size: 30px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

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

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 40px;
  padding: 6px;
  width: 40px;
}

.nav-toggle span {
  background: var(--text);
  display: block;
  height: 2px;
  margin: 6px 0;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 28px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 180px 40px 100px;
  position: relative;
}

.particle-field {
  height: 100%;
  inset: 0;
  opacity: 0.55;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.nebula {
  height: 1200px;
  left: 50%;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1600px, 160vw);
  z-index: 2;
}

.nebula-canvas {
  height: 100%;
  opacity: 1;
  width: 100%;
}

.hero-backdrop {
  background: radial-gradient(circle at 50% 50%, rgba(129, 74, 200, 0.08), rgba(0, 0, 0, 0) 58%);
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%);
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 4;
}

.eyebrow {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 7px 14px;
}

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

h1 {
  font-size: 70px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  max-width: 900px;
  overflow-wrap: break-word;
  text-wrap: balance;
  width: 100%;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  max-width: 600px;
  overflow-wrap: break-word;
  width: 100%;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 128px 40px;
}

.values-section {
  min-height: 100vh;
}

.section-heading {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto 60px;
  max-width: 700px;
  text-align: center;
  width: 100%;
}

h2 {
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  max-width: 600px;
  overflow-wrap: break-word;
  width: 100%;
}

.values-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 950px;
  width: 100%;
}

.value-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 178px;
  min-width: 0;
  overflow: hidden;
  padding: 20px 30px;
  position: relative;
}

.value-card::after {
  background: linear-gradient(120deg, transparent, rgba(123, 231, 210, 0.16), transparent);
  content: "";
  height: 100%;
  left: -120%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  transition: left 500ms ease;
  width: 70%;
}

.value-card:hover::after {
  left: 150%;
}

.value-card-accent {
  background:
    linear-gradient(145deg, rgba(123, 231, 210, 0.14), transparent 50%),
    var(--panel-strong);
}

.card-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.icon-mark {
  border: 1px solid var(--soft);
  border-radius: 4px;
  flex: 0 0 auto;
  height: 30px;
  padding: 5px;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 30px;
}

.icon-mark path,
.icon-mark circle {
  fill: none;
  vector-effect: non-scaling-stroke;
}

h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: break-word;
}

.value-card p {
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: break-word;
  position: relative;
  z-index: 1;
}

.site-footer {
  background:
    linear-gradient(to bottom, rgba(123, 231, 210, 0.12), transparent 42%),
    #000;
  border-top: 2px solid var(--border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 64px 40px;
}

.footer-brand {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.footer-brand p {
  color: var(--muted);
  max-width: 300px;
}

.footer-links {
  display: grid;
  flex: 1;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.footer-links h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 7px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal-ready .site-header {
  opacity: 0;
  transform: translateY(-150px);
}

.reveal-ready .site-header.is-visible {
  animation: headerIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 900ms forwards;
}

.reveal-ready .nebula {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(-28deg);
}

.reveal-ready .nebula.is-visible {
  animation: nebulaIn 1000ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}

.reveal-ready [data-reveal] {
  filter: blur(12px);
  opacity: 0;
  transform: translateY(50px);
  transition:
    filter 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready [data-reveal].is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .word-reveal span {
  display: inline-block;
  filter: blur(12px);
  opacity: 0;
  transform: translateY(18px);
}

.word-reveal.is-visible span {
  animation: wordIn 1150ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wordIn {
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nebulaIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@media (max-width: 1199px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

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

@media (max-width: 809px) {
  .site-header {
    padding: 10px 20px;
  }

  .brand img {
    height: 42px;
    width: 42px;
  }

  .brand span {
    font-size: 21px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .site-nav {
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 18px;
    left: 0;
    opacity: 0;
    padding: 86px 24px 28px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 21;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 100svh;
    padding: 180px 24px 100px;
  }

  .nebula {
    height: 700px;
    width: 820px;
  }

  h1 {
    font-size: 32px;
    max-width: 270px;
    text-wrap: wrap;
  }

  .lede,
  .section-heading p {
    font-size: 15px;
    max-width: 270px;
  }

  .section {
    padding: 64px 24px;
  }

  h2 {
    font-size: 28px;
  }

  .value-card {
    padding: 20px 24px;
  }

  h3 {
    font-size: 19px;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reveal-ready .word-reveal span {
    display: inline;
  }

  .site-footer {
    flex-direction: column;
    padding: 40px 24px 35px;
  }

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

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

  .particle-field {
    display: none;
  }

  .nebula,
  .reveal-ready .nebula {
    animation: none !important;
    opacity: 0.65;
    transform: translate(-50%, -50%);
  }
}
