/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: oklch(9% 0.012 165);
  --bg-1: oklch(12% 0.015 165);
  --bg-2: oklch(15% 0.018 165);
  --surface: oklch(17% 0.022 165);
  --surface-hover: oklch(21% 0.025 165);
  --border: oklch(26% 0.028 165 / 0.6);
  --border-light: oklch(34% 0.035 165 / 0.4);

  --green: oklch(65% 0.18 155);
  --teal: oklch(62% 0.17 185);
  --blue: oklch(65% 0.2 240);
  --emerald: oklch(70% 0.2 155);

  --text: oklch(94% 0.01 165);
  --text-muted: oklch(64% 0.04 165);
  --text-dim: oklch(44% 0.03 165);

  --code-bg: oklch(13% 0.02 240);
  --code-border: oklch(28% 0.04 240 / 0.5);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: oklch(9% 0.012 165 / 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { display: flex; align-items: center; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: oklch(65% 0.18 155 / 0.15);
  border: 1px solid oklch(65% 0.18 155 / 0.4);
  color: oklch(75% 0.15 155);
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

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

.btn-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}

.btn-nav:hover { border-color: var(--green); color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, oklch(65% 0.18 155 / 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(35% 0.04 165 / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, oklch(35% 0.04 165 / 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid oklch(65% 0.18 155 / 0.4);
  background: oklch(65% 0.18 155 / 0.08);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: oklch(78% 0.12 155);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Install block */
.install-block {
  max-width: 580px;
  margin: 0 auto 28px;
}

.install-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: left;
}

.cmd-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  flex-shrink: 0;
}

.install-cmd code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: oklch(85% 0.04 165);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--text); }
.copy-btn.copied { color: var(--green); }

.install-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.install-note a { color: var(--green); }
.install-note a:hover { text-decoration: underline; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: oklch(10% 0.01 165);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(65% 0.18 155 / 0.3);
}

.btn-primary--lg { padding: 14px 28px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--text); }
.btn-ghost--lg { font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover { border-color: var(--green); color: var(--text); }

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── Platforms ──────────────────────────────────────────────────────────── */
.platforms {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.platforms-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.platform-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.platform-badge:hover { border-color: var(--green); color: var(--text); transform: translateY(-2px); }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: oklch(65% 0.18 155 / 0.1);
  border: 1px solid oklch(65% 0.18 155 / 0.3);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.3);
}

.feature-card--large { grid-column: span 2; }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon--green  { background: oklch(65% 0.18 155 / 0.15); color: oklch(72% 0.15 155); }
.feature-icon--teal   { background: oklch(62% 0.17 185 / 0.15); color: oklch(70% 0.14 185); }
.feature-icon--blue   { background: oklch(65% 0.2 240 / 0.15); color: oklch(72% 0.16 240); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.feature-tags span {
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
}

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

.install-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.install-text .section-tag { margin-bottom: 16px; }

.install-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.install-text > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.install-options {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.install-option {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}

.install-option:hover { color: var(--text-muted); background: var(--surface); }

.install-option--active {
  background: var(--surface);
  color: var(--green);
  border: 1px solid oklch(65% 0.18 155 / 0.3);
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.code-block.hidden { display: none; }

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--code-border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.copy-code-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-sans);
  transition: color 0.15s;
}

.copy-code-btn:hover { color: var(--green); }

.code-block pre {
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: oklch(82% 0.04 165);
}

/* Requirements */
.install-requirements {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.install-requirements h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.req-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.req-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.req-icon--ok   { background: oklch(65% 0.18 155 / 0.15); color: oklch(72% 0.15 155); }
.req-icon--info { background: oklch(65% 0.2 240 / 0.15); color: oklch(72% 0.16 240); }

.req-item strong { display: block; font-size: 0.85rem; font-weight: 600; }
.req-item span   { font-size: 0.78rem; color: var(--text-dim); }

/* ─── Community ──────────────────────────────────────────────────────────── */
.community { padding: 100px 0; }

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

.community-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.community-card:hover { border-color: var(--green); transform: translateY(-3px); }

.community-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: oklch(65% 0.18 155 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(72% 0.15 155);
  margin-bottom: 16px;
}

.community-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.card-link { font-size: 0.8rem; font-weight: 600; color: var(--green); }

/* ─── VS table ───────────────────────────────────────────────────────────── */
.vs {
  padding: 100px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.vs-text .section-tag { margin-bottom: 16px; }

.vs-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.vs-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.vs-text a { color: var(--green); }
.vs-text a:hover { text-decoration: underline; }

.vs-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.vs-table { }

.vs-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  padding: 11px 24px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}

.vs-row:last-child { border-bottom: none; }
.vs-row:not(.vs-header):hover { background: var(--surface-hover); }

.vs-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-top: 16px;
}

.vs-header span:not(:first-child) {
  text-align: center;
  line-height: 1.4;
}

.vs-header small { font-weight: 400; font-size: 0.65rem; text-transform: none; letter-spacing: 0; }

.vs-row .yes, .vs-row .no {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.yes  { color: oklch(72% 0.18 155); }
.no   { color: var(--text-dim); font-weight: 400; font-size: 0.75rem; }

/* ─── CTA ────────────────────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, oklch(62% 0.17 185 / 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

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

.footer-brand { max-width: 200px; }

.footer-tagline { margin-top: 10px; font-size: 0.82rem; color: var(--text-dim); }

.footer-license {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: oklch(72% 0.15 155);
}

.footer-links { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 200;
  white-space: nowrap;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }
  .install-inner { grid-template-columns: 1fr; }
  .vs-inner { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .community-grid { grid-template-columns: 1fr; }
  .hero-social-proof { gap: 16px; }
  .proof-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 28px; }
  .install-cmd code { font-size: 0.72rem; }
  .cta-actions { flex-direction: column; }
}
