/* ============================================================
   HDM — The Hesitation Diagnostic Model
   Restyled to match the Data As A Service "Grid & Current" theme —
   same dark infrastructure canvas, same type system, so this feels
   like it belongs to the same family, with its own four-domain
   accent colors layered on top for the radar chart / score bars.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* -- surfaces (same as daas.ink) -- */
  --bg: #090d17;
  --bg-alt: #0c1220;
  --panel: #101929;
  --panel-light: #15203a;
  --border: rgba(237,241,247,0.08);
  --border-strong: rgba(237,241,247,0.16);

  /* -- text (same as daas.ink) -- */
  --text: #edf1f7;
  --text-dim: #a9b2c7;
  --text-mute: #6c7690;

  /* -- brand signal colors (same as daas.ink) -- */
  --amber: #f0a93e;
  --amber-soft: #f0a93e26;
  --cyan: #3ad6c9;
  --cyan-soft: #3ad6c926;

  /* -- the four HDM domains, tuned to sit alongside amber/cyan -- */
  --cognitive: #3ad6c9;      /* cyan */
  --cognitive-soft: #3ad6c91a;
  --emotional: #ef8672;      /* coral */
  --emotional-soft: #ef86721a;
  --behavioural: #f0a93e;    /* amber */
  --behavioural-soft: #f0a93e1a;
  --environmental: #7fd88f;  /* soft green */
  --environmental-soft: #7fd88f1a;

  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'IBM Plex Sans', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1100px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

h1,h2,h3{
  font-family: var(--f-display); font-weight: 600; line-height: 1.14;
  letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--text);
}
h1 em, h2 em{ font-style: normal; color: var(--amber); }
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow::before{ content:""; width:18px; height:1px; background: var(--amber); }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--f-mono); font-size:13.5px; letter-spacing:.03em;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor:pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary{ background: var(--amber); color: #14100a; font-weight:600; }
.btn-primary:hover{ transform: translateY(-2px); background:#f7b85c; }
.btn-outline{ background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ============ HEADER ============ */
.site-header{
  position: sticky; top:0; z-index:50;
  background: rgba(9,13,23,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding-top:20px; padding-bottom:20px; }
.brand{ font-family: var(--f-display); font-size:16.5px; font-weight:600; display:flex; align-items:center; gap:10px; }
.brand-mark{ width:11px; height:11px; border-radius:3px; background: conic-gradient(var(--cognitive) 0 25%, var(--emotional) 25% 50%, var(--behavioural) 50% 75%, var(--environmental) 75% 100%); flex-shrink:0; }
.daas-link{ font-family: var(--f-mono); font-size:12.5px; color: var(--text-mute); display:flex; align-items:center; gap:8px; }
.daas-link:hover{ color: var(--amber); }

/* ============ HERO ============ */
.hero{ padding: 88px 0 100px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
.hero h1{ font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 13ch; }
.hero-sub{ font-size: 17.5px; max-width: 46ch; margin-bottom: 32px; }
.hero-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom: 40px; }
.hero-note{ font-family: var(--f-mono); font-size: 12.5px; color: var(--text-mute); }

.legend{ display:flex; gap:20px; flex-wrap:wrap; padding-top:24px; border-top:1px solid var(--border); }
.legend-item{ display:flex; align-items:center; gap:8px; font-family: var(--f-mono); font-size:12.5px; color: var(--text-dim); }
.legend-dot{ width:9px; height:9px; border-radius:50%; }

/* ---- radar chart (signature element, kept from original build) ---- */
.radar-wrap{ position:relative; width:100%; max-width:420px; margin:0 auto; }
.radar-wrap svg{ width:100%; height:auto; overflow: visible; }
.radar-axis{ stroke: var(--border-strong); stroke-width:1; }
.radar-ring{ fill:none; stroke: var(--border); stroke-width:1; }
.radar-shape{
  fill: var(--behavioural-soft); stroke: var(--behavioural); stroke-width: 2; stroke-linejoin: round;
  opacity:0; transform-origin: center; animation: radarIn 1s var(--ease) .2s forwards;
  transition: fill .4s var(--ease), stroke .4s var(--ease);
}
@keyframes radarIn{ from{ opacity:0; transform: scale(0.6);} to{ opacity:1; transform: scale(1);} }
.radar-point{ animation: popIn .5s var(--ease) both; }
.radar-point.dominant circle{ animation: dominantPulse 2.4s var(--ease) infinite; }
@keyframes popIn{ from{ opacity:0; transform: scale(0);} to{ opacity:1; transform: scale(1);} }
@keyframes dominantPulse{ 0%,100%{ r:5; } 50%{ r:7; } }
.radar-label{ font-family: var(--f-mono); font-size: 11px; fill: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }

/* ============ SECTIONS ============ */
section{ padding: 88px 0; position: relative; }
.section-alt{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head{ max-width: 620px; margin-bottom: 52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }

.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }

/* ---- how it works ---- */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; counter-reset: step; }
.step{ position:relative; padding-top:44px; }
.step::before{
  counter-increment: step; content: counter(step);
  font-family: var(--f-display); font-size: 30px; color: var(--amber);
  position:absolute; top:0; left:0;
}
.step h3{ font-size:18px; margin-bottom:8px; }
.step p{ font-size:14.5px; margin-bottom:0; }

/* ---- domain cards ---- */
.domain-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.domain-card{
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; border-top: 3px solid var(--dc, var(--amber));
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.domain-card:hover{ transform: translateY(-4px); background: var(--panel-light); border-color: var(--border-strong); }
.domain-card .dot{ width:10px; height:10px; border-radius:50%; background: var(--dc, var(--amber)); margin-bottom:16px; }
.domain-card h3{ font-size:17px; margin-bottom:8px; }
.domain-card p{ font-size:13.5px; margin-bottom:0; }
.domain-card.cognitive{ --dc: var(--cognitive); }
.domain-card.emotional{ --dc: var(--emotional); }
.domain-card.behavioural{ --dc: var(--behavioural); }
.domain-card.environmental{ --dc: var(--environmental); }

/* ---- report / score bars ---- */
.report-mock{
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; font-family: var(--f-mono); font-size: 13px;
}
.report-mock .rm-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.report-mock .rm-head span{ color: var(--text-mute); }
.rm-bar-row{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.rm-bar-row .rm-label{ width:110px; flex-shrink:0; color: var(--text-dim); }
.rm-bar-track{ flex:1; height:8px; border-radius:4px; background: var(--border); overflow:hidden; }
.rm-bar-fill{ height:100%; border-radius:4px; }
.rm-bar-row .rm-score{ width:32px; text-align:right; color: var(--text); }
.rm-verdict{ margin-top:22px; padding-top:18px; border-top:1px solid var(--border); font-family: var(--f-body); font-size:14.5px; color: var(--text-dim); }
.rm-verdict b{ color: var(--text); font-weight:600; }

/* ---- upsell band ---- */
.upsell-band{
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel-light), var(--panel));
  border: 1px solid var(--border-strong);
  padding: 52px; display:flex; align-items:center; justify-content:space-between; gap:36px; flex-wrap:wrap;
  position: relative; overflow: hidden;
}
.upsell-band::after{
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, var(--amber-soft), transparent 70%);
}
.upsell-band h3{ font-size:24px; max-width: 20ch; margin-bottom:8px; }
.upsell-band p{ color: var(--text-dim); margin-bottom:0; max-width:38ch; }

/* ============ FOOTER ============ */
footer{ border-top:1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-family: var(--f-mono); font-size:12.5px; color: var(--text-mute); }
.footer-row a:hover{ color: var(--amber); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; gap:36px; }
  .domain-grid{ grid-template-columns: 1fr 1fr; }
  .upsell-band{ flex-direction:column; align-items:flex-start; text-align:left; }
}
@media (max-width: 600px){
  .container{ padding: 0 20px; }
  section{ padding: 64px 0; }
  .domain-grid{ grid-template-columns: 1fr; }
  .rm-bar-row .rm-label{ width:84px; font-size:11.5px; }
}
