/* ── Inventiva Cloud — Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #07091a;
  --bg-card:    #0d1230;
  --bg-card-h:  #111840;
  --blue:       #3b82f6;
  --blue-d:     #2563eb;
  --violet:     #8b5cf6;
  --violet-d:   #7c3aed;
  --cyan:       #22d3ee;
  --text:       #e2e8f0;
  --muted:      #94a3b8;
  --border:     #1e2a50;
  --font: 'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,26,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 15px; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--blue); }
.logo span { color: var(--violet); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav-cta { background: linear-gradient(135deg, var(--blue-d), var(--violet-d)); color: #fff !important; padding: 7px 18px; border-radius: 4px; font-size: 12px !important; }

/* ── Article Hero ── */
.article-hero {
  padding: 60px 32px 48px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% -20%, rgba(59,130,246,.14) 0%, transparent 70%);
}
.article-hero-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: 11px; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.article-tag { display: inline-block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 12px; border-radius: 100px; font-weight: 700; margin-bottom: 18px; }
.tag-blue   { background: rgba(59,130,246,.15);  color: var(--blue); }
.tag-violet { background: rgba(139,92,246,.15);  color: var(--violet); }
.tag-cyan   { background: rgba(34,211,238,.12);  color: var(--cyan); }
.tag-red    { background: rgba(239,68,68,.13);   color: #f87171; }
.tag-green  { background: rgba(34,197,94,.1);    color: #4ade80; }
.tag-yellow { background: rgba(234,179,8,.12);   color: #facc15; }

.article-h1 { font-size: clamp(22px, 4vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 16px; }
.article-intro { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; max-width: 700px; }
.article-meta { display: flex; gap: 20px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Article Body ── */
.article-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.article-content { max-width: 720px; }

.article-content h2 {
  font-size: 20px; font-weight: 700; color: var(--text);
  letter-spacing: -.01em; margin: 40px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin: 28px 0 10px; }
.article-content p { font-size: 14px; color: #cbd5e1; line-height: 1.8; margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 12px 0 18px 20px; }
.article-content li { font-size: 14px; color: #cbd5e1; line-height: 1.75; margin-bottom: 6px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(59,130,246,.3); }
.article-content a:hover { text-decoration-color: var(--blue); }

/* ── Code Block ── */
.code-block {
  background: #040610; border: 1px solid var(--border); border-radius: 6px;
  padding: 20px 24px; font-size: 12px; line-height: 1.8;
  overflow-x: auto; margin: 20px 0;
}
.code-block .c  { color: #475569; }
.code-block .k  { color: var(--violet); }
.code-block .s  { color: var(--cyan); }
.code-block .v  { color: var(--blue); }
.code-block .n  { color: #4ade80; }

/* ── Info Box ── */
.info-box {
  border-radius: 8px; padding: 20px 24px; margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-box.blue   { background: rgba(59,130,246,.07);  border: 1px solid rgba(59,130,246,.2); }
.info-box.violet { background: rgba(139,92,246,.07);  border: 1px solid rgba(139,92,246,.2); }
.info-box.cyan   { background: rgba(34,211,238,.06);  border: 1px solid rgba(34,211,238,.2); }
.info-box.red    { background: rgba(239,68,68,.06);   border: 1px solid rgba(239,68,68,.2); }
.info-box .icon  { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-box-body {}
.info-box-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.info-box.blue   .info-box-title { color: var(--blue); }
.info-box.violet .info-box-title { color: var(--violet); }
.info-box.cyan   .info-box-title { color: var(--cyan); }
.info-box.red    .info-box-title { color: #f87171; }
.info-box p { font-size: 13px !important; color: var(--muted) !important; margin: 0 !important; }
.info-box strong { color: var(--text); }

/* ── Fossity CTA ── */
.fossity-cta {
  background: linear-gradient(135deg, rgba(59,130,246,.1) 0%, rgba(139,92,246,.1) 100%);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 10px; padding: 28px 28px; margin: 36px 0;
}
.fossity-cta-label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); margin-bottom: 10px; }
.fossity-cta h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.fossity-cta p  { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.fossity-cta a.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-d), var(--violet-d));
  color: #fff; padding: 10px 24px; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none !important; transition: opacity .2s;
}
.fossity-cta a.btn:hover { opacity: .88; }

/* ── Comparison Table ── */
.comp-table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 10px 16px; background: rgba(255,255,255,.03); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; border-bottom: 1px solid var(--border); }
td { padding: 11px 16px; border-bottom: 1px solid rgba(30,42,80,.5); color: var(--text); vertical-align: top; font-size: 12px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59,130,246,.03); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.badge-green  { background: rgba(34,197,94,.12);  color: #4ade80; }
.badge-red    { background: rgba(239,68,68,.12);  color: #f87171; }
.badge-yellow { background: rgba(234,179,8,.12);  color: #facc15; }
.badge-blue   { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-violet { background: rgba(139,92,246,.15); color: var(--violet); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 78px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.sidebar-title { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.sidebar-title span { color: var(--blue); }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { font-size: 12px; color: var(--muted); transition: color .2s; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; }
.sidebar-links a:before { content: '→'; color: var(--blue); flex-shrink: 0; }
.sidebar-links a:hover { color: var(--text); }
.toc-links a { font-size: 12px; color: var(--muted); display: block; padding: 6px 0; border-bottom: 1px solid rgba(30,42,80,.4); transition: color .2s; }
.toc-links a:last-child { border-bottom: none; }
.toc-links a:hover { color: var(--blue); }

/* ── Related grid ── */
.related-section { max-width: 1100px; margin: 0 auto; padding: 0 32px 64px; }
.related-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 24px; }
.related-title span { color: var(--blue); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; transition: background .2s, border-color .2s; }
.related-card:hover { background: var(--bg-card-h); border-color: rgba(59,130,246,.3); }
.related-card-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.related-card h4 { font-size: 14px; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.related-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Glow / Divider ── */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, var(--violet) 70%, transparent 100%); opacity: .3; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 32px; max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text); margin-bottom: 6px; }
.footer-brand span { color: var(--violet); }
.footer-copy { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.footer-tagline { font-size: 11px; color: rgba(139,92,246,.6); letter-spacing: .06em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  .nav { gap: 14px; }
  .article-hero { padding: 40px 16px 32px; }
  .article-layout { padding: 32px 16px 48px; gap: 32px; }
  .related-section { padding: 0 16px 48px; }
  .site-footer { padding: 32px 16px; }
}
