/* ═══════════════════════════════════════════════════
   NERD HERD — Design System v2
   Dark Enterprise · Trust & Tech
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --ink:        #0a0c0f;
  --ink2:       #1e2229;
  --ink3:       #2d3340;
  --mid:        #5a6275;
  --muted:      #8a92a3;
  --line:       rgba(255,255,255,0.08);
  --surface:    #111520;
  --surface2:   #161b28;
  --surface3:   #1c2235;
  --red:        #e63535;
  --red-glow:   rgba(230,53,53,0.18);
  --red-dim:    rgba(230,53,53,0.08);
  --red-border: rgba(230,53,53,0.2);
  --cyan:       #00d4aa;
  --cyan-dim:   rgba(0,212,170,0.07);
  --white:      #ffffff;
  --off:        #c8cdd8;
  --ff-sans:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', 'Fira Mono', monospace;
  --nav-h:      64px;
  --radius:     10px;
  --radius-lg:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--ink);
  color: var(--off);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ─── GRID BG ─── */
.grid-bg {
  position: absolute; inset: 0; overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* ─── NAV ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 600; font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: #cc2929 !important; }

.nav-mobile-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--off); font-size: 1.4rem; line-height: 1;
  padding: 0.5rem;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  overflow: hidden;
}
.hero-centered {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,53,53,0.11) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block; width: 16px; height: 1px;
  background: var(--red);
}
.eyebrow-center::before { display: none; }

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
h1 strong { font-weight: 600; }
h1 em { font-style: normal; color: var(--red); }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 1rem;
}
h2 strong { font-weight: 600; }

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

p { line-height: 1.7; }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 560px;
}
.lead-center { margin: 0 auto; }

/* ─── LAYOUT ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }

.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header-center .lead { margin: 0.75rem auto 0; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--red-glow);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #cc2929;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(230,53,53,0.3);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--off);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-group-center { justify-content: center; }

/* ─── CARDS ─── */
.card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.25s, border-color 0.25s;
}
.card:hover { background: var(--surface3); border-color: rgba(255,255,255,0.12); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--red);
}

/* Grid card (no gap lines) */
.grid-cards {
  display: grid;
  gap: 1.25rem;
}
.grid-cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Bordered grid (CrowdStrike style) */
.bordered-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.bordered-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bordered-grid-3 { grid-template-columns: repeat(3, 1fr); }

.bordered-card {
  background: var(--surface2);
  padding: 2.25rem;
  position: relative;
  transition: background 0.25s;
}
.bordered-card:hover { background: var(--surface3); }
.bordered-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2.25rem; right: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,53,53,0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.bordered-card:hover::after { opacity: 1; }

/* Feature list inside cards */
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.45rem;
  margin-top: 1.25rem;
}
.feature-list li {
  font-size: 0.8rem;
  color: var(--mid);
  display: flex; align-items: baseline; gap: 7px;
}
.feature-list li::before {
  content: '─';
  color: var(--red);
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ─── STAT ITEMS ─── */
.stat-item {
  background: var(--surface3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--ff-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── THREAT TICKER ─── */
.threat-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.875rem 0;
}
.threat-ticker {
  display: flex;
  animation: scroll-ticker 34s linear infinite;
  white-space: nowrap;
}
@keyframes scroll-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.threat-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--mid);
  padding: 0 2.5rem;
  border-right: 1px solid var(--line);
}
.tpill {
  display: inline-block;
  padding: 2px 7px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 500; text-transform: uppercase;
}
.tpill-high { background: rgba(230,53,53,0.15); color: var(--red); }
.tpill-med  { background: rgba(255,189,46,0.1);  color: #ffbd2e; }
.tpill-low  { background: rgba(0,212,170,0.1);   color: var(--cyan); }

/* ─── TRUST BAR ─── */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 2rem;
  background: var(--surface);
}
.trust-bar-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.trust-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
}
.trust-items { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8125rem; color: var(--muted);
}
.trust-item svg { color: var(--red); flex-shrink: 0; }

/* ─── TERMINAL ─── */
.terminal {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface3);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #ffbd2e; } .dot-g { background: #28c840; }
.terminal-body { padding: 1.5rem; }
.terminal-line {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--mid);
  display: block;
}
.t-prompt { color: var(--cyan); }
.t-cmd    { color: var(--off); }
.t-ok     { color: #28c840; }
.t-warn   { color: #ffbd2e; }
.t-err    { color: var(--red); }
.t-dim    { color: var(--mid); }
.t-blink {
  display: inline-block; width: 7px; height: 13px;
  background: var(--cyan); vertical-align: middle;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── LIVE BADGE ─── */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 6px var(--cyan)} 50%{box-shadow:0 0 14px var(--cyan)} }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--surface2);
  border: 1px solid var(--red-border);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(230,53,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); font-size: 1rem; max-width: 480px; margin: 0 auto 2.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.footer-brand { font-weight: 600; font-size: 1rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.footer-heading {
  font-family: var(--ff-mono);
  font-size: 0.7rem; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--off); }
.footer-links span { font-size: 0.85rem; color: var(--mid); }
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.78rem; color: var(--mid); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: var(--mid); text-decoration: none; }
.footer-legal a:hover { color: var(--muted); }

/* ─── BLOG ─── */
.blog-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.blog-card:hover { background: var(--surface3); border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.75rem; }
.blog-category {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 500;
  background: var(--red-dim); color: var(--red);
  border: 1px solid var(--red-border);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}
.blog-title { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 0.75rem; }
.blog-excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--mid); flex-wrap: wrap; }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mid); }

/* Blog article */
.article-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.article-body { max-width: 760px; margin: 0 auto; padding: 4rem 2rem; }
.article-body h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.375rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.article-body p { font-size: 0.9375rem; color: var(--off); margin-bottom: 1.25rem; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { font-size: 0.9375rem; color: var(--off); margin-bottom: 0.5rem; line-height: 1.7; }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body code {
  font-family: var(--ff-mono); font-size: 0.85em;
  background: var(--surface3); padding: 2px 6px; border-radius: 4px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
  margin-bottom: 2rem; transition: color 0.2s;
}
.article-back:hover { color: var(--off); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ─── FORM ─── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--off);
  font-family: var(--ff-sans); font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--mid); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: rgba(230,53,53,0.5);
  background: var(--surface2);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6275' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; padding-right: 2.5rem; }
.form-select option { background: var(--surface2); }
.form-note { font-size: 0.78rem; color: var(--mid); margin-top: 0.4rem; }
.msg-success { background: rgba(40,200,64,0.1); border: 1px solid rgba(40,200,64,0.25); color: #28c840; padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.875rem; display: none; margin-bottom: 1.5rem; }
.msg-error   { background: var(--red-dim); border: 1px solid var(--red-border); color: var(--red); padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.875rem; display: none; margin-bottom: 1.5rem; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--line); }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-mid    { color: var(--mid); }
.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }   .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }   .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }     .mt-8 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ─── LAYOUT GRID CLASSES (replaces inline styles) ─── */
.hero-col {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}
.contact-col {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.article-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.step-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.step-row:last-child { border-bottom: none; }

/* ─── HERO SM (blog articles) ─── */
.hero-sm {
  min-height: auto;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
  background: var(--ink);
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}
.hero-inner.single { max-width: 860px; }

/* ─── BLOG TAGS ─── */
.tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tag-red  { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.tag-gray { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--line); }

/* ─── ARTICLE SEPARATOR ─── */
.article-sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ─── BLOCKQUOTE ─── */
blockquote {
  border-left: 3px solid var(--red);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { color: var(--muted); font-style: italic; margin: 0; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 760px;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 9998;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: cookie-up 0.35s ease;
}
@keyframes cookie-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner p {
  flex: 1; font-size: 0.8125rem; color: var(--muted);
  line-height: 1.6; margin: 0; min-width: 200px;
}
.cookie-banner p a { color: var(--red); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 0.625rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; font-family: var(--ff-sans); transition: background 0.2s;
}
.cookie-accept:hover { background: #cc2929; }
.cookie-refuse {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 1.25rem; font-size: 0.8125rem;
  cursor: pointer; font-family: var(--ff-sans);
  transition: color 0.2s, border-color 0.2s;
}
.cookie-refuse:hover { color: var(--off); border-color: rgba(255,255,255,0.2); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .bordered-grid-3 { grid-template-columns: 1fr; }
  .bordered-grid-2 { grid-template-columns: 1fr; }
  .grid-cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section-header { grid-template-columns: 1fr; }
  #navbar { padding: 0 1.25rem; }
  .nav-brand img { height: 44px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0.2rem;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,12,15,0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
  }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .trust-items { gap: 1.25rem; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  /* Layout grid responsive */
  .hero-col, .contact-col, .two-col, .article-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  .article-col aside { position: static !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group-center { align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner {
    bottom: 0; left: 0; right: 0;
    transform: none; width: 100%; max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-direction: column; align-items: flex-start;
  }
  @keyframes cookie-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .article-body { padding: 2.5rem 0; }
}
