/* ─────────────────────────────────────────────────────────────────────────
   SOLUTIONS PAGE STYLES
───────────────────────────────────────────────────────────────────────── */

/* ── HERO ── */
#sol-hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--px) clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#sol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(109,40,217,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 95% 65%, rgba(29,78,216,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(124,58,237,0.10) 0%, transparent 50%);
  pointer-events: none;
}
#sol-hero .wrap { position: relative; z-index: 3; width: 100%; }

.sol-kicker { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.8rem; opacity: 0; animation: up 0.6s ease forwards 0.15s; }
.sol-kicker::before { content: ''; width: 1.8rem; height: 2px; background: var(--p-hi); border-radius: 2px; }
.sol-kicker span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); }

.sol-h { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; max-width: 16ch; opacity: 0; animation: up 0.9s ease forwards 0.28s; }
.sol-h em { font-style: normal; color: var(--p-hi); }

.sol-sub { max-width: 52ch; font-size: 1rem; font-weight: 300; color: var(--grey); line-height: 1.8; margin-top: 2rem; opacity: 0; animation: up 0.8s ease forwards 0.4s; }

/* ── FLOAT RINGS (solutions specific) ── */
.sol-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(167,139,250,0.18);
  pointer-events: none; user-select: none;
  animation: ring-float var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
.sol-ring.spin { border-color: rgba(124,58,237,0.14); animation-name: ring-spin; }

.sol-dots {
  position: absolute; pointer-events: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  animation: chip-float var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
.sol-dots span { width: 3px; height: 3px; border-radius: 50%; background: rgba(167,139,250,0.3); display: block; }

/* ── STICKY SECTION NAV ── */
#sol-nav {
  position: sticky; top: 68px; z-index: 100;
  background: rgba(7,7,26,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sol-nav-inner {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  max-width: var(--w); margin: 0 auto; padding: 0 var(--px);
}
.sol-nav-inner::-webkit-scrollbar { display: none; }

.sol-pill {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1.4rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-right: 1px solid var(--line);
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sol-pill:hover { color: var(--white); background: rgba(124,58,237,0.06); }
.sol-pill.active { color: var(--white); border-bottom-color: var(--p-hi); background: rgba(124,58,237,0.08); }
.sol-pill-n { font-size: 0.62rem; font-weight: 700; color: var(--p-hi); }

/* ── SOLUTION SECTIONS ── */
.sol-section {
  border-bottom: 1px solid var(--line);
}
.sol-section-inner {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Section intro */
.sol-intro {
  margin-bottom: 3.5rem;
  max-width: 480px;
}

.sol-ghost-n {
  font-size: 7rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px var(--dim);
  color: transparent;
  margin-bottom: 0.5rem;
  user-select: none;
}

.sol-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}
.sol-title em { font-style: normal; color: var(--p-hi); }

.sol-tagline {
  font-size: 0.95rem; color: var(--grey); font-weight: 300;
  line-height: 1.75; max-width: 44ch; margin-bottom: 1.25rem;
}

.sol-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sol-tag {
  font-size: 0.62rem; font-weight: 600;
  color: var(--p-hi); background: var(--p-xs);
  border: 1px solid rgba(167,139,250,0.15);
  padding: 0.2rem 0.65rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Section body */
.sol-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Problems column */
.sol-col-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.sol-col-label.broken { color: #EF4444; }
.sol-col-label.built  { color: var(--p-hi); }

.sol-problem-list { list-style: none; display: flex; flex-direction: column; }
.sol-problem-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.sol-problem-item:last-child { border-bottom: none; }

.sol-prob-icon {
  width: 1.4rem; height: 1.4rem; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.05rem;
}
.sol-prob-icon svg { width: 0.6rem; height: 0.6rem; stroke: #EF4444; fill: none; stroke-width: 2.5; stroke-linecap: round; }

.sol-prob-title { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; line-height: 1.3; }
.sol-prob-body  { font-size: 0.8rem; color: var(--grey); font-weight: 300; line-height: 1.6; }

/* Solution column */
.sol-solution { display: flex; flex-direction: column; gap: 1.2rem; }
.sol-headline { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }

/* Deliverable icon cards - 2×3 grid */
.sol-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sol-cards .pic {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.2s, background 0.2s;
}
.sol-cards .pic:hover { border-color: rgba(167,139,250,0.3); background: rgba(124,58,237,0.05); }

.sol-cards .pic-icon {
  width: 2rem; height: 2rem;
  border-radius: 7px;
  background: var(--p-xs);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sol-cards .pic-icon svg { width: 0.88rem; height: 0.88rem; stroke: var(--p-hi); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sol-cards .pic-label { font-size: 0.8rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.sol-cards .pic-desc  { font-size: 0.72rem; color: var(--grey); font-weight: 300; line-height: 1.5; }

/* Section link */
.sol-cta-link {
  font-size: 0.82rem; font-weight: 600; color: var(--p-hi);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
  align-self: flex-start;
}
.sol-cta-link:hover { border-color: var(--p-hi); }

@media (max-width: 860px) {
  .sol-intro { grid-template-columns: 1fr; gap: 2rem; }
  .sol-body { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .sol-cards { grid-template-columns: 1fr; } }

/* ── DIAGNOSTIC (solutions page) ── */
#diagnostic {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

#diagnostic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 25%, rgba(109,40,217,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at  5% 65%, rgba(29,78,216,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(124,58,237,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#diagnostic .wrap { position: relative; z-index: 3; display: flex; justify-content: flex-end; }
.diag-content { max-width: 55ch; }
.diag-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); margin-bottom: 1.5rem; }
.diag-h {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
  max-width: 22ch;
}
.diag-h em { font-style: normal; color: var(--p-hi); }
.diag-row { max-width: 56ch; }
.diag-body { font-size: 1rem; color: var(--grey); font-weight: 300; line-height: 1.8; margin-bottom: 1.5rem; }
.diag-right { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.diag-cta-note { font-size: 0.76rem; color: var(--dim); line-height: 1.6; }
.diag-cta-note a { color: var(--p-hi); text-decoration: none; }
.diag-cta-note a:hover { text-decoration: underline; }
