:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0d1018;
  --bg-elev: #11141d;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7e9ee;
  --text-dim: #aab0bc;
  --text-mute: #6c7280;
  --green: #07c160;
  --teal: #28d4a0;
  --indigo: #5b6cff;
  --amber: #ffb454;
  --grad: linear-gradient(135deg, #07c160 0%, #28d4a0 36%, #5b6cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(7, 193, 96, 0.2), rgba(91, 108, 255, 0.18));
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --sans: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 60px -26px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 90px -38px rgba(91, 108, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 840px 520px at 70% -12%, rgba(91, 108, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 760px 440px at 8% 28%, rgba(7, 193, 96, 0.12), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 1100px 700px at 50% 0%, black 0%, transparent 72%);
}

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

a:hover {
  color: #fff;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links,
.nav-actions,
.gh-btn,
.hero-cta,
.mini-points {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #05070c;
  color: var(--green);
  box-shadow: 0 4px 16px -4px rgba(91, 108, 255, 0.55);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-name {
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-name span {
  color: var(--text-dim);
  font-weight: 600;
}

.nav-links {
  gap: 26px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 560;
  transition: color 0.18s ease;
}

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

.nav-actions {
  gap: 10px;
}

.lang-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  font: 700 12px/1 var(--sans);
  padding: 6px 12px;
  transition: all 0.18s ease;
}

.lang-toggle button.active {
  background: var(--text);
  color: var(--bg);
}

.gh-btn {
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 13px;
  font-weight: 720;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.gh-btn:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.gh-btn svg {
  width: 14px;
  height: 14px;
}

.star-count {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 630px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h1::selection,
h2::selection,
p::selection {
  background: rgba(40, 212, 160, 0.32);
}

.hero-sub {
  margin-bottom: 26px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.62;
}

.hero-cta {
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta.tight {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 760;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 10px 30px -12px rgba(91, 108, 255, 0.72);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 14px 36px -12px rgba(91, 108, 255, 0.82);
}

.btn-ghost,
.btn-star {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.btn-ghost:hover,
.btn-star:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.btn-star {
  color: #fff;
}

.mini-points {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
}

.hero-shot {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0e1119 0%, #090c13 100%);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero-shot img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-shot {
  --demo-loop: 41.6s;
}

.demo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #07090f;
}

.demo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-overlay {
  position: relative;
  z-index: 2;
  padding: 16px 18px 17px;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(7, 9, 15, 0.94));
}

.demo-progress-track {
  overflow: hidden;
  height: 5px;
  margin-bottom: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  animation: demo-progress var(--demo-loop) linear infinite;
}

.demo-overlay-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
}

.demo-step-list {
  position: relative;
  min-height: 23px;
}

.demo-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: demo-step var(--demo-loop) ease-in-out infinite;
}

.demo-step-two {
  animation-delay: calc(var(--demo-loop) * 0.25);
}

.demo-step-three {
  animation-delay: calc(var(--demo-loop) * 0.5);
}

.demo-step-four {
  animation-delay: calc(var(--demo-loop) * 0.75);
}

.demo-step span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(7, 193, 96, 0.78);
}

.demo-step-two span {
  background: var(--teal);
  box-shadow: 0 0 14px rgba(40, 212, 160, 0.72);
}

.demo-step-three span {
  background: var(--indigo);
  box-shadow: 0 0 14px rgba(91, 108, 255, 0.72);
}

.demo-step-four span {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 180, 84, 0.72);
}

.demo-step strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.demo-step em {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  font-style: normal;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-shot figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 560;
}

@keyframes demo-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes demo-step {
  0%,
  24% {
    opacity: 1;
    transform: translateY(0);
  }

  30%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }
}

.split-section,
.answer-section,
.screenshots-section,
.quickstart-section,
.final-cta {
  padding-top: 74px;
  padding-bottom: 74px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.section-eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.quick-card h2,
.final-cta h2 {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 830;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

.section-head p,
.quick-card p,
.final-cta p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 16px;
}

.center {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.center h2,
.center p {
  margin-right: auto;
  margin-left: auto;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feature-list article:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.feature-list h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
}

.feature-list p {
  color: var(--text-dim);
  font-size: 14px;
}

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

.answer-grid article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.answer-grid h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.answer-grid p {
  color: var(--text-dim);
  font-size: 14px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--border);
}

.shot-wide img {
  aspect-ratio: 16 / 9;
}

.shot-card figcaption {
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.quick-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  box-shadow: var(--shadow);
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1119 0%, #090c13 100%);
  box-shadow: 0 18px 56px -28px rgba(0, 0, 0, 0.8);
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff5d6c;
}

.terminal-bar span:nth-child(2) {
  background: #ffb454;
}

.terminal-bar span:nth-child(3) {
  background: #07c160;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #dbe6f5;
  font: 500 13px/1.72 var(--mono);
}

.final-cta {
  max-width: 860px;
  text-align: center;
}

.final-cta h2,
.final-cta p,
.final-cta .hero-cta {
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
}

footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-section,
  .quick-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero {
    padding-top: 58px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  .nav {
    min-height: 60px;
  }

  .brand-name {
    font-size: 12px;
  }

  .star-count {
    display: none;
  }

  .gh-btn {
    padding: 0 10px;
  }

  .hero {
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-shot img {
    aspect-ratio: 4 / 3;
  }

  .split-section,
  .answer-section,
  .screenshots-section,
  .quickstart-section,
  .final-cta {
    padding-top: 50px;
    padding-bottom: 50px;
  }

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

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

  .shot-card,
  .shot-wide {
    grid-column: auto;
  }

  .quick-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-actions {
    gap: 6px;
  }

  .lang-toggle button {
    padding: 6px 9px;
  }

  .gh-btn span:not(.star-count) {
    display: none;
  }

  .hero-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-points {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-points span {
    justify-content: center;
  }

  .demo-overlay {
    padding: 12px;
  }

  .demo-overlay-title {
    font-size: 13px;
    line-height: 1.25;
  }

  .demo-step-list {
    min-height: 34px;
  }

  .demo-step {
    align-items: flex-start;
  }

  .demo-step em {
    display: none;
  }
}
