/* Indistractable design (from upshiftai/site) — soft dark, blue accent, Inter */
:root {
  --bg: #0f1115;
  --bg-soft: #161b22;
  --bg-body: #0f1115;
  --bg-surface: #161b22;
  --text: #ededed;
  --text-main: #ededed;
  --text-muted: #8b949e;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border: #30363d;
  --radius: 8px;
  --radius-sm: 6px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Product Hunt banner */
.ph-banner {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #da552f 0%, #e05a32 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ph-banner:hover {
  color: #fff;
  opacity: 0.95;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.nav-gh {
  color: var(--accent);
}

/* Mobile nav toggle (shown only on small screens) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .header nav,
  .header .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(15, 17, 21, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  .header.open nav,
  .header.open .nav-main {
    display: flex;
  }
  .header nav a,
  .header .nav-main a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .header nav a:last-child,
  .header .nav-main a:last-child {
    border-bottom: none;
  }
  .header .wrap {
    position: relative;
  }
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.hero-oneliner {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2.5rem;
  font-style: italic;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.hero-oneliner em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

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

/* Signup form */
.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin-bottom: 0.75rem;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.signup-form button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.signup-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.signup-success {
  color: var(--accent);
  font-weight: 500;
  margin: 0;
  padding: 0.65rem 0;
}

.cta .signup-form {
  max-width: 400px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* Trust bar */
.trust {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
}

.trust-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Compare section (vs Dependabot) */
.compare {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.compare-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  text-align: center;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding-left: 1.5rem;
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-card li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.compare-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.compare-other {
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.compare-other h3 {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0;
}

.compare-us {
  background: rgba(46, 160, 67, 0.08);
  border: 1px solid rgba(46, 160, 67, 0.35);
}

.compare-us h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0;
}

.compare-us li::before {
  content: "✓";
  color: var(--accent);
}

.compare-us li strong {
  color: var(--text);
}

.compare-disclaimer {
  margin: 1.5rem auto 0;
  max-width: 42em;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
  text-align: center;
}

/* Sections */
.problem,
.solution,
.today,
.pricing,
.faq,
.cta {
  padding: 3rem 0;
}

.problem { border-bottom: 1px solid var(--border); }

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

h3:first-child { margin-top: 0; }

.problem ul,
.today ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem li,
.today li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
}

.problem li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #f85149;
  font-weight: 600;
}

.today li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.pipeline {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin: 1rem 0 2rem;
}

.steps {
  margin: 0;
  padding-left: 1.5rem;
}

.steps li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

/* Install */
.install {
  background: var(--bg-soft);
  text-align: center;
  padding: 3rem 0;
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.install-box code {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

.install-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.install-note code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Pricing */
.pricing {
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.plan {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.plan h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.plan p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.plan-featured {
  border-color: var(--accent);
  background: rgba(46, 160, 67, 0.1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(46, 160, 67, 0.15);
}

.pricing-note {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.plan-featured h3 {
  color: var(--accent);
}

/* FAQ */
.faq dl {
  margin: 0;
}

.faq dt {
  font-weight: 600;
  margin-top: 1.25rem;
  color: var(--text);
}

.faq dt:first-child { margin-top: 0; }

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  padding-left: 0;
}

.faq code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Final CTA */
.cta {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta-primary {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-newsletter {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.waitlist-count-line {
  margin-top: 0;
}

.cta .signup-form {
  margin-top: 0.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-trademark {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Hero Install Box */
.install-hero {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.install-hero code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.install-hero .copy-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.install-hero .copy-btn .copy-btn-check {
  opacity: 0;
  color: #3fb950;
  transition: opacity 0.2s;
}
.install-hero .copy-btn.copied .copy-btn-text { color: #3fb950; }
.install-hero .copy-btn.copied .copy-btn-check { opacity: 1; }

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gh-btn svg {
  flex-shrink: 0;
}

/* Terminal Demo */
.demo {
  padding: 5rem 0;
  background: var(--bg-soft);
}

.demo h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.terminal-body .cmd {
  color: var(--text);
}

.terminal-body .success {
  color: #3fb950;
}

.terminal-body .warn {
  color: #d29922;
}

.terminal-body .heading {
  color: #58a6ff;
  font-weight: 500;
}

.terminal-body .subheading {
  color: var(--text);
  font-weight: 500;
}

.terminal-body .dim {
  color: #6e7681;
}

/* Demo Gallery */
.demo-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: -1rem 0 2rem;
  font-size: 1.1rem;
}

.demo-main {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.demo-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}
.demo-main img.demo-img {
  min-height: 200px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.demo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
}

.demo-card.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

.demo-icon {
  font-size: 1.5rem;
}

.demo-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.demo-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Section reveal (entrance) */
.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-reveal .trust-list > li,
.section-reveal .compare-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.section-reveal.in-view .trust-list > li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.section-reveal.in-view .trust-list > li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.section-reveal.in-view .trust-list > li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.section-reveal.in-view .trust-list > li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section-reveal.in-view .trust-list > li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.section-reveal.in-view .compare-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.section-reveal.in-view .compare-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
