:root {
  --bg: #08131b;
  --bg-soft: #0c1b24;
  --panel: rgba(7, 17, 23, 0.82);
  --panel-strong: rgba(11, 24, 33, 0.94);
  --line: rgba(112, 168, 192, 0.18);
  --line-strong: rgba(112, 168, 192, 0.34);
  --text: #ecf7f7;
  --muted: #9fbbc2;
  --accent: #f59e0b;
  --accent-2: #22d3ee;
  --accent-3: #84cc16;
  --danger: #fb7185;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--display);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.16), transparent 30%),
    linear-gradient(180deg, #09131b 0%, #060b11 100%);
}

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

code,
pre {
  font-family: var(--mono);
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.7;
}

.glow-a {
  width: 24rem;
  height: 24rem;
  top: 3rem;
  left: -6rem;
  background: rgba(245, 158, 11, 0.18);
}

.glow-b {
  width: 18rem;
  height: 18rem;
  top: 24rem;
  right: -4rem;
  background: rgba(34, 211, 238, 0.18);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 88%);
}

.topbar,
.hero,
.stats,
.section,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  filter: drop-shadow(0 10px 22px rgba(34, 211, 238, 0.22));
}

.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3.25rem, 8vw, 6.6rem);
  max-width: 12ch;
}

.lede {
  max-width: 40rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #120d05;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.hero-badges li,
.tool-chip {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7ebee;
  font-size: 0.9rem;
}

.terminal-shell,
.feature-card,
.workflow-step,
.install-card,
.stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.terminal-shell {
  overflow: hidden;
  animation: bob 8s ease-in-out infinite;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-chrome span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(236, 247, 247, 0.16);
}

.terminal-chrome span:first-child {
  background: #fb7185;
}

.terminal-chrome span:nth-child(2) {
  background: #f59e0b;
}

.terminal-chrome span:nth-child(3) {
  background: #84cc16;
}

.terminal-chrome strong {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.terminal-layout {
  display: grid;
  grid-template-columns: 10rem 1fr;
}

.workspace-sidebar {
  min-height: 24rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.workspace-sidebar p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-item {
  display: block;
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: var(--display);
}

.sidebar-item.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}

.sidebar-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.terminal-main {
  padding: 1rem;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tab-pill {
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e8eb;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.tab-pill.pinned {
  background: rgba(245, 158, 11, 0.12);
  color: #ffd899;
}

.tab-pill.live {
  background: rgba(132, 204, 22, 0.12);
  color: #d9f99d;
}

.terminal-lines {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: #081018;
  min-height: 17rem;
}

.terminal-lines p {
  margin: 0 0 0.82rem;
  color: #c7dde1;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
}

.prompt {
  color: var(--accent-2);
  margin-right: 0.5rem;
}

.typing {
  color: #f9e0a8;
}

.cursor {
  display: inline-block;
  width: 0.65ch;
  height: 1.1em;
  margin-left: 0.1rem;
  vertical-align: middle;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.stats article {
  padding: 1.25rem;
}

.stats strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 4rem 0 0;
}

.section-heading {
  max-width: 42rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 14ch;
}

.feature-grid,
.install-grid,
.workflow-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.workflow-steps {
  grid-template-columns: repeat(3, 1fr);
}

.install-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.workflow-step,
.install-card {
  padding: 1.4rem;
}

.feature-card h3,
.workflow-step h3,
.install-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.feature-card p,
.workflow-step p,
.install-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.tool-chip {
  font-family: var(--mono);
}

.install-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 18px;
  background: #081018;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 4rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 270ms;
}

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

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .workflow-steps,
  .install-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .terminal-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 640px) {
  .topbar,
  .hero,
  .stats,
  .section,
  .footer {
    width: min(100% - 1.2rem, 1120px);
  }

  .topbar {
    padding-top: 0.9rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

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

  .button {
    justify-content: center;
  }
}

