/* ==============================
   LintScout Website Styles
   ============================== */

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #0f0f17;
  --color-surface: #16161f;
  --color-border: #1e1e2e;
  --color-text: #e0e0e8;
  --color-text-muted: #8888a0;
  --color-primary: #6c63ff;
  --color-primary-hover: #7b73ff;
  --color-accent: #00d4aa;
  --color-accent-dim: rgba(0, 212, 170, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ======= Nav ======= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
}

.nav-logo {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ======= Buttons ======= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-sm:hover {
  background: var(--color-border);
  color: #fff;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ======= Hero ======= */

.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #a0a0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-subtitle code {
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

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

/* ======= Terminal ======= */

.terminal {
  max-width: 780px;
  margin: 56px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  background: #1a1a28;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.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 {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.terminal-body {
  background: #0d0d15;
  padding: 20px 24px;
  overflow-x: auto;
}

.terminal-body pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
  white-space: pre;
}

.t-prompt { color: var(--color-accent); }
.t-cmd { color: #fff; font-weight: 500; }
.t-path { color: #6c9eeb; }
.t-line { color: #f0c674; }
.t-tag { color: #cc99cd; }
.t-desc { color: var(--color-text-muted); }
.t-suppress { color: var(--color-accent); }
.t-code { color: #7a7a90; }
.t-stats { color: #5a5a70; }

/* ======= Sections ======= */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ======= Grid & Cards ======= */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ======= Language Grid ======= */

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lang-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.lang-group h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-hover);
  font-family: var(--font-mono);
}

/* ======= Steps ======= */

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
}

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ======= Code Blocks ======= */

.code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
}

.code-block code {
  color: var(--color-accent);
}

.code-block-lg {
  padding: 24px 28px;
}

.code-block-lg pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color: var(--color-text-muted);
}

.code-inline {
  display: inline-flex;
}

.y-key { color: #6c9eeb; }
.y-val { color: #f0c674; }
.y-str { color: var(--color-accent); }

/* ======= Examples ======= */

.example {
  margin-bottom: 8px;
}

.example h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.config-example {
  max-width: 560px;
  margin: 48px auto 0;
}

.config-example h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.config-example h4 code {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 14px;
}

/* ======= CTA ======= */

.cta {
  text-align: center;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0d0d1a 100%);
}

/* ======= Footer ======= */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  font-size: 13px;
  color: var(--color-text-muted);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ======= Mobile ======= */

@media (max-width: 768px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .terminal-body pre {
    font-size: 11px;
  }

  .section {
    padding: 72px 0;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
