:root {
  color-scheme: dark;
  --bg: #050308;
  --bg-alt: #0c0b12;
  --accent: #82f9a1;
  --accent-strong: #5ef1dd;
  --text: #f4f4f6;
  --text-muted: #a0a0b8;
  --border: rgba(130, 249, 161, 0.2);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: radial-gradient(circle at 20% 20%, rgba(130, 249, 161, 0.08), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(94, 241, 221, 0.12), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

main {
  width: min(1080px, 94vw);
  padding: clamp(2rem, 4vw + 1rem, 5rem) 0;
  position: relative;
}

.noise {
  pointer-events: none;
  inset: 0;
  position: fixed;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"%3E%3Cfilter id="n" x="0" y="0" width="100%25" height="100%25"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"%3E%3C/feTurbulence%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width="200" height="200" filter="url(%23n)" opacity="0.08" /%3E%3C/svg%3E');
  opacity: 0.08;
  mix-blend-mode: screen;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 3vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 11, 18, 0.95), rgba(5, 3, 8, 0.9));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(130, 249, 161, 0.12);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 241, 221, 0.4);
  background: rgba(12, 11, 18, 0.8);
  color: var(--accent);
}

.hero__badge::before {
  content: '∴';
  font-size: 0.85rem;
}

.hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem);
  letter-spacing: -0.02em;
}

.hero__lead {
  color: var(--text-muted);
  max-width: 44ch;
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  background: var(--accent);
  color: #061008;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(130, 249, 161, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(130, 249, 161, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(94, 241, 221, 0.5);
  box-shadow: none;
}

.hero__matrix {
  position: relative;
  border-radius: calc(var(--radius) - 4px);
  background: radial-gradient(circle at 20% 20%, rgba(94, 241, 221, 0.18), transparent 70%),
              rgba(16, 15, 22, 0.9);
  border: 1px solid rgba(94, 241, 221, 0.2);
  padding: 1.5rem;
  display: flex;
  align-items: stretch;
}

.matrix__grid {
  position: relative;
  flex: 1;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(130, 249, 161, 0.15);
  backdrop-filter: blur(2px);
  padding: 1.6rem;
}

.matrix__code {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: rgba(233, 255, 243, 0.85);
  line-height: 1.5;
}

.glow {
  position: absolute;
  inset: auto;
  height: 40%;
  width: 70%;
  filter: blur(70px);
  opacity: 0.35;
}

.glow--top {
  top: -20%;
  left: 10%;
  background: var(--accent-strong);
}

.glow--bottom {
  bottom: -20%;
  right: -10%;
  background: var(--accent);
}

section {
  margin-top: clamp(3rem, 4vw + 1rem, 5rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pillars article {
  background: rgba(15, 13, 22, 0.8);
  border-radius: var(--radius);
  border: 1px solid rgba(130, 249, 161, 0.12);
  padding: 1.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease;
}

.pillars article:hover {
  transform: translateY(-4px);
}

.pillars h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.stack {
  background: rgba(12, 11, 18, 0.88);
  border-radius: var(--radius);
  border: 1px solid rgba(94, 241, 221, 0.18);
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.stack__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.stack article {
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(130, 249, 161, 0.12);
  background: rgba(10, 9, 15, 0.85);
  padding: 1.6rem;
  display: grid;
  gap: 0.6rem;
}

.stack time {
  font-family: var(--mono);
  color: var(--accent-strong);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.stack h3 {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
}

.stack p {
  margin: 0;
  color: var(--text-muted);
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  justify-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 249, 161, 0.3);
  background: rgba(130, 249, 161, 0.08);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mosaic__item {
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(18, 16, 26, 0.92), rgba(9, 8, 14, 0.92));
  border: 1px solid rgba(94, 241, 221, 0.14);
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.footer {
  margin-top: clamp(4rem, 5vw, 6rem);
  border-radius: var(--radius);
  border: 1px solid rgba(130, 249, 161, 0.18);
  background: rgba(9, 8, 14, 0.9);
  padding: clamp(2rem, 4vw, 3.4rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__links a {
  font-family: var(--mono);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(94, 241, 221, 0.4);
  padding-bottom: 0.2rem;
  transition: color 150ms ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__ascii pre {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(233, 255, 243, 0.72);
}

.footer__ascii p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero {
    padding: 2rem;
  }

  .hero__matrix {
    order: -1;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .stack__grid,
  .pillars,
  .mosaic {
    gap: 1rem;
  }

  .footer {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
