/* Embold — Static Code Analysis Platform
   Custom styles layered on top of Tailwind CDN */

:root {
  --color-primary: #031d3d;
  --color-accent: #0052cc;
  --color-accent-light: #2684ff;
  --color-teal: #00b8d9;
  --color-success: #36b37e;
  --color-text: #172b4d;
  --color-muted: #6b778c;
  --color-border: #dfe1e6;
  --color-bg: #f4f5f7;
  --color-bg-dark: #031d3d;
}

/* ── Typography ────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Navigation ────────────────────────────────────── */
.nav-link {
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent-light);
  transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero gradient ─────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #031d3d 0%, #0a2f5c 50%, #0052cc 100%);
}

/* When both classes are present, layer the pattern OVER the gradient */
.hero-gradient.hero-pattern {
  background:
    radial-gradient(circle at 20% 50%, rgba(0,82,204,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,184,217,.15) 0%, transparent 40%),
    linear-gradient(135deg, #031d3d 0%, #0a2f5c 50%, #0052cc 100%);
}

.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(0,82,204,.25) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0,184,217,.15) 0%, transparent 40%);
}

/* ── Feature cards ─────────────────────────────────── */
.feature-card {
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--color-border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(3,29,61,.12);
}

/* ── Integration badges ─────────────────────────────── */
.integration-badge {
  transition: transform .2s, box-shadow .2s;
  filter: grayscale(30%);
}
.integration-badge:hover {
  transform: scale(1.08);
  filter: grayscale(0%);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* ── Pricing cards ─────────────────────────────────── */
.pricing-card {
  border: 2px solid var(--color-border);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pricing-card:hover, .pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(0,82,204,.18);
}
.pricing-card.featured { transform: scale(1.03); }

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  background: var(--color-accent);
  color: white;
  padding: .75rem 1.75rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,82,204,.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.7);
  padding: .75rem 1.75rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,.1);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: .65rem 1.5rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: white;
}

/* ── Section helpers ────────────────────────────────── */
.section-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-teal);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

/* ── Stats strip ─────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
}

/* ── Testimonials ───────────────────────────────────── */
.testimonial-card {
  border-left: 4px solid var(--color-accent);
  background: white;
  box-shadow: 0 4px 24px rgba(3,29,61,.07);
}

/* ── Code snippet block ─────────────────────────────── */
.code-block {
  background: #0d1117;
  border-radius: .75rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .875rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.code-block .bar {
  background: #21262d;
  padding: .5rem 1rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ── How it works steps ─────────────────────────────── */
.step-line::after {
  content: '';
  position: absolute;
  left: 1.5rem; top: 3.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ── Footer ─────────────────────────────────────────── */
.footer-link {
  color: #94a3b8;
  transition: color .2s;
  font-size: .9rem;
}
.footer-link:hover { color: white; }

/* ── Scroll animations via AOS ─────────────────────── */
[data-aos] { will-change: transform, opacity; }

/* ── Mobile nav ─────────────────────────────────────── */
#mobile-menu { transition: max-height .3s ease, opacity .3s ease; }

/* ── Notification banner ─────────────────────────────── */
.notice-bar {
  background: linear-gradient(90deg, #0052cc, #00b8d9);
}

/* ── Language pill ───────────────────────────────────── */
.lang-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  display: inline-block;
  transition: background .2s;
}
.lang-pill:hover { background: rgba(255,255,255,.2); }
