:root {
  color-scheme: dark;
  --bg: #050b09;
  --bg-alt: #0b1512;
  --card: rgba(10, 22, 19, 0.8);
  --ink: #ffffff;
  --muted: #b0b0b0;
  --accent: #00d9c5;
  --accent-strong: #00b8a7;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --hero-bg: #050b09;
  --hero-ink: #ffffff;
  --hero-muted: #b0b0b0;
}

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

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(0, 217, 197, 0.08), transparent 45%),
    linear-gradient(180deg, #0a1f1a 0%, #000000 100%);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.2;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
}

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

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
  justify-content: center;
  grid-column: 2;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 10px;
  justify-self: end;
  grid-column: 3;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 56px 40px 40px;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-dark {
  background: radial-gradient(circle at top left, rgba(0, 217, 197, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 184, 167, 0.18), transparent 50%),
    var(--hero-bg);
  color: var(--hero-ink);
}

.hero-dark p {
  color: var(--hero-muted);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 217, 197, 0.1);
  color: var(--hero-muted);
  border: 1px solid rgba(0, 217, 197, 0.25);
  font-size: 0.8rem;
  width: fit-content;
  backdrop-filter: blur(10px);
  margin: 0 auto 10px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(37, 213, 200, 0.7);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.hero-highlight {
  display: inline-block;
  color: var(--accent);
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(0, 217, 197, 0.35);
  margin-top: 8px;
}

.lede {
  font-size: 1.06rem;
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.btn.primary {
  background: var(--accent);
  color: #001116;
  border-color: var(--accent);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 217, 197, 0.4);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--hero-ink);
}

.btn.secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 197, 0.6);
  box-shadow: 0 12px 24px rgba(10, 20, 30, 0.45);
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hero-ink);
  background: transparent;
}

.btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  justify-content: center;
  color: var(--hero-muted);
  font-size: 0.9rem;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 217, 197, 0.2);
  backdrop-filter: blur(8px);
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 217, 197, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(0, 217, 197, 0.12);
}

.hero-terminal {
  grid-column: 1 / -1;
  margin-top: 4px;
  background: #0b0f0e;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 22px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #22c55e;
}

.terminal-body {
  padding: 18px 20px 22px;
  color: #d9e6e2;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  text-align: left;
  position: relative;
}

.terminal-body .prompt {
  color: #66ffd6;
  font-weight: 600;
}

.terminal-body .ok {
  color: #2ce3a3;
  font-weight: 600;
}

.terminal-body .warn {
  color: #f5b851;
  font-weight: 600;
}

.terminal-body .dim {
  color: rgba(217, 230, 226, 0.6);
}

.terminal-body .path {
  color: #7fe7d4;
}

.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.25;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 197, 0.25), transparent 70%);
  right: -140px;
  top: -120px;
  pointer-events: none;
}

.hero-divider {
  height: 1px;
  margin: 48px auto 0;
  max-width: 720px;
  background: linear-gradient(
    90deg,
    rgba(0, 217, 197, 0),
    rgba(0, 217, 197, 0.25),
    rgba(0, 217, 197, 0)
  );
}

.hero-content > * {
  animation: fadeUp 0.7s ease both;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.28s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.36s;
}

.hero-terminal {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.3s;
}

.section {
  margin-top: 72px;
}

.section + .section {
  padding-top: 64px;
  border-top: 1px solid rgba(0, 217, 197, 0.12);
}

.section-dark {
  background: rgba(7, 14, 12, 0.9);
  color: #e6edf5;
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 217, 197, 0.12);
}

.section-dark p {
  color: #c9d5e6;
}

.section-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.callout {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.stack {
  display: grid;
  gap: 18px;
}

.stack-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 150ms ease, border-color 150ms ease;
}

.stack-number {
  font-weight: 600;
  color: var(--accent-strong);
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 28px;
}

.feature-card {
  background: rgba(10, 22, 19, 0.7);
  border: 1px solid rgba(0, 217, 197, 0.12);
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 150ms ease, border-color 150ms ease;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.diagram-node {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.diagram-node span {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.diagram-line {
  height: 2px;
  background: var(--line);
  width: 60px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  background: var(--card);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.cta {
  margin-bottom: 56px;
}

.imprint {
  margin-bottom: 56px;
}

.imprint h1 {
  margin-bottom: 12px;
}

.imprint-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.imprint h3 {
  margin-bottom: 10px;
}

.imprint p {
  margin: 0 0 8px;
}

.cta-card {
  background: var(--card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow);
}

.signup-form {
  display: grid;
  gap: 12px;
  max-width: 380px;
}

.signup-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: rgba(5, 10, 8, 0.7);
  color: var(--ink);
}

.signup-form button {
  background: var(--accent);
  color: #001116;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.signup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 213, 200, 0.4);
}

.form-note {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.footer {
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 28px 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(0, 217, 197, 0.12);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.footer p {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
}

.footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 150ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mono {
  font-family: "JetBrains Mono", "Consolas", monospace;
}

.meta {
  font-size: 0.92rem;
  color: var(--muted);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(0);
  animation: float 12s ease-in-out infinite;
}

body::before {
  top: 8%;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 217, 197, 0.18), transparent 70%);
}

body::after {
  bottom: -120px;
  right: -160px;
  background: radial-gradient(circle, rgba(0, 217, 197, 0.14), transparent 70%);
  animation-delay: 3s;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s steps(1, end) infinite;
}

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 28px;
}

.pricing-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 217, 197, 0.15);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.pricing-card h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.price-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
}

.pricing-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.pricing-card.featured {
  border-color: rgba(0, 217, 197, 0.45);
  box-shadow: 0 20px 44px rgba(0, 217, 197, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-shell {
    display: none;
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    background: rgba(4, 10, 8, 0.92);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(0, 217, 197, 0.2);
    backdrop-filter: blur(12px);
    grid-template-columns: 1fr;
    gap: 16px;
    z-index: 10;
  }

  body.nav-open .nav-shell {
    display: grid;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .nav-actions {
    justify-self: center;
  }

  .hero {
    padding: 28px 22px;
  }

  .cta-card {
    padding: 24px;
  }

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

  .diagram-line {
    width: 100%;
    height: 1px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

@media (hover: hover) {
  .stack-item:hover,
  .feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 197, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .terminal-cursor,
  .hero-content > *,
  .hero-terminal {
    animation: none;
  }
}
