/* Doorman Design System */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #0b0e14;
  --surface: #12161f;
  --surface2: #1a1f2e;
  --border: #252b3b;
  --text: #e2e8f0;
  --text-dim: #8892a8;
  --text-faint: #5a6478;
  --green: #10b981;
  --green-dim: #065f46;
  --green-glow: rgba(16,185,129,0.15);
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --purple-glow: rgba(139,92,246,0.15);
  --yellow: #f59e0b;
  --red: #ef4444;
  --critical: #ff2d55;
  --high: #ff6b35;
  --medium: #ffb800;
  --low: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}

html { scroll-behavior: smooth }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px }
.section { padding: 96px 0 }
.section-alt { background: var(--surface) }
.section-purple { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(16,185,129,0.05)) }

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1 }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2 }
h3 { font-size: 1.25rem; font-weight: 600 }
/* Rotating tool name pill */
.rotating-tool {
  display: inline-block;
  background: #fff;
  color: #0b0e14;
  padding: 4px 16px;
  border-radius: 8px;
  font-weight: 800;
  animation: toolFade 0.3s ease;
}
@keyframes toolFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-dim { color: var(--text-dim) }
.text-faint { color: var(--text-faint) }
.text-green { color: var(--green) }
.text-purple { color: var(--purple) }
.text-center { text-align: center }
.subline { font-size: 1.25rem; color: var(--text-dim); max-width: 600px; margin: 16px auto 0 }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #fff }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px) }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border) }
.btn-secondary:hover { border-color: var(--text-dim); background: var(--surface) }
.btn-sm { padding: 8px 16px; font-size: 13px }
.btn-lg { padding: 16px 32px; font-size: 17px }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; color: var(--text) }
.logo span { color: var(--green) }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s }
.nav-links a:hover { color: var(--text) }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer }

/* Terminal */
.terminal {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  max-width: 700px; margin: 0 auto;
}
.terminal-bar {
  background: var(--surface); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50% }
.terminal-dot.red { background: #ff5f57 }
.terminal-dot.yellow { background: #febc2e }
.terminal-dot.green { background: #28c840 }
.terminal-title { color: var(--text-faint); font-size: 12px; margin-left: 8px }
pre.terminal-body {
  padding: 20px 24px; overflow-x: auto; margin: 0;
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  background: transparent; color: var(--text);
}
.terminal-body .prompt { color: var(--green) }
.terminal-body .cmd { color: var(--text); font-weight: 600 }
.terminal-body .dim { color: var(--text-faint) }
.terminal-body .critical { color: var(--critical); font-weight: 600 }
.terminal-body .high { color: var(--high) }
.terminal-body .medium { color: var(--medium) }
.terminal-body .low { color: var(--low) }
.terminal-body .green { color: var(--green) }
.terminal-body .score-bad { color: var(--red); font-weight: 700 }
.terminal-body .fixable { color: var(--green) }
.terminal-hero { max-width: 750px }

/* Terminal animation */
.anim-line { opacity: 0; animation: fadeIn 0.3s ease forwards }
.anim-1 { animation-delay: 0.3s }
.anim-2 { animation-delay: 1.0s }
.anim-3 { animation-delay: 1.5s }
.anim-4 { animation-delay: 2.0s }
.anim-5 { animation-delay: 2.3s }
.anim-6 { animation-delay: 3.0s }
.anim-7 { animation-delay: 3.3s }
.anim-8 { animation-delay: 3.8s }
.anim-9 { animation-delay: 4.0s }
.anim-10 { animation-delay: 4.5s }
.anim-11 { animation-delay: 5.0s }
@keyframes fadeIn { to { opacity: 1 } }

/* Fix terminal animation (triggered when visible) */
.anim-scroll { opacity: 0 }
.anim-scroll.visible { animation: fadeIn 0.3s ease forwards }
.anim-s1.visible { animation-delay: 0.2s }
.anim-s2.visible { animation-delay: 0.8s }
.anim-s3.visible { animation-delay: 1.3s }
.anim-s4.visible { animation-delay: 1.7s }
.anim-s5.visible { animation-delay: 2.1s }
.anim-s6.visible { animation-delay: 2.6s }
.anim-s7.visible { animation-delay: 3.0s }

/* Copy button */
.copy-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.copy-btn:hover { color: var(--text); border-color: var(--green) }
.copy-btn.copied { color: var(--green); border-color: var(--green) }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--text-faint) }
.card-icon { font-size: 28px; margin-bottom: 12px }
.card h3 { margin-bottom: 8px }
.card p { color: var(--text-dim); font-size: 14px; line-height: 1.6 }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px }

/* Stats */
.stats-row {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  padding: 48px 0;
}
.stat { text-align: center }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--green); letter-spacing: -0.02em }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px }

/* Badge */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green { background: var(--green-glow); color: var(--green) }
.badge-purple { background: var(--purple-glow); color: var(--purple) }

/* Tool selector (I built this with...) */
.tool-selector { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
.tool-pill {
  -webkit-appearance: none; appearance: none;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); padding: 12px 24px; border-radius: 28px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font); line-height: 1;
}
.tool-pill:hover { border-color: var(--text-faint); color: var(--text); background: var(--surface2) }
.tool-pill--active { background: var(--green); color: #fff; border-color: var(--green) }
.tool-content { max-width: 600px; margin: 32px auto 0 }

.tool-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: left;
}
.tool-card h3 { margin-bottom: 8px }
.tool-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 16px }
.tool-command {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-family: var(--mono); font-size: 14px; color: var(--green);
  margin-bottom: 16px;
}
.tool-command span { flex: 1 }
.tool-hint { color: var(--text-faint) !important; font-size: 13px !important; margin-bottom: 0 !important }

/* Steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-glow); color: var(--green);
  font-size: 18px; font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.6 }
.step code {
  background: var(--surface2); padding: 2px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 13px; color: var(--green);
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 800px; margin-left: auto; margin-right: auto }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--green); box-shadow: 0 0 40px var(--green-glow);
  transform: scale(1.03); position: relative; z-index: 1;
}
.pricing-price { font-size: 2.2rem; font-weight: 800; margin: 12px 0 }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-dim) }
.pricing-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 8px; min-height: 40px }
.pricing-features { list-style: none; text-align: left; margin: 20px 0; flex: 1 }
.pricing-features li { padding: 7px 0; color: var(--text-dim); font-size: 13px; border-bottom: 1px solid var(--border) }
.pricing-features li::before { content: "✓ "; color: var(--green); font-weight: 700 }
.pricing-card .btn, .pricing-card .waitlist-form { margin-top: auto }

/* Waitlist form */
.waitlist-form { display: flex; gap: 8px; margin-top: 16px }
.waitlist-input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: 14px; font-family: var(--font);
}
.waitlist-input:focus { outline: none; border-color: var(--green) }
.waitlist-input::placeholder { color: var(--text-faint) }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 64px 0 32px;
  color: var(--text-dim); font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px }
.footer h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px }
.footer ul { list-style: none }
.footer li { margin-bottom: 10px }
.footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s }
.footer a:hover { color: var(--text) }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-faint); font-size: 13px }

/* Hero */
.hero { padding: 120px 0 80px; text-align: center }
.hero h1 { margin-bottom: 16px }
.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 40px }
.hero-demo { margin-top: 24px }
.hero-cta { max-width: 600px; margin: 24px auto 0; text-align: center }
.hero-cta p { color: var(--text-dim); font-size: 15px; margin-bottom: 12px }

/* CTA section */
.cta-section { text-align: center }
.cta-section h2 { margin-bottom: 16px }
.cta-terminal {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 32px;
  font-family: var(--mono); font-size: 18px;
  display: inline-flex; align-items: center; gap: 16px;
  margin: 24px 0;
}
.cta-terminal .prompt { color: var(--green) }

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 64px 0 }
  .hero { padding: 80px 0 48px }
  .nav-links { display: none }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px; gap: 20px }
  .nav-toggle { display: block }
  .grid-2, .grid-3, .grid-5, .steps { grid-template-columns: 1fr }
  .pricing-grid { grid-template-columns: 1fr }
  .pricing-card.featured { transform: none }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .stats-row { gap: 32px }
  .waitlist-form { flex-direction: column }
  .tool-command { flex-direction: column; text-align: left }
}

@media (max-width: 480px) {
  .container { padding: 0 16px }
  h1 { font-size: 2rem }
  pre.terminal-body { padding: 16px; font-size: 12px }
  .hero-buttons { flex-direction: column; align-items: center }
  .footer-grid { grid-template-columns: 1fr }
  .tool-pill { padding: 10px 16px; font-size: 13px }
}
