:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111c33;
  --surface-2: #15213d;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent: #34d399;
  --accent-soft: #a7f3d0;
  --accent-2: #22d3ee;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1140px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1100px 600px at 85% -15%, rgba(52, 211, 153, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f8fafc;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

.gradient-text {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent) 50%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #10b981);
  color: #06281d;
  box-shadow: 0 12px 30px -12px rgba(52, 211, 153, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); color: #06281d; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(52, 211, 153, 0.5); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #f8fafc;
}
.brand:hover { color: #f8fafc; }
.brand-mark { width: 28px; height: 28px; }
.brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: #f8fafc; }

.nav-cta { padding: 9px 16px; font-size: 0.88rem; }

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

/* Hero */
.hero { padding: 90px 0 100px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.lede { font-size: 1.1rem; max-width: 580px; color: var(--text-dim); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.6rem;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Terminal */
.hero-visual {
  position: relative;
}
.terminal {
  background: #050a15;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(52, 211, 153, 0.06),
              0 0 60px -20px rgba(52, 211, 153, 0.18);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.terminal-body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-prompt { color: var(--accent); }
.t-cmd { color: #f8fafc; }
.t-out { color: var(--text-faint); }
.t-ok { color: var(--accent); }
.t-dim { color: var(--text-faint); font-style: italic; }
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Section heads */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head p { font-size: 1.02rem; color: var(--text-dim); }

/* Features */
.features { padding: 100px 0; border-top: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--surface-2);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* Why */
.why { padding: 100px 0; border-top: 1px solid var(--border); }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.5);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 19px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.workflow-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}
.workflow-list li:last-child { border-bottom: none; }
.step-dot {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Stack */
.stack { padding: 100px 0; border-top: 1px solid var(--border); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
.stack-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.stack-col h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.stack-col ul { list-style: none; padding: 0; margin: 0; }
.stack-col li {
  padding: 8px 0;
  color: var(--text);
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--border);
}
.stack-col li:last-child { border-bottom: none; }

/* Install */
.install { padding: 100px 0; border-top: 1px solid var(--border); }

.install-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto 32px;
}
@media (max-width: 820px) { .install-tabs { grid-template-columns: 1fr; } }

.install-tab {
  background: #050a15;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.install-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.install-os {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}
.install-shell {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.install-tab pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.install-tab pre code { color: inherit; font-family: inherit; }

.install-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto 28px;
}
@media (max-width: 820px) { .install-meta { grid-template-columns: 1fr; } }

.install-meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.install-meta-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.install-meta-card p { font-size: 0.95rem; margin: 0 0 10px; }
.install-actions {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.install-actions li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 36px;
  font-size: 0.94rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.install-actions li:last-child { border-bottom: none; }
.install-actions li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.3);
  width: 26px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.install-url {
  margin: 8px 0 14px;
  background: #050a15;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
}
.install-url code { color: inherit; font-family: inherit; }
.install-update {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}
.install-update code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f8fafc;
  font-size: 0.85rem;
}

.install-manual {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.install-manual summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.install-manual summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}
.install-manual[open] summary::after { content: "−"; }
.install-manual pre {
  margin: 16px 0 0;
  background: #050a15;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre-wrap;
}
.install-manual pre code { color: inherit; font-family: inherit; }

/* License */
.license { padding: 100px 0; border-top: 1px solid var(--border); }

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .license-grid { grid-template-columns: 1fr; } }

.license-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.license-card-free {
  background: linear-gradient(170deg, rgba(52, 211, 153, 0.10), var(--surface) 60%);
  border-color: rgba(52, 211, 153, 0.35);
}
.license-card-pro {
  background: linear-gradient(170deg, rgba(34, 211, 238, 0.08), var(--surface) 60%);
  border-color: rgba(34, 211, 238, 0.30);
}

.license-card-head { margin-bottom: 18px; }
.license-card-head h3 {
  font-size: 1.35rem;
  margin: 12px 0 8px;
}
.license-card-head p { font-size: 0.95rem; margin: 0; }

.license-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
}
.license-tag-free {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--accent);
}
.license-tag-pro {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent-2);
}

.license-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.license-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.license-list li:last-child { border-bottom: none; }
.license-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.5);
}
.license-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.license-card-pro .license-list li::before {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
}
.license-card-pro .license-list li::after {
  border-left-color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.license-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pricing tiers */
.pricing-tiers {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}
.pricing-tiers h3 {
  text-align: center;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.pricing-card h4 {
  font-size: 1rem;
  color: #f8fafc;
  margin: 0 0 4px;
}
.pricing-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.pricing-card p:last-child {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}
.pricing-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.pricing-note a { color: var(--accent); }

/* Fine print */
.license-fineprint {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: rgba(248, 113, 113, 0.04);
}
.license-fineprint h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.license-fineprint h4 em {
  font-style: normal;
  color: var(--danger);
}
.license-fineprint ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .license-fineprint ul { grid-template-columns: 1fr; } }
.license-fineprint li {
  padding-left: 22px;
  position: relative;
  color: var(--text);
  font-size: 0.92rem;
}
.license-fineprint li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: rgba(0, 0, 0, 0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tag { color: var(--text-dim); margin-top: 12px; max-width: 280px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--text); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-bottom p { margin: 0; }
