:root {
  color-scheme: dark;
  --bg: #05080b;
  --bg-soft: #070d12;
  --bg-card: #0c1520;
  --text: #e6edf3;
  --muted: #98a6bc;
  --turquoise: #2de8cf;
  --green: #7dff9b;
  --orange: #ffb057;
  --blue: #6bb2ff;
  --purple: #b893ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 12% 12%, rgba(45, 232, 207, 0.09), transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(255, 176, 87, 0.1), transparent 42%),
    radial-gradient(circle at 78% 78%, rgba(45, 232, 207, 0.06), transparent 44%),
    linear-gradient(180deg, #04070a 0%, #070c12 45%, #080f17 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.04) 98%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.04) 98%);
  background-size: 36px 36px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.bg-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  color: var(--text);
  letter-spacing: -0.02em;
}

h1,
.hero-title {
  color: var(--text);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(45, 232, 207, 0.12);
}

h2 {
  color: #f2f5f9;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.section-header h2.title-turquoise {
  color: var(--turquoise);
}

.section-header h2.title-orange {
  color: var(--orange);
}

.section-header h2.title-blue {
  color: var(--blue);
}

.section-header h2.title-green {
  color: var(--green);
}

.section-header h2.title-purple {
  color: var(--purple);
}

.h2-letter {
  display: inline-block;
  color: rgba(242, 245, 249, 0.92);
}

.h2-space {
  display: inline-block;
}

.h2-letter:nth-child(4n + 1) {
  color: rgba(45, 232, 207, 0.66);
}

.h2-letter:nth-child(4n + 2) {
  color: rgba(255, 176, 87, 0.66);
}

.h2-letter:nth-child(4n + 3) {
  color: rgba(107, 178, 255, 0.62);
}

.h2-letter:nth-child(4n + 4) {
  color: rgba(125, 255, 155, 0.6);
}

.section-header h2 {
  position: relative;
  padding-bottom: 14px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 170px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, currentColor 18%, currentColor 82%, transparent 100%);
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 70%, transparent);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.9, 1.4) 0.25s, opacity 0.18s cubic-bezier(0.2, 0, 0.9, 1.4) 0.25s;
}

.section-header.reveal.is-visible h2::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.section {
  padding: 64px 0 56px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 12px;
}

.section-header p {
  color: rgba(230, 237, 243, 0.78);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(45, 232, 207, 0.08);
  max-width: 650px;
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  overflow: visible;
  isolation: isolate;
}

.bg-orb::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: var(--orb-color, rgba(45, 232, 207, 0.65));
  filter: blur(70px);
  z-index: 0;
  opacity: 0.24;
}

.orb-code {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
}

.orb-code-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 200%;
  gap: 0;
  animation: orbCodeScroll 36s linear infinite;
  will-change: transform;
}

.orb-code-text {
  position: relative;
  min-height: 50%;
  margin: 0;
  padding: 42px 34px;
  box-sizing: border-box;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #d4d4d4;
  text-shadow: 0 0 10px rgba(45, 232, 207, 0.16);
  white-space: pre-line;
}

@keyframes orbCodeScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-code-scroll {
    animation: none;
  }
}

.orb-code-text .tok-kw {
  color: #c586c0;
}

.orb-code-text .tok-fn {
  color: #dcdcaa;
}

.orb-code-text .tok-str {
  color: #ce9178;
}

.orb-code-text .tok-num {
  color: #b5cea8;
}

.orb-code-text .tok-prop,
.orb-code-text .tok-var {
  color: #9cdcfe;
}

.orb-code-text .tok-op {
  color: #d4d4d4;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.orb-1 {
  top: -60px;
  left: -80px;
  --orb-color: rgba(45, 232, 207, 0.75);
}

.orb-2 {
  bottom: 20%;
  right: -120px;
  --orb-color: rgba(255, 176, 87, 0.72);
}

.orb-3 {
  top: 40%;
  left: 60%;
  --orb-color: rgba(45, 232, 207, 0.6);
}

@media (max-width: 768px) {
  .orb-code {
    opacity: 0.6;
  }

  .orb-code-text {
    font-size: 10px;
  }
}

@media (max-width: 1200px) {
  .orb-2 {
    right: -160px;
    bottom: 15%;
  }

  .orb-3 {
    left: 55%;
    top: 45%;
  }
}

@media (max-width: 992px) {
  .bg-orb {
    width: 260px;
    height: 260px;
  }

  .bg-orb::before {
    inset: -50px;
    filter: blur(60px);
  }

  .orb-1 {
    top: -80px;
    left: -100px;
  }

  .orb-2 {
    right: -160px;
    bottom: 12%;
  }

  .orb-3 {
    left: 50%;
    top: 55%;
  }

  .orb-code-text {
    inset: 36px 28px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .bg-orb {
    width: 220px;
    height: 220px;
    z-index: 0;
  }

  .bg-orb::before {
    inset: -40px;
    filter: blur(50px);
  }

  .orb-1 {
    top: -90px;
    left: -120px;
  }

  .orb-2 {
    right: -150px;
    bottom: 8%;
  }

  .orb-3 {
    left: 45%;
    top: 62%;
  }

  .orb-code-text {
    inset: 32px 24px;
  }

  .orb-code {
    opacity: 0.18;
  }

  .site-header,
  main,
  .site-footer {
    z-index: 2;
  }
}
