:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --quiet: #666;
  --accent: #7c9dff;
  --accent-hover: #99b4ff;
  --green: #6ee7b7;
  --amber: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  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;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 157, 255, 0.1);
  border: 1px solid rgba(124, 157, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -1.5px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Preview window */
.hero-preview {
  max-width: 820px;
  margin: 0 auto;
}
.preview-window {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.preview-dots {
  display: flex;
  gap: 6px;
}
.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.preview-dots span:first-child { background: #ff5f56; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #27c93f; }
.preview-title {
  font-size: 12px;
  color: var(--quiet);
}
.preview-body {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  min-height: 220px;
}
.preview-sidebar {
  padding: 12px;
  border-right: 1px solid var(--border);
  font-size: 12px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color: var(--muted);
}
.pf { padding: 3px 4px; border-radius: 4px; }
.pf-indent { padding-left: 16px; }
.pf-active { background: rgba(124, 157, 255, 0.12); color: var(--accent); }
.preview-editor {
  padding: 16px;
  font-size: 13px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  line-height: 1.8;
}
.pe-line { white-space: nowrap; }
.pe-kw { color: #c678dd; }
.pe-str { color: #98c379; }
.pe-fn { color: #61afef; }
.pe-num { color: #d19a66; }
.pe-comment { color: var(--quiet); }
.pe-ai { opacity: 0.5; border-left: 2px solid var(--accent); padding-left: 8px; }
.preview-chat {
  padding: 12px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.pc-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.pc-ai { background: var(--surface-2); color: var(--muted); }
.pc-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--quiet);
}

/* Sections */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0 0 48px;
  letter-spacing: -0.5px;
}

/* Features */
.features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 157, 255, 0.1);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Models */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.model-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.model-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.model-tag.adapt { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.model-tag.rod { background: rgba(124, 157, 255, 0.15); color: var(--accent); }
.model-tag.tex { background: rgba(110, 231, 183, 0.15); color: var(--green); }
.model-tag.tree { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.model-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.model-role {
  font-size: 13px;
  color: var(--quiet);
  margin: 0 0 8px;
}
.model-card > p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Pricing */
.pricing { background: var(--surface); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 720px;
}
.price-card {
  padding: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.price-card-plus {
  border-color: var(--accent);
}
.plus-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.price-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
}
.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.price-card li::before {
  content: "\2713 ";
  color: var(--green);
  font-weight: 700;
}
.price-card .btn {
  width: 100%;
}

/* Download */
.download { text-align: center; }
.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-inner h2 {
  font-size: 36px;
}
.download-inner > p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
}
.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.download-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--quiet);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--quiet);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar, .preview-chat { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
