:root{
  --orange:#FF6A00;
  --black:#0B0B0D;
  --carbon:#16161B;
  --steel:#2B2B33;
  --white:#FAFAFA;
  --ash:#A1A1AA;
  --radius:18px;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --shadow2: 0 10px 24px rgba(0,0,0,.35);
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 10% 20%, rgba(255,106,0,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(255,106,0,.12), transparent 65%),
              linear-gradient(135deg, rgba(255,106,0,.20) 0%, rgba(11,11,13,1) 55%);
  color: var(--white);
  line-height:1.45;
  min-height:100vh;
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--orange); color:var(--black); border-radius:12px; z-index:1000;
  font-weight:900;
}

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,11,13,.70);
  border-bottom:1px solid rgba(43,43,51,.9);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; height:72px}
.brand{display:flex; align-items:center; gap:12px}
.brand img{width:34px; height:34px}
.brand strong{
  font-family:"Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing:.06em;
  font-weight:900;
}
.brand strong span{color:var(--orange)}
.links{display:flex; gap:22px; align-items:center}
.links a{color:rgba(250,250,250,.82); font-weight:700; font-size:14px}
.links a:hover{color:var(--white)}
.cta{
  background:var(--orange);
  color:var(--black);
  border:1px solid rgba(255,106,0,.65);
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  font-size:14px;
  display:inline-flex; align-items:center; gap:10px;
  box-shadow: 0 10px 18px rgba(255,106,0,.22);
  white-space:nowrap;
}
.cta:hover{transform: translateY(-1px)}
.cta:active{transform: translateY(0px)}
.burger{display:none; background:transparent; border:0; color:var(--white); font-size:22px}
.mobile{display:none; padding:12px 0 18px; border-top:1px solid rgba(43,43,51,.8)}
.mobile a{display:block; padding:10px 0; color:rgba(250,250,250,.85); font-weight:800}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(43,43,51,.9);
}
.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(1000px 700px at 15% 45%, rgba(255,106,0,.22), transparent 60%),
    radial-gradient(900px 650px at 90% 20%, rgba(255,106,0,.14), transparent 62%),
    linear-gradient(120deg, rgba(255,106,0,.12) 0%, rgba(11,11,13,1) 58%);
  opacity:.95;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(43,43,51,.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(43,43,51,.20) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity:.08;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  padding:70px 0 48px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:34px;
  align-items:center;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  background: rgba(22,22,27,.85);
  border:1px solid rgba(43,43,51,.9);
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.12em;
  color:rgba(250,250,250,.86);
  text-transform:uppercase;
}
.dot{width:8px; height:8px; border-radius:999px; background:var(--orange); box-shadow:0 0 0 6px rgba(255,106,0,.15)}
h1{
  margin:18px 0 12px;
  font-family:"Plus Jakarta Sans", Inter, sans-serif;
  font-size:54px;
  line-height:1.02;
  letter-spacing:-.02em;
}
h1 .accent{color:var(--orange)}
.sub{color: rgba(250,250,250,.80); font-size:16px; max-width: 62ch}
.sub strong{color:rgba(250,250,250,.93)}

.hero-actions{margin-top:20px; display:flex; gap:12px; flex-wrap:wrap}
.btn{
  border-radius:16px;
  padding:12px 16px;
  font-weight:900;
  font-size:14px;
  border:1px solid rgba(43,43,51,.95);
  background: rgba(22,22,27,.72);
  color: var(--white);
  display:inline-flex; align-items:center; gap:10px;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background: var(--orange);
  border-color: rgba(255,106,0,.7);
  color: var(--black);
  box-shadow: 0 12px 22px rgba(255,106,0,.22);
}

.microproof{
  margin-top:16px;
  display:flex; gap:12px; flex-wrap:wrap;
  color: rgba(250,250,250,.72);
  font-size:13px;
}
.pill{
  padding:8px 10px;
  background: rgba(22,22,27,.65);
  border:1px solid rgba(43,43,51,.85);
  border-radius:999px;
  display:inline-flex; gap:8px; align-items:center;
}
.pill b{color:rgba(250,250,250,.92)}

.card{
  background: rgba(22,22,27,.70);
  border:1px solid rgba(43,43,51,.9);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow2);
}
.hero-card h3{margin:0 0 10px; font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:rgba(250,250,250,.78)}
.kpis{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.kpi{
  background: rgba(11,11,13,.45);
  border:1px solid rgba(43,43,51,.85);
  border-radius: 14px;
  padding:12px;
}
.kpi .num{font-family:"Plus Jakarta Sans"; font-size:22px; font-weight:900; color:var(--orange)}
.kpi .lbl{font-size:12px; color:rgba(250,250,250,.72); margin-top:4px}
.note{margin-top:12px; color:rgba(250,250,250,.70); font-size:12px}

section{padding:72px 0}
.section-title{margin:0 0 10px; font-family:"Plus Jakarta Sans"; font-size:34px; letter-spacing:-.02em}
.section-sub{margin:0 0 26px; color:rgba(250,250,250,.75); max-width: 80ch}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.tag{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,106,0,.12);
  border:1px solid rgba(255,106,0,.30);
  color: rgba(255,255,255,.90);
  font-weight:900;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* WHY charts */
.why{
  margin-top:22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.chart{
  background: rgba(11,11,13,.35);
  border:1px solid rgba(43,43,51,.85);
  border-radius: var(--radius);
  padding:14px;
}
.chart h4{
  margin:0 0 8px;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(250,250,250,.78);
}
.chart .cap{margin-top:8px; font-size:12px; color:rgba(250,250,250,.72)}
svg text{user-select:none}

/* Plans */
.plan{
  display:grid; grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:stretch;
}
.bullets{margin:12px 0 0; padding-left:18px; color:rgba(250,250,250,.78)}
.bullets li{margin:6px 0}
.muted{color:rgba(250,250,250,.68); font-size:13px}
.highlight{
  border:1px solid rgba(255,106,0,.45);
  box-shadow: 0 18px 40px rgba(255,106,0,.12);
}
.diff{
  margin-top:12px;
  display:grid; grid-template-columns:1fr; gap:10px;
}
.diff .row{
  background: rgba(11,11,13,.45);
  border:1px solid rgba(43,43,51,.85);
  border-radius: 16px;
  padding:12px;
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
}
.diff .row b{font-size:14px}
.diff .row .r{text-align:right}
.diff .row .r .n{font-weight:900; color:var(--orange)}
.diff .row .r .s{font-size:12px; color:rgba(250,250,250,.70)}

.tooltip{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px; height:28px;
  border-radius:12px;
  margin-left:8px;
  background: rgba(255,106,0,.10);
  border:1px solid rgba(255,106,0,.30);
  color: rgba(250,250,250,.92);
  font-weight:900;
  cursor:help;
}
.tooltip:focus{outline: 2px solid rgba(255,106,0,.6); outline-offset:2px}
.tooltip .tip{
  position:absolute;
  left:0; top:36px;
  width:320px;
  max-width: min(80vw, 360px);
  background: rgba(11,11,13,.96);
  border:1px solid rgba(43,43,51,.9);
  border-radius:16px;
  padding:12px;
  box-shadow: var(--shadow2);
  display:none;
  z-index:60;
}
.tooltip:hover .tip, .tooltip:focus .tip{display:block}
.tip b{color:var(--orange)}

/* Steps */
.steps{display:grid; grid-template-columns: repeat(4, 1fr); gap:14px}
.step{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(43,43,51,.9);
  background: rgba(22,22,27,.65);
}

/* FAQ */
details{background: rgba(22,22,27,.65); border:1px solid rgba(43,43,51,.9); border-radius: var(--radius); padding:14px 16px}
details + details{margin-top:12px}
summary{cursor:pointer; font-weight:900}
details p{color:rgba(250,250,250,.76)}

/* Footer */
footer{padding:34px 0; border-top:1px solid rgba(43,43,51,.9); background: rgba(7,7,8,.75)}
.foot{display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap}
.small{color:rgba(250,250,250,.65); font-size:13px}
.foot a{color:rgba(250,250,250,.78)}
.foot a:hover{color:var(--white)}

/* Animations */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .60s ease, transform .60s ease;
  will-change: opacity, transform;
}
.reveal.in{opacity:1; transform: translateY(0)}
svg .draw{stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms ease}
svg .fade{opacity: 0; transition: opacity 700ms ease}
svg.in .fade{opacity:1}

@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr; padding-top:54px}
  h1{font-size:46px}
  .grid3{grid-template-columns:1fr}
  .plan{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .why{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .links{display:none}
  .burger{display:inline-flex}
  h1{font-size:40px}
  .steps{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
}
@media (max-width: 420px){
  .kpis{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none}
  svg .draw{transition:none}
  svg .fade{opacity:1; transition:none}
}

/* --- Chart sizing: make "Why NAVAID?" graphs larger --- */
.why{ gap:18px; }
.chart{ padding:18px; }
.chart svg{
  height: 240px !important;
}
@media (max-width: 980px){
  .chart svg{ height: 230px !important; }
}
@media (max-width: 420px){
  .chart svg{ height: 210px !important; }
}

/* --- Why section: big, full-width charts (same width as plans) --- */
.why-section{ padding: 56px 0; }
.why-stack{ display:grid; grid-template-columns: 1fr; gap: 18px; }
.chart-large{ padding: 22px; }
.chart-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.chart-metrics{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mini{
  background: rgba(11,11,13,.45);
  border:1px solid rgba(43,43,51,.85);
  border-radius: 14px;
  padding:10px 12px;
  min-width: 150px;
}
.mini b{ display:block; color: rgba(250,250,250,.92); }
.mini span{ color: rgba(250,250,250,.68); font-size:12px; }
.chart-large svg{ height: 340px !important; }
.chart-large .cap{ margin-top:10px; font-size:13px; color: rgba(250,250,250,.72); }

@media (max-width: 980px){
  .chart-large svg{ height: 320px !important; }
}
@media (max-width: 420px){
  .chart-large svg{ height: 280px !important; }
  .mini{ min-width: 140px; }
}

/* --- Interactive phases (chart 1) --- */
.phase-btn{ cursor:pointer; text-align:left; }
.phase-btn.active{
  border-color: rgba(255,106,0,.55) !important;
  box-shadow: 0 12px 26px rgba(255,106,0,.14);
}
.pipeline-chart .phase-rect{ opacity:.14; transition: opacity .25s ease; }
.pipeline-chart[data-active-phase="ramp"] .rect-ramp{ opacity:.55; }
.pipeline-chart[data-active-phase="stabilize"] .rect-stabilize{ opacity:.50; }
.pipeline-chart[data-active-phase="scale"] .rect-scale{ opacity:.45; }
.pipeline-chart .phase-hit{ cursor:pointer; }

.phase-detail{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11,11,13,.45);
  border:1px solid rgba(43,43,51,.85);
}
.phase-title{
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  color: rgba(250,250,250,.92);
}
.phase-text{ color: rgba(250,250,250,.74); font-size: 13px; }

/* --- Funnel interactive (chart 2) --- */
.funnel-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}
.funnel-box-title{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(250,250,250,.74);
  margin-bottom: 10px;
}
.funnel-divider{
  height: 1px;
  background: rgba(43,43,51,.85);
  margin: 14px 0;
}
.funnel-step{
  width:100%;
  text-align:left;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(43,43,51,.9);
  background: rgba(22,22,27,.65);
  color: rgba(250,250,250,.92);
  cursor:pointer;
  margin-top: 10px;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.funnel-step:hover{ transform: translateY(-1px); }
.funnel-step-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.funnel-step-name{ font-weight: 900; font-size: 16px; }
.funnel-step-arrow{ color: rgba(255,106,0,.9); font-size: 20px; }
.funnel-step-body{ margin-top: 8px; color: rgba(250,250,250,.72); font-size: 13px; display:none; }
.funnel-step.active{
  border-color: rgba(255,106,0,.55);
  background: rgba(255,106,0,.07);
}
.funnel-step.active .funnel-step-body{ display:block; }

.funnel-right{ display:flex; flex-direction:column; gap: 12px; }
.funnel-note{ text-align:center; }

.funnel{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.f-seg{
  position:relative;
  width:100%;
  border:0;
  cursor:pointer;
  padding: 16px 18px;
  color: rgba(250,250,250,.92);
  background: rgba(43,43,51,.65);
  border-radius: 18px;
  border:1px solid rgba(43,43,51,.9);
  text-align:center;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  overflow:hidden;
}
/* trapezoid feel */
.f-seg::before{
  content:"";
  position:absolute; inset:0;
  background: inherit;
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}
.f-seg > span{ position:relative; display:block; }
.f-seg .f-cap{ font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: rgba(250,250,250,.78); }
.f-seg .f-title{ font-weight: 900; font-size: 16px; margin-top: 4px; }

.f-seg:hover{ transform: translateY(-1px); }
.f-seg.active{
  background: rgba(255,106,0,.98);
  border-color: rgba(255,106,0,.8);
  color: var(--black);
  box-shadow: 0 18px 40px rgba(255,106,0,.18);
}
.f-seg.active .f-cap{ color: rgba(11,11,13,.75); }
.f-seg.active .f-title{ color: rgba(11,11,13,.92); }

/* Taper funnel widths */
.f-seg:nth-child(1){ max-width: 100%; margin: 0 auto; }
.f-seg:nth-child(2){ max-width: 92%; margin: 0 auto; }
.f-seg:nth-child(3){ max-width: 84%; margin: 0 auto; }
.f-seg:nth-child(4){ max-width: 76%; margin: 0 auto; }
.f-seg:nth-child(5){ max-width: 68%; margin: 0 auto; }

.funnel-detail{
  background: rgba(11,11,13,.45);
  border:1px solid rgba(43,43,51,.85);
}
.funnel-detail-title{
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 900;
  margin: 0 0 6px;
  color: rgba(250,250,250,.92);
}
.funnel-detail-text{ color: rgba(250,250,250,.74); font-size: 13px; }

@media (max-width: 980px){
  .funnel-grid{ grid-template-columns:1fr; }
  .funnel-note{ text-align:left; }
}

/* Ensure phase click areas work even when clicking on the line/points */
.pipeline-chart .draw,
.pipeline-chart circle{ pointer-events: none; }

/* Fix: System header spacing */
.chart-head .tag{ display:inline-flex; align-items:center; }
