@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ─── RESET & TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --primary:      #418BF2;
  --primary-dark: #1f5fb7;
  --dark:         #0a0f27;
  --mid:          #2C3237;
  --light:        #F7F8FA;
  --text:         #111827;
  --muted:        #6B7280;
  --card:         #ffffff;
  --border:       rgba(17,24,39,.08);
  --shadow:       0 10px 30px rgba(0,0,0,.08);
  --radius:       14px;
  --accent-glow:  rgba(65,139,242,.25);
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAVBAR ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(10,15,39,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 160px;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ─── HERO ─── */
.article-hero {
  padding: 92px 18px 80px;
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(65,139,242,.35), transparent 55%),
    radial-gradient(800px 400px at 85% 20%, rgba(92,58,207,.28), transparent 55%),
    linear-gradient(rgba(10,15,39,.80), rgba(10,15,39,.80));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(92,58,207,1) 60%, transparent 100%);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(65,139,242,.15);
  border: 1px solid rgba(65,139,242,.28);
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 18px;
}

.article-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin-bottom: 34px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}

.meta-item strong { color: rgba(255,255,255,.85); }

.meta-divider {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

/* ─── STATS BANNER ─── */
.stats-banner {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 26px 20px;
  border-right: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.45;
}

/* ─── MAIN LAYOUT ─── */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 18px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ─── BODY TEXT ─── */
.article-body h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--dark);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.article-body h1::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--primary);
}
.article-body h1:first-child { margin-top: 0; }

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mid);
  margin: 32px 0 12px;
  letter-spacing: -.01em;
}

.article-body p {
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.75;
}

.article-body ul {
  list-style: none;
  margin: 14px 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
}

.article-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--mid);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.article-body ul li:last-child { border-bottom: none; }

.article-body ul li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(65,139,242,.12)
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%231f5fb7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    center/14px no-repeat;
  border: 1px solid rgba(65,139,242,.22);
  display: inline-block;
}

.article-body ul li strong { color: var(--dark); }

/* ─── CALLOUT ─── */
.callout {
  background: linear-gradient(135deg, rgba(65,139,242,.07), rgba(92,58,207,.05));
  border: 1px solid rgba(65,139,242,.16);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}

.callout-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.callout p {
  font-size: 15px !important;
  color: var(--mid) !important;
  margin: 0 !important;
  line-height: 1.65;
}

/* ─── PILLARS ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}
.pillar-card:nth-child(2) { border-top-color: #5c3acf; }
.pillar-card:nth-child(3) { border-top-color: #0ea5e9; }

.pillar-card h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.pillar-card:nth-child(2) h3 { color: #5c3acf; }
.pillar-card:nth-child(3) h3 { color: #0ea5e9; }

.pillar-card p {
  font-size: 13.5px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  line-height: 1.6;
}

/* ─── TABLES ─── */
.comparison-table,
.roi-table,
.porte-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead tr,
.roi-table thead tr,
.porte-table thead tr {
  background: linear-gradient(90deg, var(--dark) 0%, var(--mid) 100%);
  color: #fff;
}

.comparison-table thead th,
.roi-table thead th,
.porte-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.comparison-table thead th:nth-child(2) { color: rgba(255,255,255,.5); }
.comparison-table thead th:nth-child(3) { color: #93c5fd; }

.comparison-table tbody tr,
.roi-table tbody tr,
.porte-table tbody tr {
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background .12s;
}
.comparison-table tbody tr:hover,
.roi-table tbody tr:hover,
.porte-table tbody tr:hover { background: var(--light); }
.comparison-table tbody tr:nth-child(even),
.roi-table tbody tr:nth-child(even),
.porte-table tbody tr:nth-child(even) { background: var(--light); }

.comparison-table tbody td,
.roi-table tbody td,
.porte-table tbody td {
  padding: 13px 16px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--mid);
}

.comparison-table tbody td:first-child,
.porte-table tbody td:first-child {
  font-weight: 700;
  color: var(--dark);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.comparison-table tbody td:nth-child(3) { color: var(--primary-dark); font-weight: 600; }
.roi-table tbody td:first-child { font-weight: 700; color: var(--dark); white-space: nowrap; }
.roi-table tbody td:last-child { color: var(--primary-dark); font-weight: 600; }

/* ─── PHASES ─── */
.phases { margin: 24px 0; display: grid; gap: 14px; }

.phase {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.phase:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

.phase-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #5c3acf);
  box-shadow: 0 6px 16px var(--accent-glow);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.phase-content p {
  font-size: 14.5px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  line-height: 1.65;
}

/* ─── SIDEBAR ─── */
.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.sidebar-card p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-button {
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 20px var(--accent-glow);
  transition: all .2s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(65,139,242,.38);
  background: #2563EB;
}

.sidebar-toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-toc h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidebar-toc ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  gap: 0 !important;
}

.sidebar-toc ul li {
  border-bottom: 1px solid var(--border) !important;
  display: block !important;
  padding: 0 !important;
}
.sidebar-toc ul li::before { display: none !important; }

.sidebar-toc ul li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  line-height: 1.4;
  transition: color .15s;
}
.sidebar-toc ul li a:hover { color: var(--primary); }

/* ─── AUTHOR ─── */
.author-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 20px 22px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.author-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(65,139,242,.18), 0 6px 18px rgba(0,0,0,.12);
}

.author-avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5c3acf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-glow);
  border: 3px solid rgba(65,139,242,.3);
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.author-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.author-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── CTA SECTION ─── */
.article-cta {
  background:
    radial-gradient(900px 400px at 20% 50%, rgba(65,139,242,.22), transparent 60%),
    radial-gradient(700px 350px at 80% 50%, rgba(92,58,207,.18), transparent 60%),
    var(--dark);
  padding: 80px 18px;
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(65,139,242,.15);
  border: 1px solid rgba(65,139,242,.28);
}

.article-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.article-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  line-height: 1.65;
}

.cta-button-large {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 10px;
  box-shadow: 0 10px 24px var(--accent-glow);
  transition: all .22s ease;
}
.cta-button-large:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(65,139,242,.38);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 18px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
}

.site-footer a { color: rgba(255,255,255,.5); }
.site-footer a:hover { color: var(--primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 40px; }
}

@media (max-width: 600px) {
  .article-hero { padding: 80px 18px 52px; }
  .article-layout { padding: 40px 18px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: 0 16px; }
  .brand img { height: 36px; }
  .comparison-table, .roi-table, .porte-table { font-size: 13px; }
}
