:root {
  --bg: #050712;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.20), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

#network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  min-height: 72vh;
  padding: 86px 0 44px;
}

.hero-content,
.terminal,
.card,
.stack {
  border-radius: 32px;
}

.hero-content {
  padding: clamp(28px, 5vw, 58px);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  font-size: 13px;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.7;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  background: white;
  color: #020617;
}

.ghost {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.terminal {
  align-self: center;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.terminal pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #d1fae5;
  font: 14px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #67e8f9;
  animation: blink 0.9s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.card {
  padding: 26px;
}

.card h2,
.stack h2 {
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stack {
  padding: 28px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.footer {
  padding: 28px 0 4px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 720px);
    padding-top: 12px;
  }

  .nav {
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 24px;
    min-height: auto;
  }

  .hero-content,
  .terminal,
  .card,
  .stack {
    border-radius: 24px;
  }

  .terminal {
    min-height: 320px;
  }

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

@media (max-width: 420px) {
  .hero-content {
    padding: 24px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions a {
    width: 100%;
  }
}
