:root {
  --bg: #0d0d17;
  --bg-alt: #11111d;
  --surface: rgba(20, 20, 32, 0.84);
  --surface-strong: rgba(30, 30, 46, 0.95);
  --border: rgba(86, 101, 128, 0.32);
  --text: #ebedf5;
  --muted: #98a2be;
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.16);
  --accent-strong: #6ff4ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --radius-sm: 16px;
  --content-width: 1180px;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.18), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(111, 244, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #090910 0%, #0d0d17 48%, #0a0b12 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(80px);
}

.site-shell::before {
  top: 3rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(0, 229, 255, 0.12);
}

.site-shell::after {
  right: -5rem;
  bottom: 10rem;
  width: 16rem;
  height: 16rem;
  background: rgba(33, 82, 255, 0.12);
}

.hero,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.hero {
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 14, 24, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--accent);
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.35));
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.topbar-links a:hover,
.topbar-links a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-strong);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 4.5rem 0 1rem;
}

.hero-copy {
  animation: rise-in 700ms ease both;
}

.hero-panel {
  animation: rise-in 850ms ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand,
.button {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p,
.feature-card p,
.stack-row p,
.mini-card p,
.cta-card p,
.footer,
.subfooter {
  color: var(--muted);
}

.hero-text {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #041118;
  background: linear-gradient(135deg, var(--accent) 0%, #86fbff 100%);
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.28);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.panel-grid,
.capability-grid {
  display: grid;
  gap: 1rem;
}

.panel-grid {
  height: 100%;
}

.mini-card,
.feature-card,
.stack-row,
.cta-card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 24, 36, 0.9), rgba(14, 15, 26, 0.96));
  box-shadow: var(--shadow);
}

.mini-card,
.feature-card,
.stack-row {
  border-radius: var(--radius);
}

.mini-card,
.feature-card {
  padding: 1.15rem;
}

.mini-card::before,
.feature-card::before,
.stack-row::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

.mini-label,
.stack-label {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.section {
  padding: 2.5rem 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

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

.feature-card {
  min-height: 13rem;
  animation: rise-in 700ms ease both;
}

.feature-card:nth-child(2) {
  animation-delay: 60ms;
}

.feature-card:nth-child(3) {
  animation-delay: 120ms;
}

.feature-card:nth-child(4) {
  animation-delay: 180ms;
}

.feature-card:nth-child(5) {
  animation-delay: 240ms;
}

.feature-card:nth-child(6) {
  animation-delay: 300ms;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.footer {
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.96rem;
}

.footer p {
  margin: 0;
}

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

.subfooter {
  max-width: 60rem;
  margin: 0.8rem auto 0;
  font-size: 0.86rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-content,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .stack-row,
  .cta-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .hero,
  .section,
  .footer {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .topbar {
    border-radius: 24px;
    padding: 1rem;
  }

  .topbar,
  .topbar-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 0.75rem;
  }

  .hero-content {
    padding-top: 3rem;
  }

  h1 {
    max-width: none;
  }

  .button,
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
