:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #111722;
  --panel-2: #17202e;
  --line: #263246;
  --text: #eef4ff;
  --muted: #9daec4;
  --green: #67e8a5;
  --blue: #6bb7ff;
  --amber: #f5c56b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.split-actions,
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #08110d;
  border-color: var(--green);
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.terminal-shot {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d121b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.window-bar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
}

.window-bar span:nth-child(2) {
  background: var(--green);
}

.window-bar span:nth-child(3) {
  background: var(--blue);
}

.ide-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 388px;
}

.ide-grid aside {
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.ide-grid section {
  padding: 28px;
}

.code-line {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.code-line.accent {
  color: var(--green);
}

.section {
  padding: 76px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

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

.download-card,
.release-panel,
.screenshot-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.download-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.download-card.recommended {
  background: linear-gradient(180deg, #15251d, var(--panel));
  border-color: rgba(103, 232, 165, 0.46);
}

.download-card h3,
.release-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.download-card p,
.section p,
li {
  color: var(--muted);
  line-height: 1.6;
}

.release-meta {
  margin-top: 16px;
  color: var(--blue) !important;
  font-size: 14px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(103, 232, 165, 0.14);
  color: var(--green) !important;
  font-size: 12px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
}

.release-panel {
  padding: 24px;
}

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

.screenshot-card {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--panel-2);
}

.docs .doc-links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  color: var(--blue);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .download-grid,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .terminal-shot {
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ide-grid aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
