:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --card: rgba(17, 31, 52, 0.78);
  --card-strong: #101f35;
  --text: #f5f8ff;
  --muted: #9eacc0;
  --line: rgba(255,255,255,.10);
  --primary: #6d5dfc;
  --primary-2: #8d7dff;
  --cyan: #39d5ff;
  --green: #39d98a;
  --amber: #fbbf24;
  --max: 1180px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
footer[id] { scroll-margin-top: 20px; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 10%, rgba(109,93,252,.18), transparent 32%),
              radial-gradient(circle at 85% 15%, rgba(57,213,255,.12), transparent 28%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.section { padding: 100px 0; }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  color: #a99fff; font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.label::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(44px, 7vw, 78px); max-width: 900px; }
h2 { font-size: clamp(34px, 5vw, 56px); max-width: 820px; }
h3 { font-size: 23px; }
p { color: var(--muted); }
.gradient {
  background: linear-gradient(90deg, #ffffff, #9e94ff, #5ddfff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* NAV */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,17,31,.82); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo span {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo img {
  width: 170px;
  max-height: 58px;
  object-fit: contain;
}
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 14px; color: #c8d1df; }
.navlinks a { position: relative; padding: 6px 0; transition: color .2s ease; }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navlinks a:hover { color: white; }
.navlinks a:hover::after { transform: scaleX(1); }

/* NAV TOGGLE (mobile hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #c8d1df;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white !important; font-weight: 750; }

/* BUTTONS */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 21px; border-radius: 11px; border: 1px solid var(--line); font-weight: 750; transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; box-shadow: 0 12px 30px rgba(109,93,252,.25); }
.btn.outline { background: rgba(255,255,255,.03); }

/* HERO */
.hero { min-height: 720px; display: flex; align-items: center; padding: 100px 0 90px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); gap: 70px; align-items: center; }
.hero-copy { max-width: 1000px; }
.eyebrow { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(109,93,252,.35); background: rgba(109,93,252,.08); border-radius: 999px; color: #c0b9ff; font-size: 12px; font-weight: 800; letter-spacing: .12em; margin-bottom: 25px; }
.hero h1 { margin-bottom: 25px; }
.hero-text { max-width: 760px; font-size: 19px; color: #b6c2d4; }
.hero-note { margin-top: 18px; font-size: 13px; color: #78879c; }

.hero-dashboard {
  background: linear-gradient(145deg, rgba(20,28,45,.98), rgba(10,16,29,.98));
  border: 1px solid rgba(148,163,184,.18); border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.dashboard-top, .panel-head, .lead-row { display: flex; justify-content: space-between; align-items: center; }
.dashboard-top { color: #9aa9bd; font-size: 12px; margin-bottom: 22px; }
.dashboard-top span:first-child { color: #fff; font-weight: 700; font-size: 15px; }
.dashboard-title { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dashboard-metrics > div { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
.dashboard-metrics small { display: block; color: #8998ad; font-size: 10px; margin-bottom: 8px; }
.dashboard-metrics strong { color: #fff; font-size: 20px; }
.dashboard-panel { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; }
.panel-head { padding: 13px 15px; color: #9aa9bd; font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel-head span:first-child { color: #fff; font-weight: 600; }
.lead-row { padding: 14px 15px; color: #c5cfdd; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.lead-row:last-child { border-bottom: 0; }
.lead-row b { color: #7dd3fc; font-size: 11px; font-weight: 600; }

/* CARDS */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  background: linear-gradient(145deg, rgba(20,36,59,.9), rgba(10,23,40,.78));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card p { margin-top: 12px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(109,93,252,.13); border: 1px solid rgba(109,93,252,.25); color: #b9b1ff; font-weight: 900; margin-bottom: 22px; }

.problem-intro { max-width: 760px; margin-top: 20px; font-size: 18px; }

/* PROBLEM FLOW */
.problem-intro { max-width: 760px; margin-top: 20px; font-size: 18px; }

.problem-list { margin-top: 38px; }
.problem-list .card { min-height: 190px; }

.problem-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 34px 0 40px;
}
.problem-flow-step {
  min-height: 118px;
  padding: 20px 18px;
  background: linear-gradient(145deg, rgba(20,28,45,.96), rgba(10,16,29,.96));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.problem-flow-step span {
  display: block;
  margin-bottom: 16px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.problem-flow-step strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.problem-flow-step small {
  display: block;
  color: rgba(226,232,240,.62);
  font-size: 11px;
  line-height: 1.5;
}
.problem-flow-arrow {
  color: #7dd3fc;
  font-size: 20px;
  font-weight: 700;
}

/* PRODUCT */
.product-head { margin-bottom: 50px; }
.product-head p { max-width: 760px; margin-top: 20px; font-size: 18px; }
.intel-card { min-height: 260px; }
.intel-card ul { list-style: none; margin-top: 18px; }
.intel-card li { color: #aab7ca; margin: 10px 0; padding-left: 19px; position: relative; }
.intel-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* FLOW */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; margin-top: 42px; }
.flow-step { position: relative; min-height: 150px; padding: 22px 15px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: #7dd3fc; font-size: 18px; font-weight: 700; z-index: 2; }
.flow-step span { display: block; color: #8493a8; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.flow-step strong { color: #fff; font-size: 15px; line-height: 1.35; }

@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
}

/* MOCKUP */
.mockup { margin-top: 55px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #091526; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.mockup-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: #b7c3d5; font-size: 13px; }
.mockup-bar strong { color: #fff; }
.illustrative { color: #68788e; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.mockup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.metric { border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: rgba(255,255,255,.025); }
.metric small { color: #8291a5; }
.metric strong { display: block; margin-top: 7px; font-size: 25px; }

/* RECOVERY */
#recovery .card { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(20,28,45,.96), rgba(10,16,29,.96)); border: 1px solid rgba(148,163,184,.16); border-radius: 18px; padding: 26px 22px; box-shadow: 0 18px 45px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
#recovery .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #7dd3fc, rgba(125,211,252,0)); }
#recovery .card:hover { transform: translateY(-4px); border-color: rgba(125,211,252,.32); box-shadow: 0 24px 55px rgba(0,0,0,.24); }
#recovery .card .icon { width: 42px; height: 42px; margin-bottom: 22px; background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.18); color: #7dd3fc; }

.recovery-flow, .management-flow { display: grid; gap: 12px; align-items: center; margin: 34px 0 40px; }
.recovery-flow-step, .management-flow-step { min-height: 118px; padding: 20px 18px; background: linear-gradient(145deg, rgba(20,28,45,.96), rgba(10,16,29,.96)); border: 1px solid rgba(148,163,184,.16); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.recovery-flow-step span, .management-flow-step span { display: block; margin-bottom: 16px; color: #7dd3fc; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.recovery-flow-step strong, .management-flow-step strong { display: block; color: #fff; font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.recovery-flow-step small, .management-flow-step small { display: block; color: rgba(226,232,240,.62); font-size: 11px; line-height: 1.5; }
.recovery-flow-arrow, .management-flow-arrow { color: #7dd3fc; font-size: 20px; font-weight: 700; }

.management-dashboard { margin: 34px 0 42px; padding: 22px; background: linear-gradient(145deg, rgba(20,28,45,.98), rgba(10,16,29,.98)); border: 1px solid rgba(148,163,184,.16); border-radius: 20px; box-shadow: 0 22px 55px rgba(0,0,0,.22); }
.management-dashboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
.management-dashboard-head strong { color: #fff; font-size: 15px; }
.management-dashboard-head span { color: rgba(226,232,240,.55); font-size: 11px; }
.management-dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.management-dashboard-card { padding: 18px; background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.12); border-radius: 14px; }
.management-dashboard-card small { display: block; color: rgba(226,232,240,.55); font-size: 10px; margin-bottom: 8px; }
.management-dashboard-card strong { display: block; color: #fff; font-size: 22px; line-height: 1; margin-bottom: 8px; }
.management-dashboard-card span { color: #7dd3fc; font-size: 11px; }
.management-dashboard-actions { margin-top: 14px; display: grid; gap: 10px; }
.management-dashboard-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; background: rgba(15,23,42,.58); border: 1px solid rgba(148,163,184,.10); border-radius: 12px; }
.management-dashboard-action span { color: rgba(226,232,240,.72); font-size: 12px; }
.management-dashboard-action b { color: #7dd3fc; font-size: 11px; white-space: nowrap; }

/* PRICING */
.pricing-card { position: relative; min-height: 390px; }
.price { font-size: 34px; font-weight: 850; margin: 20px 0 8px; }
.pricing-card ul { list-style: none; margin-top: 25px; }
.pricing-card li { margin: 12px 0; color: #aab7ca; }
.pricing-card li::before { content: "✓"; color: var(--green); margin-right: 9px; }

/* CTA */
.cta-box { padding: 65px; border-radius: 28px; border: 1px solid rgba(109,93,252,.3); background: radial-gradient(circle at 80% 20%, rgba(57,213,255,.12), transparent 30%), radial-gradient(circle at 20% 80%, rgba(109,93,252,.15), transparent 35%), #0b192c; text-align: center; }
.cta-box h2 { margin: auto; }
.cta-box p { max-width: 680px; margin: 20px auto 0; font-size: 17px; }
.cta-box .actions { justify-content: center; }

/* FOOTER */
footer { padding: 60px 0 35px; border-top: 1px solid var(--line); background: #050d18; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 45px; }
.footer-brand img { height: 48px !important; width: auto !important; max-height: 48px !important; object-fit: contain; display: block; }
.footer-brand p { max-width: 370px; }
.footer-col h4 { margin-bottom: 15px; font-size: 14px; }
.footer-col a { display: block; color: #8795a9; font-size: 14px; margin: 9px 0; }
.footer-col a:hover { color: white; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #c4cfde; font-size: 12px; font-weight: 800; }
.socials a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.copyright { margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: #65758a; font-size: 12px; display: flex; justify-content: space-between; gap: 15px; }

/* CONTACT ACTIONS */
.contact-actions { position: fixed; right: 22px; bottom: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.contact-action { display: inline-flex; align-items: center; justify-content: center; min-width: 118px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(125,211,252,.22); background: rgba(125,211,252,.07); color: #7dd3fc !important; font-size: 12px; font-weight: 700; text-decoration: none; transition: all .2s ease; }
.contact-action:hover { background: rgba(125,211,252,.14); border-color: rgba(125,211,252,.4); transform: translateY(-2px); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 7px; font-size: 15px; line-height: 1; }
.contact-action { color: #fff !important; }
.contact-action:first-child .contact-icon { color: #fff; }
.contact-action:nth-child(2) .contact-icon { color: #25D366; }
.contact-icon svg { display: block; }

/* BADGES */
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-demo { background: rgba(57,213,255,.14); color: var(--cyan); border: 1px solid rgba(57,213,255,.3); }

/* PAGE FOOT */
.page-foot { padding: 32px 0 48px; }
.disclaimer { color: var(--muted); font-size: 13px; }

/* MOBILE */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  .nav { position: relative; }
  .nav-toggle { display: flex; }
  .navlinks {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7,17,31,.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    animation: navSlideDown .25s ease;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a {
    padding: 13px 4px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 15px;
  }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks a::after { display: none; }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .problem-flow, .recovery-flow, .management-flow { grid-template-columns: 1fr 1fr; }
  .problem-flow-arrow, .recovery-flow-arrow, .management-flow-arrow { display: none; }
  .flow-step:not(:last-child)::after { display: none; }
  .mockup-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 75px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 1000px; }
  .hero-dashboard { max-width: 700px; }
  .section { padding: 75px 0; }
  .cta-box { padding: 40px 24px; }
  .management-dashboard-grid { grid-template-columns: 1fr; }
  .management-dashboard-head { align-items: flex-start; flex-direction: column; }
  .management-dashboard-action { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 600px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .logo img { width: 145px; }
  h1 { font-size: 43px; }
  h2 { font-size: 35px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .copyright { flex-direction: column; }
  .contact-actions { flex-direction: column; align-items: flex-start; }
  .problem-flow, .recovery-flow, .management-flow { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr; }
}

/* WEB APP PAGES (demo / dashboard) */
.page-head { padding: 56px 0 8px; }
.page-head-inner h1 { margin: 0 0 10px; }
.page-head-inner .lede { margin: 0 0 14px; max-width: 720px; font-size: 17px; }
.page-foot { padding: 32px 0 48px; }
.disclaimer { color: var(--muted); font-size: 13px; }

.snapshot h2, .snapshot h3 { margin-top: 0; }
.snapshot h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin: 28px 0 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.metric-grid .metric { background: rgba(255,255,255,.03); }
.metric-value { font-size: 26px; font-weight: 700; }
.metric-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.exposure-grid .metric { border-color: rgba(251,191,36,.35); }
.exposure .metric-value { color: var(--amber); }
.signal-note { color: var(--muted); font-size: 13px; margin: 22px 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .muted { color: var(--muted); text-align: center; }

.stage, .fup { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.stage-enrolled { background: rgba(57,217,138,.14); color: var(--green); }
.stage-lost { background: rgba(248,113,113,.14); color: #f87171; }
.stage-counselling { background: rgba(167,139,250,.14); color: #a78bfa; }
.stage-follow-up, .stage-contact, .stage-enquiry, .stage-inactive { background: rgba(109,93,252,.16); color: #b9b1ff; }
.fup-overdue { background: rgba(248,113,113,.16); color: #f87171; }
.fup-neglected { background: rgba(251,191,36,.16); color: var(--amber); }
.fup-ontack, .fup-none { background: rgba(159,176,209,.12); color: var(--muted); }

/* SECTION HEADS */
.section h2 { margin-bottom: 0; }
.section > .container > h2:not(:only-child) { margin-bottom: 18px; }
