/* ============================================================
   CYBERCORE CXO PAGES - COMPLETE REDESIGN v2
   Fonts loaded via <link> in header - no @import here
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --cx-ink:        #0d1117;
  --cx-ink-soft:   #1c2433;
  --cx-muted:      #6b7280;
  --cx-border:     #e5e7eb;
  --cx-surface:    #f9fafb;
  --cx-white:      #ffffff;

  --cto-hi:        #4f46e5;
  --cto-hi2:       #7c3aed;
  --cio-hi:        #0ea5e9;
  --cio-hi2:       #2563eb;
  --ciso-hi:       #059669;
  --ciso-hi2:      #0d9488;

  --cx-accent:     #4f46e5;
  --cx-accent2:    #7c3aed;

  --font-display:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --sec-py:        96px;
}

body.page-cto  { --cx-accent: #4f46e5; --cx-accent2: #7c3aed; }
body.page-cio  { --cx-accent: #0ea5e9; --cx-accent2: #2563eb; }
body.page-ciso { --cx-accent: #059669; --cx-accent2: #0d9488; }

/* ── SCOPED RESET ───────────────────────────────────────────── */
.cxo-page { font-family: 'DM Sans', sans-serif; color: #0d1117; background: #fff; -webkit-font-smoothing: antialiased; }
.cxo-page * { box-sizing: border-box; }
.cxo-page a { text-decoration: none; }
.cxo-page img { max-width: 100%; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.cx-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.cx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s ease; border: none; white-space: nowrap;
  text-decoration: none;
}
.cx-btn-primary {
  background: var(--cx-accent); color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.cx-btn-primary:hover { background: var(--cx-accent2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); color: #fff; }
.cx-btn-ghost { background: transparent; color: #0d1117; border: 1.5px solid #e5e7eb; }
.cx-btn-ghost:hover { border-color: var(--cx-accent); color: var(--cx-accent); }

/* ── EYEBROW LABEL ──────────────────────────────────────────── */
.cx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,70,229,.1); color: var(--cx-accent);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
body.page-cio  .cx-eyebrow { background: rgba(14,165,233,.1); }
body.page-ciso .cx-eyebrow { background: rgba(5,150,105,.1);  }
.cx-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-accent); }

/* ── SECTION HEADINGS ───────────────────────────────────────── */
.cx-section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  line-height: 1.2; color: #0d1117; letter-spacing: -.02em; margin: 0 0 16px;
}
.cx-section-title .accent { color: var(--cx-accent); }
.cx-section-sub { font-size: 17px; color: #6b7280; line-height: 1.7; max-width: 560px; margin: 0; }

/* ── ① HERO ─────────────────────────────────────────────────── */
.cx-hero {
  padding: 100px 0 72px; background: #fff; position: relative; overflow: hidden;
}
.cx-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5; pointer-events: none;
}
.cx-hero::after {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.1), transparent 65%);
  pointer-events: none;
}
body.page-cio  .cx-hero::after { background: radial-gradient(circle, rgba(14,165,233,.1), transparent 65%); }
body.page-ciso .cx-hero::after { background: radial-gradient(circle, rgba(5,150,105,.1),  transparent 65%); }

.cx-hero .cx-container { position: relative; z-index: 1; }

.cx-hero-inner {
  display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center;
}

.cx-hero-h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(34px, 5vw, 56px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.03em; color: #0d1117; margin: 0 0 20px;
}
.cx-hero-h1 .accent { color: var(--cx-accent); }

.cx-hero-lead { font-size: 18px; color: #6b7280; line-height: 1.7; margin: 0 0 36px; max-width: 500px; }

.cx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

/* KPI bar */
.cx-kpi-bar { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.cx-kpi-number {
  font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800;
  color: #0d1117; line-height: 1; letter-spacing: -.03em;
}
.cx-kpi-number span { color: var(--cx-accent); }
.cx-kpi-label { font-size: 13px; color: #6b7280; margin-top: 4px; font-weight: 500; }

/* Hero dark visual card */
.cx-hero-visual {
  background: #0d1117; border-radius: 20px; padding: 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
}
.cx-hero-visual::before {
  content: ''; position: absolute; top: -80px; left: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.2), transparent 65%);
  pointer-events: none;
}
body.page-cio  .cx-hero-visual::before { background: radial-gradient(circle, rgba(14,165,233,.2), transparent 65%); }
body.page-ciso .cx-hero-visual::before { background: radial-gradient(circle, rgba(5,150,105,.2),  transparent 65%); }

.cx-visual-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cx-visual-title  { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.cx-visual-badge  {
  background: rgba(79,70,229,.2); color: var(--cx-accent);
  border: 1px solid rgba(79,70,229,.3); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}

.cx-metric-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.cx-metric-row:last-of-type { border-bottom: none; }
.cx-metric-name  { font-size: 12px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.cx-metric-dot   { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-accent); flex-shrink: 0; }
.cx-metric-val   { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: #fff; }
.cx-metric-trend { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.cx-metric-trend.up   { background: rgba(16,185,129,.15); color: #10b981; }
.cx-metric-trend.down { background: rgba(239,68,68,.15); color: #ef4444; }

.cx-mini-bar { margin-top: 20px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.cx-mini-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--cx-accent), var(--cx-accent2));
  animation: cxBarFill 1.5s cubic-bezier(.4,0,.2,1) .3s both;
  width: 0;
}
@keyframes cxBarFill { to { width: var(--bar-w, 70%); } }
.cx-mini-bar-labels { display: flex; justify-content: space-between; margin-top: 6px; }
.cx-mini-bar-labels span { font-size: 10px; color: rgba(255,255,255,.4); }
.cx-mini-bar-labels span:last-child { color: rgba(255,255,255,.7); font-weight: 700; }

/* ── ② SOCIAL PROOF ─────────────────────────────────────────── */
.cx-social-proof {
  padding: 44px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.cx-sp-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; text-align: center; margin-bottom: 24px; }
.cx-sp-logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.cx-sp-logo  { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: #6b7280; opacity: .5; letter-spacing: -.01em; transition: opacity .2s; }
.cx-sp-logo:hover { opacity: 1; }

/* ── ③ PROBLEM SECTION ──────────────────────────────────────── */
.cx-problems { padding: var(--sec-py) 0; background: #fff; }

.cx-section-header { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 60px; }
.cx-section-header-full { text-align: center; margin-bottom: 60px; }
.cx-section-header-full .cx-section-sub { margin: 12px auto 0; }

.cx-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cx-problem-card {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 30px;
  transition: border-color .2s, box-shadow .2s;
}
.cx-problem-card:hover { border-color: rgba(79,70,229,.3); box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.cx-problem-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(239,68,68,.1); color: #ef4444;
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 18px;
}
.cx-problem-title { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: #0d1117; margin: 0 0 10px; }
.cx-problem-text  { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0; }

/* ── ④ SOLUTION SECTION ─────────────────────────────────────── */
.cx-solution { padding: var(--sec-py) 0; background: #f9fafb; }
.cx-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cx-solution-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.cx-solution-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.09); }
.cx-solution-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cx-accent), var(--cx-accent2));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.cx-solution-card:hover::after { transform: scaleX(1); }
.cx-sol-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(79,70,229,.1); color: var(--cx-accent);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 20px;
}
.cx-sol-title { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: #0d1117; margin: 0 0 11px; }
.cx-sol-text  { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0 0 16px; }
.cx-sol-tag   {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--cx-accent);
  background: rgba(79,70,229,.08); padding: 3px 9px; border-radius: 5px;
}
body.page-cio  .cx-sol-tag { background: rgba(14,165,233,.08); }
body.page-ciso .cx-sol-tag { background: rgba(5,150,105,.08); }

/* ── ⑤ SERVICES DARK SECTION ────────────────────────────────── */
.cx-services {
  padding: var(--sec-py) 0; background: #0d1117; position: relative; overflow: hidden;
}
.cx-services::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.cx-services .cx-container { position: relative; z-index: 1; }
.cx-services .cx-section-title { color: #fff; }
.cx-services .cx-section-sub   { color: rgba(255,255,255,.5); }
.cx-services .cx-eyebrow { background: rgba(79,70,229,.15); border: 1px solid rgba(79,70,229,.25); }

.cx-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cx-service-tile {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 26px 22px;
  transition: background .2s, border-color .2s, transform .2s;
}
.cx-service-tile:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(79,70,229,.45);
  transform: translateY(-3px);
}
body.page-cio  .cx-service-tile:hover { border-color: rgba(14,165,233,.45); }
body.page-ciso .cx-service-tile:hover { border-color: rgba(5,150,105,.45); }
.cx-tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(79,70,229,.15); color: var(--cx-accent);
  display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px;
}
.cx-tile-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 7px; }
.cx-tile-text  { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; margin: 0; }

/* ── ⑥ PROCESS STEPS ────────────────────────────────────────── */
.cx-process { padding: var(--sec-py) 0; background: #fff; }
.cx-steps   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.cx-steps::before {
  content: ''; position: absolute; top: 27px;
  left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 2px; background: #e5e7eb; z-index: 0;
}
.cx-step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.cx-step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 2px solid #e5e7eb; color: #6b7280;
  font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  transition: background .2s, border-color .2s, color .2s;
}
.cx-step.active .cx-step-num,
.cx-step:hover  .cx-step-num { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.cx-step-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #0d1117; margin: 0 0 8px; }
.cx-step-text  { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }

/* ── COMPARISON TABLE ───────────────────────────────────────── */
.cx-compare { padding: var(--sec-py) 0; background: #f9fafb; }
.cx-compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.cx-compare-table th {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  padding: 18px 22px; text-align: left; border-bottom: 2px solid #e5e7eb;
  background: #f9fafb; color: #0d1117;
}
.cx-compare-table th.cx-col-highlight { background: var(--cx-accent); color: #fff; }
.cx-compare-table td {
  font-size: 14px; padding: 15px 22px;
  border-bottom: 1px solid #e5e7eb; color: #0d1117; vertical-align: middle;
}
.cx-compare-table tr:last-child td { border-bottom: none; }
.cx-compare-table td.cx-yes { color: var(--cx-accent); font-size: 15px; font-weight: 700; }
.cx-compare-table td.cx-no  { color: #9ca3af; }

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.cx-faq       { padding: var(--sec-py) 0; background: #f9fafb; }
.cx-faq-list  { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.cx-faq-item  {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s;
}
.cx-faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.cx-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: #0d1117;
  list-style: none; user-select: none;
}
.cx-faq-q::-webkit-details-marker { display: none; }
.cx-faq-q::after { content: '+'; font-size: 22px; font-weight: 300; color: #6b7280; flex-shrink: 0; transition: transform .25s; }
.cx-faq-item[open] .cx-faq-q::after { transform: rotate(45deg); }
.cx-faq-a { padding: 0 24px 20px; font-size: 14px; color: #6b7280; line-height: 1.75; margin: 0; }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cx-cta { padding: var(--sec-py) 0; background: linear-gradient(135deg, #4f46e5, #7c3aed); position: relative; overflow: hidden; }
body.page-cio  .cx-cta { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
body.page-ciso .cx-cta { background: linear-gradient(135deg, #059669, #0d9488); }
.cx-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.cx-cta-inner { position: relative; text-align: center; }
.cx-cta-title { font-family: 'Sora', sans-serif; font-size: clamp(26px, 4vw, 42px); font-weight: 800; color: #fff; letter-spacing: -.03em; margin: 0 0 14px; }
.cx-cta-sub   { font-size: 18px; color: rgba(255,255,255,.8); margin: 0 auto 38px; max-width: 520px; }
.cx-cta-btn   {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #4f46e5;
  padding: 15px 34px; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
body.page-cio  .cx-cta-btn { color: #0ea5e9; }
body.page-ciso .cx-cta-btn { color: #059669; }
.cx-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.28); color: inherit; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
.cx-fade-up { opacity: 0; transform: translateY(24px); animation: cxFadeUp .6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes cxFadeUp { to { opacity: 1; transform: translateY(0); } }
.cx-delay-1 { animation-delay: .1s; }
.cx-delay-2 { animation-delay: .2s; }
.cx-delay-3 { animation-delay: .3s; }
.cx-delay-4 { animation-delay: .4s; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cx-hero-inner      { grid-template-columns: 1fr; }
  .cx-hero-visual     { display: none; }
  .cx-problem-grid    { grid-template-columns: 1fr 1fr; }
  .cx-solution-grid   { grid-template-columns: 1fr 1fr; }
  .cx-services-grid   { grid-template-columns: repeat(2, 1fr); }
  .cx-steps           { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .cx-steps::before   { display: none; }
  .cx-section-header  { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  :root               { --sec-py: 60px; }
  .cx-container       { padding: 0 18px; }
  .cx-problem-grid    { grid-template-columns: 1fr; }
  .cx-solution-grid   { grid-template-columns: 1fr; }
  .cx-services-grid   { grid-template-columns: 1fr 1fr; }
  .cx-steps           { grid-template-columns: 1fr; }
  .cx-kpi-bar         { gap: 24px; flex-wrap: wrap; }
  .cx-hero-actions    { flex-direction: column; align-items: flex-start; }
}
