/* NEXUS — Light, premium SaaS marketing styles
   Brand: Slate #5F6F7A · Teal #2FB4B4 · Off-White #F7F8F9 · Deep #33434A · White #FFFFFF
   © 2026 Nexus LLC */

:root {
  --slate: #5F6F7A;
  --teal: #2FB4B4;
  --teal-dark: #1E8F8F;
  --teal-soft: rgba(47,180,180,0.10);
  --teal-line: rgba(47,180,180,0.28);
  --offwhite: #F7F8F9;
  --deep: #33434A;
  --white: #FFFFFF;
  --violet: #7C5CFF;
  --cyan: #00E5FF;
  --line: #E6EBEF;
  --line-soft: #EEF2F4;
  --shadow-sm: 0 1px 2px rgba(51,67,74,0.04), 0 4px 12px rgba(51,67,74,0.05);
  --shadow-md: 0 8px 24px rgba(51,67,74,0.08);
  --shadow-lg: 0 24px 60px rgba(51,67,74,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--offwhite);
  color: var(--deep);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---------- Nucleus logo (living / breathing) ---------- */
.nucleus { display: block; overflow: visible; }
.nx-aura { transform-box: view-box; transform-origin: 100px 100px; animation: nx-breathe 5s ease-in-out infinite; }
.nx-spin { transform-box: view-box; transform-origin: 100px 100px; }
.nx-spin-a { animation: nx-spin 9s linear infinite; }
.nx-spin-b { animation: nx-spin 16s linear infinite reverse; }
.nx-spin-c { animation: nx-spin 12s linear infinite; }
.nx-core { transform-box: view-box; transform-origin: 100px 100px; animation: nx-pulse 3.4s ease-in-out infinite; }
.nx-core-hi { transform-box: view-box; transform-origin: 100px 100px; animation: nx-pulse 3.4s ease-in-out infinite 0.15s; }
.nx-e { transform-box: view-box; transform-origin: 100px 100px; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes nx-breathe { 0%,100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.09); } }

/* bokeh particles */
.bk { opacity: 0.5; }
.bk1 { animation: nx-float1 7s ease-in-out infinite; }
.bk2 { animation: nx-float2 9s ease-in-out infinite; }
.bk3 { animation: nx-float1 11s ease-in-out infinite; }
.bk4 { animation: nx-float2 8s ease-in-out infinite; }
.bk5 { animation: nx-float1 10s ease-in-out infinite; }
.bk6 { animation: nx-float2 12s ease-in-out infinite; }
@keyframes nx-float1 { 0%,100% { transform: translate(0,0); opacity: 0.3; } 50% { transform: translate(4px,-6px); opacity: 0.8; } }
@keyframes nx-float2 { 0%,100% { transform: translate(0,0); opacity: 0.35; } 50% { transform: translate(-5px,5px); opacity: 0.75; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,248,249,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--deep); }
.nav-logo .nucleus { width: 80px; height: 80px; margin-left: -6px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--slate); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--deep); font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(47,180,180,0.28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47,180,180,0.36); }
.btn-ghost { background: transparent; color: var(--deep); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-white { background: var(--white); color: var(--deep); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(47,180,180,0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 60%, rgba(0,229,255,0.08), transparent 60%);
}
.hero-content { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-logo { margin: 0 auto 28px; }
.hero-logo .nucleus { width: 168px; height: 168px; margin: 0 auto; }
.badge {
  display: inline-block; padding: 7px 16px; background: var(--teal-soft);
  border: 1px solid var(--teal-line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.1rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.gradient { background: linear-gradient(120deg, var(--teal) 0%, var(--cyan) 45%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--slate); max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--deep); }
.stat-label { font-size: 0.9rem; color: var(--slate); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-tint { background: linear-gradient(180deg, var(--offwhite), #F0F4F5); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-header p { color: var(--slate); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px; }

/* ---------- Platform cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all 0.3s; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.platform-card:hover { border-color: var(--teal-line); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.platform-card .card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 18px;
}
.platform-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.platform-card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 18px; flex: 1; }
.platform-card .card-link { color: var(--teal-dark); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.platform-card:hover .card-link { gap: 10px; }

/* ---------- Dashboard mock ---------- */
.dash {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 980px; margin: 0 auto;
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.dash-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dash-dot:nth-child(1) { background: #FF6B6B; }
.dash-dot:nth-child(2) { background: #FFC542; }
.dash-dot:nth-child(3) { background: var(--teal); }
.dash-title { margin-left: 14px; font-weight: 600; font-size: 0.9rem; color: var(--slate); }
.dash-body { padding: 26px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--offwhite); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; }
.kpi-label { font-size: 0.78rem; color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--deep); margin-top: 6px; }
.kpi-delta { font-size: 0.78rem; font-weight: 700; margin-top: 4px; }
.kpi-delta.up { color: var(--teal-dark); }
.kpi-delta.down { color: #E25C5C; }
.chart-wrap { background: var(--offwhite); border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-head h4 { font-size: 0.95rem; font-weight: 700; }
.chart-legend { display: flex; gap: 16px; font-size: 0.8rem; color: var(--slate); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.chart .bar { flex: 1; border-radius: 6px 6px 0 0; position: relative; transition: height 0.6s cubic-bezier(0.4,0,0.2,1); }
.chart .bar.rev { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); }
.chart .bar.cost { background: linear-gradient(180deg, #C9D4D9, #A9B7BD); }
.chart .bar:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--deep); color: #fff; font-size: 0.72rem; padding: 3px 7px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; }
.dash-caption { text-align: center; margin-top: 22px; font-weight: 600; color: var(--teal-dark); font-size: 1.05rem; }

/* ---------- Flow (how leads move) ---------- */
.flow { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: stretch; }
.flow-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.flow-col h4 { font-size: 1.05rem; margin-bottom: 14px; }
.flow-col .col-eyebrow { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 6px; }
.flow-engine { background: linear-gradient(160deg, var(--deep) 0%, #243239 100%); color: #EAF2F3; border: none; position: relative; overflow: hidden; }
.flow-engine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(47,180,180,0.25), transparent 70%); }
.flow-engine .col-eyebrow { color: var(--cyan); position: relative; }
.flow-engine h4 { color: #fff; position: relative; font-size: 1.2rem; }
.flow-engine .engine-sub { color: #A9BFC6; font-size: 0.9rem; margin-bottom: 18px; position: relative; }
.engine-list { list-style: none; position: relative; }
.engine-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.92rem; }
.engine-list li:last-child { border-bottom: none; }
.engine-list .e-icon { color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.flow-list { list-style: none; }
.flow-list li { position: relative; padding-left: 22px; margin-bottom: 11px; font-size: 0.92rem; color: var(--slate); }
.flow-list li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.flow-arrows { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0; color: var(--teal); font-size: 1.4rem; }

/* ---------- Problem / solution pairs ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ps-side { padding: 26px; }
.ps-problem { background: #FDF1F1; }
.ps-solution { background: var(--white); border-left: 1px solid var(--line); }
.ps-tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.ps-problem .ps-tag { color: #C44545; }
.ps-solution .ps-tag { color: var(--teal-dark); }
.ps-side h4 { font-size: 1.08rem; margin-bottom: 8px; }
.ps-side p { font-size: 0.92rem; color: var(--slate); }
.ps-problem p { color: #8A5A5A; }

/* ---------- Why NEXUS benefit blocks ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-line); }
.benefit .b-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 8px; }
.benefit p { color: var(--slate); font-size: 0.92rem; }

/* ---------- Verticals constellation ---------- */
.constellation { position: relative; max-width: 880px; margin: 0 auto; min-height: 440px; }
.constellation svg.cn-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.cn-nodes { position: relative; z-index: 1; }
.cn-node {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.25s;
  background: none; border: none; padding: 0; font: inherit; color: inherit;
}
.cn-node:hover { transform: translate(-50%, -50%) scale(1.12); }
.cn-orb {
  width: 76px; height: 76px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.cn-node:hover .cn-orb { border-color: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft), var(--shadow-md); }
.cn-node .cn-label { font-size: 0.82rem; font-weight: 600; color: var(--deep); background: var(--white); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-soft); white-space: nowrap; }
.cn-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }
.cn-core .nucleus { width: 120px; height: 120px; }
.cn-center-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px var(--teal-soft), 0 0 18px rgba(47,180,180,0.5); }

/* ---------- Partners ---------- */
.partner-stat { text-align: center; margin-bottom: 40px; }
.partner-stat .big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; background: linear-gradient(120deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.partner-stat p { color: var(--slate); font-size: 1.05rem; margin-top: 6px; }
.partner-row { margin-bottom: 30px; }
.partner-row h4 { text-align: center; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 18px; }
.partner-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pchip {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; font-weight: 600; font-size: 0.92rem; color: var(--deep);
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.pchip:hover { border-color: var(--teal-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Testimonials / results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.result-card .r-quote { font-size: 1.02rem; color: var(--deep); line-height: 1.6; margin-bottom: 20px; }
.result-card .r-quote::before { content: "“"; font-size: 2.4rem; color: var(--teal); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.result-card .r-author { font-weight: 700; font-size: 0.95rem; }
.result-card .r-role { color: var(--slate); font-size: 0.85rem; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.result-metric { text-align: center; }
.result-metric .rm-value { font-size: 2.4rem; font-weight: 800; color: var(--teal-dark); }
.result-metric .rm-label { color: var(--slate); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Bottom CTA ---------- */
.cta-section { padding: 80px 0 110px; }
.cta-box {
  text-align: center; max-width: 760px; margin: 0 auto;
  background: linear-gradient(160deg, var(--deep) 0%, #243239 100%);
  border-radius: 26px; padding: 60px 40px; position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(47,180,180,0.22), transparent 65%); }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.cta-box > p { color: #A9BFC6; margin-bottom: 30px; font-size: 1.05rem; }
.cta-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto 14px; }
.cta-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1rem; outline: none;
}
.cta-form input::placeholder { color: #93A8AE; }
.cta-form input:focus { border-color: var(--teal); background: rgba(255,255,255,0.12); }
.form-note { font-size: 0.82rem; color: #93A8AE; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--white); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); }
.footer-brand .nucleus { width: 40px; height: 40px; }
.footer-tag { color: var(--slate); font-size: 0.95rem; }
.footer-copy { color: var(--slate); font-size: 0.82rem; }
/* ---------- Detail modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; background: rgba(51,67,74,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { position: relative; background: var(--white); border-radius: 18px; max-width: 780px; width: 100%; max-height: 86vh; overflow: hidden; box-shadow: var(--shadow-lg); animation: mdIn 0.25s ease; }
@keyframes mdIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--offwhite); color: var(--deep); font-size: 1rem; cursor: pointer; }
.modal-close:hover { background: var(--line-soft); }
.modal-scroll { padding: 36px; max-height: 86vh; overflow-y: auto; }
.md-kicker { color: var(--teal-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.md-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.md-tagline { font-size: 1.1rem; color: var(--slate); margin-bottom: 22px; }
.md-overview { font-size: 1.05rem; color: var(--deep); line-height: 1.7; margin-bottom: 26px; }
.md-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.md-feature { background: var(--offwhite); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; }
.md-feature h4 { font-size: 0.98rem; margin-bottom: 6px; }
.md-feature p { color: var(--slate); font-size: 0.88rem; }
.md-bullets { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 12px; padding: 22px; margin-bottom: 26px; }
.md-bullets ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-bullets li { position: relative; padding-left: 24px; font-size: 0.94rem; }
.md-bullets li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.md-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.md-col { background: var(--offwhite); border: 1px solid var(--line-soft); border-radius: 12px; padding: 22px; }
.md-col h3 { font-size: 1.05rem; margin-bottom: 14px; }
.md-col.challenges h3 { color: #C44545; }
.md-col.helps h3 { color: var(--teal-dark); }
.md-col ul { list-style: none; }
.md-col ul li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 0.92rem; }
.md-col.challenges li::before { content: "\2715"; position: absolute; left: 0; color: #C44545; font-weight: 700; }
.md-col.helps li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.md-partners h3 { font-size: 1.05rem; margin-bottom: 14px; }
.md-cta { text-align: center; padding-top: 10px; }
@media (max-width:620px){ .md-features,.md-bullets ul,.md-cols { grid-template-columns: 1fr; } .modal { padding: 20px 12px; } .modal-scroll{padding:24px;} }


/* ---------- Detail pages ---------- */
.detail-hero { padding: 132px 0 56px; background: linear-gradient(180deg, var(--offwhite), #fff); position: relative; overflow: hidden; }
.detail-hero .dh-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(47,180,180,0.12), transparent 60%); }
.detail-hero .container { position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 24px; }
.back-link:hover { gap: 12px; }
.detail-kicker { color: var(--teal-dark); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.detail-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; display: flex; align-items: center; gap: 16px; }
.detail-hero .d-icon { font-size: 1em; }
.detail-tagline { font-size: 1.2rem; color: var(--slate); max-width: 680px; }
.detail-body { padding: 56px 0 80px; }
.detail-overview { font-size: 1.12rem; color: var(--deep); max-width: 760px; margin-bottom: 48px; line-height: 1.7; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.detail-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.detail-col h3 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.detail-col.challenges h3 { color: #C44545; }
.detail-col.helps h3 { color: var(--teal-dark); }
.detail-col ul { list-style: none; }
.detail-col ul li { position: relative; padding-left: 26px; margin-bottom: 13px; font-size: 0.96rem; color: var(--deep); }
.detail-col.challenges ul li::before { content: "✕"; position: absolute; left: 0; color: #C44545; font-weight: 700; }
.detail-col.helps ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.feature-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature-item h4 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-item p { color: var(--slate); font-size: 0.9rem; }
.detail-bullets { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: var(--radius); padding: 30px; margin-bottom: 48px; }
.detail-bullets ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-bullets li { position: relative; padding-left: 26px; font-size: 0.96rem; color: var(--deep); }
.detail-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.partner-section { margin-bottom: 48px; }
.partner-section h3 { font-size: 1.15rem; margin-bottom: 18px; }
.detail-cta { text-align: center; padding: 40px; background: linear-gradient(160deg, var(--offwhite), #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-cta h3 { font-size: 1.4rem; margin-bottom: 10px; }
.detail-cta p { color: var(--slate); margin-bottom: 22px; }

/* ---------- Entrance animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobile ---------- */
.mobile-menu {
  position: fixed; top: 84px; left: 0; right: 0; z-index: 99;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 18px 24px 26px;
  display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; color: var(--deep); font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 12px; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .mobile-toggle { display: block; }
  .cards-3, .benefit-grid, .results-grid, .result-metrics { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrows { transform: rotate(90deg); }
  .ps-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
  .detail-bullets ul { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 72px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero-stats { gap: 28px; }
  .cta-form { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .constellation { min-height: auto; }
  .cn-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 20px 0; }
  .cn-node { position: static !important; transform: none !important; }
  .cn-core { position: static; transform: none; margin: 0 auto 20px; order: -1; }
  .constellation svg.cn-lines { display: none; }
  .ps-pair { grid-template-columns: 1fr; }
  .ps-solution { border-left: none; border-top: 1px solid var(--line); }
}
