
/* ─── Crucible Insight — Global Styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #070c16;
  color: #e2e8f0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #070c16; }
::-webkit-scrollbar-thumb { background: #1a2f4a; border-radius: 3px; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: #f1f5f9; line-height: 1.15; }
.ci-mono { font-family: 'IBM Plex Mono', monospace; }
.ci-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #3b82f6;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.ci-label--purple { color: #a78bfa; }
.ci-label--green  { color: #34d399; }

/* ─── Layout helpers ─────────────────────────────────────────────────────── */
.ci-container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.ci-section   { padding: 80px 0; }
.ci-section--hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 40px 80px; }
.ci-section--alt  { background: #080e1c; }
.ci-section--dark { background: #040912; }
.ci-divider   { border: none; border-top: 1px solid #0f1d32; margin: 0; }

/* ─── Grid BG ───────────────────────────────────────────────────────────── */
.ci-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: ciGridPulse 9s ease-in-out infinite;
}
@keyframes ciGridPulse { 0%,100%{opacity:.8} 50%{opacity:1.4} }

/* ─── Orb glows ──────────────────────────────────────────────────────────── */
.ci-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  animation: ciOrb 14s ease-in-out infinite;
}
.ci-orb--purple { background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%); animation-direction: reverse; }
@keyframes ciOrb { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-15px) scale(1.05)} }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.ci-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s, opacity .15s; cursor: pointer; border: none;
  font-family: 'IBM Plex Sans', sans-serif;
}
.ci-btn--primary   { background: #1d4ed8; color: #fff; }
.ci-btn--primary:hover   { background: #2563eb; color: #fff; }
.ci-btn--purple    { background: #7c3aed; color: #fff; }
.ci-btn--purple:hover    { background: #6d28d9; color: #fff; }
.ci-btn--ghost     { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; }
.ci-btn--ghost:hover     { background: rgba(255,255,255,.1); color: #e2e8f0; }
.ci-btn--outline-blue  { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2); color: #60a5fa; }
.ci-btn--outline-blue:hover { background: rgba(59,130,246,.18); }
.ci-btn--outline-green { background: #065f46; border: 1px solid #047857; color: #34d399; }
.ci-btn--outline-green:hover { background: #047857; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.ci-card {
  background: #0a1120;
  border: 1px solid #1a2f4a;
  border-radius: 14px;
  transition: border-color .18s;
}
.ci-card:hover { border-color: #2a4a7a; }
.ci-card--com { background: #0a0a1a; border-color: #1e1a3a; }
.ci-card--com:hover { border-color: #3d2f6a; }
.ci-card--code { background: #040912; border-color: #1a2f4a; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.ci-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: .06em; text-transform: uppercase;
}
.ci-badge--blue   { background: #0d3b6e; color: #60a5fa; }
.ci-badge--purple { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: #a78bfa; }
.ci-badge--green  { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.2); color: #34d399; }
.ci-badge--live   { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.25); color: #34d399; animation: ciLivePulse 2s ease-in-out infinite; }
@keyframes ciLivePulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ─── Checklist ──────────────────────────────────────────────────────────── */
.ci-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ci-check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #cbd5e1; line-height: 1.5;
}
.ci-check-list li::before {
  content: '✓';
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #3b82f6; margin-top: 1px;
  display: inline-flex;
}
.ci-check-list--purple li::before { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.25); color: #a78bfa; }

/* ─── Code block ─────────────────────────────────────────────────────────── */
.ci-code-block {
  background: #040912;
  border: 1px solid #1a2f4a;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
}
.ci-code-block__header {
  background: #060c18;
  border-bottom: 1px solid #1a2f4a;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 7px;
}
.ci-code-block__dot { width: 10px; height: 10px; border-radius: 50%; }
.ci-code-block__filename { font-size: 10px; color: #3d5270; margin-left: 8px; }
.ci-code-block__body { padding: 20px; font-size: 12px; line-height: 1.9; }

/* ─── Control row (COM) ──────────────────────────────────────────────────── */
.ci-control-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #0d0a1e;
}
.ci-control-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ci-control-id  { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #7d97b3; width: 80px; flex-shrink: 0; }
.ci-control-name { font-size: 11px; color: #94a3b8; flex: 1; }
.ci-control-status {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}
.ci-control-status--implemented { background: rgba(52,211,153,.1);  color: #34d399; }
.ci-control-status--progress    { background: rgba(245,158,11,.08); color: #f59e0b; }
.ci-control-status--gap         { background: rgba(239,68,68,.08);  color: #ef4444; }

/* ─── Progress bars ──────────────────────────────────────────────────────── */
.ci-progress { height: 5px; background: #0d1527; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.ci-progress__bar { height: 100%; border-radius: 3px; }

/* ─── Stat strip ─────────────────────────────────────────────────────────── */
.ci-stats {
  display: flex; gap: 48px; justify-content: center;
  padding-top: 40px; margin-top: 64px;
  border-top: 1px solid rgba(26,47,74,.7);
  flex-wrap: wrap;
}
.ci-stat__value { font-size: 28px; font-weight: 700; color: #f1f5f9; letter-spacing: -.03em; }
.ci-stat__label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #64748b; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

/* ─── Feature grid ───────────────────────────────────────────────────────── */
.ci-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .ci-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ci-features-grid { grid-template-columns: 1fr; } }

/* ─── Two-col layout ─────────────────────────────────────────────────────── */
.ci-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .ci-two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ─── Product card (large) ───────────────────────────────────────────────── */
.ci-product-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
@media (max-width: 900px) { .ci-product-card { grid-template-columns: 1fr; } }
.ci-product-card__visual {
  border-left: 1px solid #1a2f4a;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  position: relative; overflow: hidden;
}

/* ─── Megamenu ───────────────────────────────────────────────────────────── */
.ci-nav-mega { position: relative; }
.ci-megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 560px;
  background: #060d1c;
  border: 1px solid #1a2f4a;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.ci-megamenu__arrow {
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #060d1c;
  border-left: 1px solid #1a2f4a;
  border-top: 1px solid #1a2f4a;
}
.ci-nav-mega:hover .ci-megamenu,
.ci-megamenu:hover {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.ci-megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ci-megamenu__item {
  border-radius: 10px; padding: 16px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s;
}
.ci-megamenu__item--dara { background: #0a1120; border: 1px solid #1a2f4a; }
.ci-megamenu__item--dara:hover { border-color: #3b82f6; }
.ci-megamenu__item--com  { background: #0a0a1a; border: 1px solid #1e1a3a; }
.ci-megamenu__item--com:hover  { border-color: #7c3aed; }
.ci-megamenu__footer {
  border-top: 1px solid #1a2f4a; padding-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,12,22,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,47,74,.7);
  height: 60px; display: flex; align-items: center; padding: 0 40px; gap: 0;
}
.ci-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 48px; }
.ci-nav-logo__text { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.ci-nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.ci-nav-link {
  padding: 6px 14px; font-size: 13px; color: #7d97b3;
  text-decoration: none; border-radius: 6px; transition: color .15s;
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}
.ci-nav-link:hover { color: #e2e8f0; }
.ci-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Hero section ───────────────────────────────────────────────────────── */
.ci-hero { position: relative; overflow: hidden; }
.ci-hero__inner { position: relative; z-index: 1; text-align: center; max-width: 840px; margin: 0 auto; }
.ci-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 28px;
}
.ci-hero__dot { width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; }
.ci-hero__eyebrow-text { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #60a5fa; letter-spacing: .1em; text-transform: uppercase; }
.ci-hero__title { font-size: clamp(40px,6vw,68px); font-weight: 700; color: #f1f5f9; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 22px; }
.ci-hero__grad  { background: linear-gradient(90deg,#3b82f6,#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ci-hero__grad--purple { background: linear-gradient(90deg,#a78bfa,#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ci-hero__subtitle { font-size: 17px; color: #94a3b8; max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.ci-hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* page top padding (below fixed nav) */
.ci-page-wrap { padding-top: 60px; }

/* ─── Quote block ────────────────────────────────────────────────────────── */
.ci-quote {
  background: #0d0a1e; border: 1px solid #1e1a3a;
  border-left: 3px solid #7c3aed;
  border-radius: 0 12px 12px 0; padding: 22px 28px;
}
.ci-quote p { font-size: 15px; color: #cbd5e1; line-height: 1.75; font-style: italic; margin-bottom: 10px; }
.ci-quote cite { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #64748b; letter-spacing: .06em; }

/* ─── Pricing tiers ──────────────────────────────────────────────────────── */
.ci-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .ci-pricing-grid { grid-template-columns: 1fr; } }
.ci-tier { border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ci-tier--featured { border-color: #3b82f6 !important; }
.ci-tier--featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,#3b82f6,#818cf8); }
.ci-tier__price { font-size: 32px; font-weight: 700; color: #f1f5f9; letter-spacing: -.04em; }
.ci-tier__period { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #64748b; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  background: #040912; border-top: 1px solid #0f1d32;
  padding: 48px 40px;
}
.ci-footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 36px;
  padding-bottom: 36px; border-bottom: 1px solid #0f1d32;
}
.ci-footer__links { display: flex; gap: 32px; flex-wrap: wrap; }
.ci-footer__link { font-size: 13px; color: #64748b; text-decoration: none; transition: color .15s; }
.ci-footer__link:hover { color: #94a3b8; }
.ci-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ci-footer__copy { font-size: 12px; color: #3d5270; }
.ci-footer__meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #1a2f4a; letter-spacing: .06em; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ci-fade-1 { animation: fadeUp .5s .1s ease both; }
.ci-fade-2 { animation: fadeUp .5s .2s ease both; }
.ci-fade-3 { animation: fadeUp .5s .3s ease both; }
.ci-fade-4 { animation: fadeUp .5s .4s ease both; }

/* ─── WP block overrides ─────────────────────────────────────────────────── */
.wp-site-blocks { padding: 0 !important; }
.wp-block-group { margin: 0; }
.is-layout-flow > * { margin: 0; }
