* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fafafaf8;
  color: #1e293b;
  line-height: 1.5;
}

a { color: inherit; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(120, 53, 15, 0.05);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: #0f172a;
}

.brand-dot { color: #d97706; }

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg { width: 1rem; height: 1rem; }
.brand-mark.sm { width: 1.25rem; height: 1.25rem; border-radius: 0.4rem; }
.brand-mark.sm svg { width: 0.75rem; height: 0.75rem; }

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #b45309; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg { padding: 0.85rem 1.25rem; font-size: 0.9rem; border-radius: 0.85rem; }
.btn-dark { background: #0f172a; color: #fffbeb; }
.btn-dark:hover { background: #1e293b; }
.btn-amber { background: #d97706; color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25); }
.btn-amber:hover { background: #b45309; }
.btn-outline { background: #fff; color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.12); }
.btn-ghost { background: transparent; color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.12); }
.btn-white { background: #fff; color: #0f172a; font-weight: 700; }

.hero {
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid rgba(253, 230, 138, 0.8);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pill svg { width: 0.9rem; height: 0.9rem; color: #d97706; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.grad {
  background: linear-gradient(90deg, #d97706, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.125rem;
  color: #475569;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.lede code {
  background: rgba(254, 243, 199, 0.7);
  color: #78350f;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.install-hint {
  font-size: 0.8rem;
  color: #64748b;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.lead {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  display: flex;
  gap: 0.5rem;
}

.lead input {
  flex: 1;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(120, 53, 15, 0.1);
  background: #fff;
  outline: none;
}

.lead input:focus { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35); }
.lead .btn { border-radius: 0.75rem; font-size: 0.875rem; }

.lead-ok { font-size: 0.8rem; color: #047857; font-weight: 500; margin-top: 0.75rem; }

.preview { margin-bottom: 6rem; }

.window {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(120, 53, 15, 0.1);
  box-shadow: 0 20px 50px rgba(120, 53, 15, 0.08);
  overflow: hidden;
  padding: 0.5rem;
}

.window-bar {
  background: rgba(241, 245, 249, 0.85);
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  padding: 0.75rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.dot.rose { background: #fb7185; }
.dot.amber { background: #fbbf24; }
.dot.green { background: #34d399; }
.window-url { margin-left: 0.5rem; color: #94a3b8; }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  min-height: 16rem;
}

.preview-col {
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.amber-text { color: #b45309; }

.clip-card {
  background: rgba(255, 251, 235, 0.7);
  border: 1px solid rgba(253, 230, 138, 0.6);
  padding: 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
}

.clip-title { font-weight: 600; color: #0f172a; }
.clip-body { color: #64748b; font-size: 0.7rem; margin-top: 0.25rem; }

.folder-row { font-size: 0.8rem; padding: 0.35rem; border-radius: 0.3rem; color: #475569; }
.folder-row.active { background: #f1f5f9; color: #0f172a; font-weight: 600; }

.node {
  background: #fef3c7;
  color: #78350f;
  font-weight: 500;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  border: 1px solid #fde68a;
}

.preview-col p { font-size: 0.8rem; color: #334155; }
.preview-col pre {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  font-size: 0.7rem;
  color: #64748b;
}

.features { padding: 4rem 1.5rem; }

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
}

.section-head h2 { font-size: 1.85rem; color: #0f172a; margin-bottom: 0.75rem; }
.section-head p { color: #475569; font-size: 0.9rem; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(120, 53, 15, 0.05);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: #475569; font-size: 0.875rem; }

.banner { margin: 3rem auto; }

.banner-card {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.banner-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.banner-card p { color: #fef3c7; font-size: 0.9rem; max-width: 32rem; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-brand { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-brand span:first-of-type { font-weight: 600; color: #334155; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #92400e; }

.install-panel {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.4);
}

.install-panel[hidden] { display: none; }

.install-panel-card {
  width: min(420px, 100%);
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

.install-panel-card h2 { font-size: 16px; margin-bottom: 8px; color: #0f172a; }
.install-panel-card p { font-size: 13px; color: #64748b; line-height: 1.45; margin-bottom: 14px; }
.install-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.install-panel-actions .toolbar-btn {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .preview-grid { grid-template-columns: 1fr 1fr 2fr; }
  .span-2 { grid-column: span 1; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 3rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .span-2 { grid-column: span 1; }
}
