:root {
  --bg: #0a0d0f;
  --bg-panel: #0d1215;
  --bg-elevated: #12171b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6edf0;
  --text-dim: #8b9aa3;
  --text-dimmer: #64737b;
  --accent: #5eead4;
  --accent-ink: #0a0d0f;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #f5fdfb;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img {
  display: block;
  max-width: 100%;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
  box-sizing: border-box;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(10, 13, 15, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav__brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f2f6f7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav__cta {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 7px;
}

.nav__cta:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.nav__menu {
  display: none;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 10vw, 96px) 20px clamp(40px, 8vw, 64px);
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f5fbfa;
  max-width: 820px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  margin: 0;
  max-width: 560px;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 8px;
}

.btn--primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.btn--primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
}

.btn--ghost {
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--text-dimmer);
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

kbd {
  background: #161c20;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 8px;
  color: #dfe8ea;
  font-family: var(--font-mono);
  font-size: 13px;
}

.kbd-row {
  display: inline-flex;
  gap: 4px;
}

/* Mock window */

.mock {
  margin-top: 40px;
  width: min(920px, 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mock__bar {
  height: 30px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3a4249;
}

.mock svg {
  display: block;
  width: 100%;
  height: auto;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg-panel);
}

/* Sections */

section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: #f2f6f7;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  background: var(--bg-panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature svg {
  color: var(--accent);
}

.feature h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f2f6f7;
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: rgba(94, 234, 212, 0.4);
}

.step h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f2f6f7;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Stack */

.stack {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.stack__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.stack__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stack__badge {
  font-size: 13px;
  font-weight: 600;
  color: #dfe8ea;
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 999px;
}

.stack__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-dimmer);
}

/* Footer */

.footer {
  padding: 40px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  opacity: 0.8;
}

.footer__brand span {
  font-size: 13px;
  color: var(--text-dimmer);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__version {
  font-size: 12px;
  color: #4a565d;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Responsive */

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav[data-open="true"] .nav__menu {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav__menu .nav__link,
  .nav__menu .nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
  }

  .nav__menu .nav__link:hover {
    background: rgba(255, 255, 255, 0.04);
  }

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

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

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

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