:root {
  --bg: #050505;
  --bg-elev: #0e0e10;
  --bg-card: #121214;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-muted: #9a9aa3;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --green: #3ecf8e;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 820px;
}

.muted {
  color: var(--text-muted);
}

.icon {
  flex: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

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

.brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
}

.lang-switch:hover,
.icon-link:hover {
  color: var(--text);
}

.icon-link {
  color: var(--text-muted);
  display: flex;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

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

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

.btn-primary:hover {
  background: #e7e7e9;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: var(--accent-soft);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 900px;
  background: radial-gradient(50% 45% at 50% 40%, rgba(120, 140, 255, 0.18), transparent 70%),
    radial-gradient(30% 30% at 30% 30%, rgba(62, 207, 142, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-logo {
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-strong);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #a8b4ff 50%, #7ee2b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-version {
  font-size: 13px;
  margin: 18px 0 0;
}

.hero-window {
  width: 100%;
  max-width: 980px;
  margin-top: 64px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #111114, #0a0a0b);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-align: left;
}

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

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3f;
}

.window-bar span:nth-child(1) {
  background: #ff5f57;
}
.window-bar span:nth-child(2) {
  background: #febc2e;
}
.window-bar span:nth-child(3) {
  background: #28c840;
}

.window-bar em {
  margin: 0 auto;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  transform: translateX(-24px);
}

.window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}

.window-side {
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.window-side i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.window-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.goal-card {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 18px;
  max-width: 520px;
}

.goal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.goal-head .muted {
  margin-left: auto;
  font-size: 13px;
}

.goal-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
}

.goal-card li {
  position: relative;
  padding-left: 22px;
}

.goal-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}

.goal-card li.done::before {
  background: var(--green);
  border-color: var(--green);
}

.goal-card li.active {
  color: var(--text);
}

.goal-card li.active::before {
  border-color: #a8b4ff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(168, 180, 255, 0.15);
  }
}

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  background: #0c0c0e;
}

.model-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  white-space: nowrap;
}

/* ---------- sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section h2,
.releases-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 48px;
  font-size: 17px;
}

.section-sub strong {
  color: var(--text);
}

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

.feature-card,
.plan-card,
.download-card,
.cli-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.feature-card h3,
.plan-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p,
.plan-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card p {
  flex: 1;
  margin-bottom: 18px;
}

.plan-card .btn {
  align-self: flex-start;
}

.plan-card-featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(168, 180, 255, 0.08), var(--bg-card) 60%);
}

.fine-print {
  font-size: 13px;
  margin: 20px 0 0;
}

/* ---------- downloads ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.download-card h3 {
  margin: 0;
  font-size: 20px;
}

.download-card.is-current {
  border-color: rgba(255, 255, 255, 0.32);
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 10px;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.download-row:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.download-row-label,
.download-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-row-meta {
  font-size: 13px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-accent {
  background: rgba(62, 207, 142, 0.14);
  color: var(--green);
}

.cli-card {
  margin-top: 18px;
}

.cli-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cli-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.cli-head p {
  margin: 0;
  font-size: 14px;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 12px 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #08080a;
  overflow-x: auto;
}

.code-line code {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  flex: 1;
}

.copy-btn {
  flex: none;
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cli-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 14px;
}

.cli-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

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

.empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ---------- faq / releases ---------- */
.faq-list {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.faq-item,
.release-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 0 20px;
}

.faq-item summary,
.release-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker,
.release-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after,
.release-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after,
.release-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.release-item summary .muted {
  font-weight: 400;
  font-size: 14px;
}

.releases-page {
  border-top: 0;
  padding-top: 56px;
}

.releases-page .release-item {
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 24px;
}

.asset-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
}

.asset-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.asset-list a {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

.asset-list a:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand .muted {
  font-weight: 400;
}

.disclaimer {
  margin: 0;
  color: var(--text-muted);
  max-width: 900px;
  font-size: 13px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--text-muted);
}

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature-grid,
  .plan-grid,
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .plan-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 64px;
  }
  .window-body {
    grid-template-columns: 1fr;
  }
  .window-side {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
}
