/* ============================================
   KODENOIR — Service Pages Shared CSS
   ============================================ */


:root {
  --black:    #08080c;
  --black-2:  #0e0e14;
  --black-3:  #16161e;
  --gray-1:   #2a2a36;
  --gray-2:   #4a4a5a;
  --gray-3:   #8888a0;
  --light:    #c8c8d8;
  --white:    #f0f0f5;
  --purple:   #8b5cf6;
  --purple-l: #a78bfa;
  --cyan:     #06b6d4;
  --green:    #4ade80;
  --orange:   #f97316;
  --red:      #ef4444;
  --pink:     #ec4899;
  --grad:     linear-gradient(135deg, #8b5cf6, #06b6d4);
  --font-body: 'Inter', sans-serif;
  --font-h:    'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: 0.025;
  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");
  background-size: 200px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(139,92,246,0.4); color: var(--white); }

/* ── TOP NAV ── */
.sp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,12,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139,92,246,0.08);
}

.sp-nav-logo {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; gap: 10px; color: var(--white);
}

.sp-nav-logo img { height: 28px; filter: drop-shadow(0 0 8px rgba(139,92,246,0.4)); }

.sp-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray-3);
  background: rgba(139,92,246,0.06);
  transition: all 0.3s var(--ease);
}

.sp-back-btn:hover {
  color: var(--white); border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.12);
}

/* ── HERO ── */
.sp-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  overflow: hidden; padding: 0;
}

.sp-hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35);
}

.sp-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,12,0.2) 0%, rgba(8,8,12,0.95) 100%);
}

.sp-hero-content {
  position: relative; z-index: 2;
  padding: 120px 64px 72px;
  max-width: 900px;
}

.sp-hero-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--purple-l); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}

.sp-hero-tag::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--purple);
}

.sp-hero-title {
  font-family: var(--font-h); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -3px; line-height: 1.0;
  margin-bottom: 20px; color: var(--white);
}

.sp-hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-hero-desc {
  font-size: 1.05rem; color: var(--light); max-width: 600px; line-height: 1.8;
}

/* ── GRAD BANDS ── */
.sp-bands {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 0; overflow: hidden;
}

.sp-band {
  height: 3px; border-radius: 3px; background-size: 200% 100%;
  filter: blur(0.3px);
}

.sp-band:nth-child(1) {
  background: linear-gradient(90deg, transparent, #8b5cf6 20%, #06b6d4 50%, #8b5cf6 80%, transparent);
  animation: spBand 4s linear infinite;
}

.sp-band:nth-child(2) {
  background: linear-gradient(90deg, transparent, #06b6d4 20%, #4ade80 50%, #ec4899 80%, transparent);
  animation: spBand 5s linear infinite reverse;
}

.sp-band:nth-child(3) {
  background: linear-gradient(90deg, transparent, #ec4899 20%, #8b5cf6 50%, #06b6d4 80%, transparent);
  animation: spBand 3.5s linear infinite;
}

@keyframes spBand {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── MAIN CONTENT ── */
.sp-content {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px 120px;
}

.sp-section { margin-bottom: 80px; }

.sp-section-label {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--purple-l); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.sp-section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--purple);
}

.sp-section-title {
  font-family: var(--font-h); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px; color: var(--white);
}

.sp-section-subtitle {
  font-size: 1rem; color: var(--gray-3); line-height: 1.8;
  max-width: 680px; margin-bottom: 40px;
}

/* ── STAT CARDS GRID ── */
.sp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin: 32px 0;
}

.sp-stat {
  background: var(--black-3); border: 1px solid var(--gray-1);
  border-radius: 16px; padding: 28px 24px;
  transition: border-color 0.3s; position: relative; overflow: hidden;
}

.sp-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
}

.sp-stat:hover { border-color: rgba(139,92,246,0.3); }
.sp-stat:hover::before { opacity: 1; }

.sp-stat-num {
  font-family: var(--font-h); font-size: 2.4rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 8px;
}

.sp-stat-label { font-size: 0.82rem; color: var(--gray-3); line-height: 1.5; }
.sp-stat-source { font-size: 0.68rem; color: var(--gray-2); margin-top: 6px; font-style: italic; }

/* ── DATA CARDS 2-COL GRID ── */
.sp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.sp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin: 24px 0; }

@media (max-width: 768px) {
  .sp-grid-2, .sp-grid-3 { grid-template-columns: 1fr; }
}

.sp-card {
  background: rgba(22,22,30,0.8);
  border: 1px solid var(--gray-1); border-radius: 16px; padding: 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sp-card:hover { border-color: rgba(139,92,246,0.25); transform: translateY(-3px); }
.sp-card-icon { font-size: 2rem; margin-bottom: 14px; }
.sp-card-title {
  font-family: var(--font-h); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.sp-card-text { font-size: 0.88rem; color: var(--gray-3); line-height: 1.7; }

/* ── HORIZONTAL BAR CHART ── */
.sp-chart { margin: 24px 0; }
.sp-chart-title {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-3); margin-bottom: 16px;
}
.sp-bar-row { margin-bottom: 12px; }
.sp-bar-label {
  font-size: 0.82rem; color: var(--light); margin-bottom: 5px;
  display: flex; justify-content: space-between; align-items: center;
}
.sp-bar-val {
  font-family: var(--font-h); font-weight: 700; font-size: 0.9rem;
}
.sp-bar-val.purple { color: var(--purple-l); }
.sp-bar-val.cyan   { color: var(--cyan); }
.sp-bar-val.green  { color: var(--green); }
.sp-bar-val.red    { color: var(--red); }
.sp-bar-val.orange { color: var(--orange); }

.sp-bar-track {
  height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px;
  overflow: hidden;
}

.sp-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.2s var(--ease);
}

.sp-bar-fill.purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.sp-bar-fill.cyan   { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.sp-bar-fill.green  { background: linear-gradient(90deg, #16a34a, #4ade80); }
.sp-bar-fill.red    { background: linear-gradient(90deg, #dc2626, #f87171); }
.sp-bar-fill.orange { background: linear-gradient(90deg, #ea580c, #fb923c); }
.sp-bar-fill.mixed  { background: var(--grad); }
.sp-chart-source {
  font-size: 0.65rem; color: var(--gray-2); margin-top: 10px; font-style: italic;
}

/* ── CALLOUT / HIGHLIGHT BLOCK ── */
.sp-callout {
  border-left: 3px solid var(--purple); border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(139,92,246,0.07), rgba(6,182,212,0.03));
  padding: 20px 24px; margin: 24px 0;
  font-size: 0.95rem; color: var(--light); line-height: 1.7;
}

.sp-callout.cyan { border-color: var(--cyan); background: linear-gradient(90deg, rgba(6,182,212,0.07), transparent); }
.sp-callout.green { border-color: var(--green); background: linear-gradient(90deg, rgba(74,222,128,0.07), transparent); }
.sp-callout.red { border-color: var(--red); background: linear-gradient(90deg, rgba(239,68,68,0.07), transparent); }

/* ── COMPARISON TABLE ── */
.sp-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid var(--gray-1); }

.sp-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}

.sp-table th {
  padding: 14px 18px; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray-3);
  background: var(--black-3); border-bottom: 1px solid var(--gray-1);
  text-align: left;
}

.sp-table th.highlight { color: var(--green); }

.sp-table td {
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--light); vertical-align: middle;
}

.sp-table tr:last-child td { border-bottom: none; }
.sp-table tr:hover td { background: rgba(139,92,246,0.04); }

.sp-table .yes { color: var(--green); font-weight: 600; text-align: center; }
.sp-table .no  { color: var(--red);   text-align: center; }
.sp-table .partial { color: var(--orange); text-align: center; }
.sp-table .center  { text-align: center; }
.sp-table .kn-col  { background: rgba(139,92,246,0.05); }

/* ── STEP / PROCESS LIST ── */
.sp-steps { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }

.sp-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 24px;
  background: var(--black-3); border: 1px solid var(--gray-1); border-radius: 14px;
  transition: border-color 0.3s;
}

.sp-step:hover { border-color: rgba(139,92,246,0.25); }

.sp-step-num {
  font-family: var(--font-h); font-size: 1.8rem; font-weight: 900;
  color: rgba(139,92,246,0.25); line-height: 1; flex-shrink: 0; min-width: 40px;
}

.sp-step-content h4 {
  font-family: var(--font-h); font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}

.sp-step-content p { font-size: 0.88rem; color: var(--gray-3); line-height: 1.7; }

/* ── BIG NUMBER HIGHLIGHT ── */
.sp-big-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 28px 0;
}

.sp-big-num {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(6,182,212,0.04));
  border: 1px solid rgba(139,92,246,0.12); border-radius: 16px;
}

.sp-big-num .num {
  font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  line-height: 1; margin-bottom: 8px;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.sp-big-num .label { font-size: 0.82rem; color: var(--gray-3); line-height: 1.5; }
.sp-big-num .source { font-size: 0.65rem; color: var(--gray-2); margin-top: 5px; font-style: italic; }

/* ── WHY / CHECK LIST ── */
.sp-check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }

.sp-check-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
  background: rgba(139,92,246,0.04); border-radius: 10px;
  font-size: 0.9rem; color: var(--light); line-height: 1.6;
  border: 1px solid rgba(139,92,246,0.08);
}

.sp-check-list li::before {
  content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0;
  font-family: var(--font-h); margin-top: 1px;
}

/* ── PROS/CONS (before/after) ── */
.sp-before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0;
}

.sp-before {
  background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.15);
  border-radius: 14px; padding: 22px;
}

.sp-after {
  background: rgba(74,222,128,0.05); border: 1px solid rgba(74,222,128,0.15);
  border-radius: 14px; padding: 22px;
}

.sp-ba-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase;
}

.sp-before .sp-ba-header { color: var(--red); }
.sp-after  .sp-ba-header { color: var(--green); }

.sp-ba-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sp-ba-list li { font-size: 0.85rem; color: var(--light); padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04); line-height: 1.5; }
.sp-ba-list li:last-child { border: none; }

/* ── CTA BLOCK ── */
.sp-cta {
  text-align: center; padding: 80px 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(139,92,246,0.15); border-radius: 24px;
  margin: 60px 0;
}

.sp-cta h2 {
  font-family: var(--font-h); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}

.sp-cta h2 em { font-style: normal; background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.sp-cta p { font-size: 1rem; color: var(--gray-3); margin-bottom: 36px; }

.sp-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--grad);
  border-radius: 100px; font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); font-weight: 600;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
}

.sp-cta-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── FOOTER ── */
.sp-footer {
  border-top: 1px solid var(--gray-1); padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--gray-2); font-family: var(--font-mono);
  letter-spacing: 1px;
}

.sp-footer a { color: var(--gray-3); transition: color 0.2s; }
.sp-footer a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sp-nav { padding: 16px 24px; }
  .sp-hero-content { padding: 100px 24px 56px; }
  .sp-content { padding: 48px 24px 80px; }
  .sp-footer { flex-direction: column; gap: 12px; text-align: center; }
  .sp-before-after { grid-template-columns: 1fr; }
  .sp-big-nums { grid-template-columns: 1fr 1fr; }
}
