/* DRP page (prefix dp-)  —  hero / steps / MODULES heading basics live in product.css
   Sizes follow the 1920 comp: clamp(min, designPx / 19.2 vw, designPx);
   diagrams use cqw of their own canvas.
   1. Hero + globe   2. Flavors   3. ASM steps + threat map
   4. VI steps + law-enforcement arc (bokeh)   5. Cycles   6. Responsive */

/* shared bits of this page */
.dp-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.92vw, 3.5rem);          /* 56 */
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.05em;
  color: var(--green);
  text-transform: uppercase;
}
.dp-sub {
  margin: clamp(0.75rem, 1.2vw, 23px) 0 0;
  font-size: clamp(1rem, 1.41vw, 1.6875rem);          /* 27 */
  line-height: 1.3;
  color: var(--ink);
}
.dp-dash {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 7 7;
}
.dp-dash--arc {
  stroke-width: 3;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}
.dp-ring {
  fill: var(--bg);
  stroke: var(--green);
  stroke-width: 2.5;
}
.dp-head {
  fill: var(--green);
}

/* 1. Hero + globe --------------------------------------------------------------- */
.dp-top {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-hero) 70%, var(--bg) 100%);
}
.dp-hero {
  padding-top: clamp(110px, 15.68vw, 301px);
}
.dp-hero__eyebrow {
  margin: clamp(1.25rem, 2.4vw, 46px) 0 0;
  font-size: clamp(0.75rem, 1.3vw, 1.5625rem);        /* 25 */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}
.dp-hero .pr-hero__title {
  margin-top: clamp(1rem, 2.19vw, 42px);
  line-height: 1.09;
}
.dp-hero__lead {
  margin-top: clamp(0.5rem, 1.02vw, 19.5px);
  line-height: 1.15;
}
/* comp: full width, y 830-1848 — scales with the screen */
.art--globe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 1018;
  margin-top: -0.86vw;
  background-image: url("../img/drp/globe.jpg");
  background-image: image-set(
    url("../img/drp/globe.webp") type("image/webp"),
    url("../img/drp/globe.jpg") type("image/jpeg")
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
}

/* 2. Flavors ------------------------------------------------------------------- */
.dp-flavors {
  padding: clamp(2rem, 2.6vw, 50px) var(--pad-x) 0;
  text-align: center;
}
.dp-flavors__row {
  --card-w: max(14rem, 18.49vw);                      /* 355 */
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--card-w));
  justify-content: center;
  column-gap: 7.76vw;                                 /* 149 */
  margin-top: clamp(2rem, 3.7vw, 71px);
}
.dp-flavors__line {
  /* one line from the first card's centre to the last; the solid cards hide it */
  position: absolute;
  top: max(6rem, 7.14vw);                             /* 137 */
  left: calc(50% - var(--card-w) - 7.76vw);
  right: calc(50% - var(--card-w) - 7.76vw);
  height: 2px;
  background: var(--green);
}
.dp-fcard {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(220px, 14.32vw, 275px);
  padding: clamp(1.75rem, 2.34vw, 45px) clamp(1rem, 1.3vw, 25px) clamp(1.5rem, 2.5vw, 48px);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-card);
  background: var(--bg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dp-fcard:hover {
  border-color: var(--green-light);
  box-shadow: 0 0 0 1px var(--green-glow), 0 18px 48px rgba(91, 232, 76, 0.14);
}
.dp-fcard__icon {
  display: block;
  height: clamp(60px, 4.32vw, 83px);
  width: auto;
}
.dp-fcard__title {
  margin: clamp(1rem, 1.67vw, 32px) 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.125rem, 1.56vw, 1.875rem);       /* 30 */
  font-weight: 300;
  line-height: 1.1;
  color: var(--green);
  text-transform: uppercase;
}

/* 3. ASM steps + threat map ----------------------------------------------------- */
.dp-asm {
  padding-top: clamp(3.5rem, 7.4vw, 142px);
  text-align: center;
}
.dp-modsub {
  font-weight: 500;
}
.dp-modsub--lg {
  margin-top: clamp(2px, 0.2vw, 4px);
  font-size: clamp(1.125rem, 1.72vw, 2.0625rem);      /* 33 */
}
.dp-asm__cols {
  display: grid;
  grid-template-columns: max(24rem, 30.52vw) max-content;   /* 586 | rest */
  margin-top: clamp(2rem, 2.81vw, 54px);
  padding-left: 20.94vw;                                    /* first ring at x 402 */
  text-align: left;
}
.dp-steps {
  max-width: none;
  margin: 0;
}
.dp-steps .pr-step {
  gap: clamp(0.75rem, 1.04vw, 20px);
  min-height: clamp(42px, 2.86vw, 55px);
}
.dp-steps .pr-step + .pr-step {
  margin-top: clamp(0.75rem, 1.3vw, 25px);
}
.dp-steps .pr-step__num {
  width: clamp(46px, 3.18vw, 61px);
  font-size: clamp(0.875rem, 1.04vw, 1.25rem);
}
.dp-steps .pr-step__text {
  max-width: max(15rem, 23.44vw);                     /* 450 */
  font-size: clamp(0.9375rem, 1.09vw, 1.3125rem);     /* 21 */
  line-height: 1.12;
}
.dp-asm__cols > ol + ol .pr-step__text {
  max-width: max(15rem, 21.9vw);                      /* 420 — wraps like the comp */
}

/* threat map: comp box 1920 x 690 (1cqw = 19.2 px) */
.dp-map {
  margin-top: clamp(2.5rem, 6.48vw, 124.5px);
  container-type: inline-size;
}
.dp-map__canvas {
  position: relative;
  height: 35.94cqw;
}
.dp-map__note {
  margin: 0;
  font-size: max(1.2cqw, 13px);                       /* 23 */
  font-weight: 400;
  line-height: 1.24;
  color: var(--ink);
}
.dp-map__infra {
  position: absolute;
  left: 56.02%;                                       /* centre x 1075.5 */
  top: 1.74%;
  width: 40cqw;
  margin-left: -20cqw;
}
.dp-map__infra .dp-map__note {
  font-size: max(1.25cqw, 13px);                      /* 24 */
}
.dp-map__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: max(20.1cqw, 200px);                         /* 386 */
  min-height: 5.83cqw;                                /* 112 */
  margin: 1.875cqw auto 0;
  padding: 0.6em 1em;
  border: 1.5px solid var(--green);
  border-radius: 0.94cqw;
  font-family: var(--font-ui);
  font-size: max(1.2cqw, 13px);                       /* 23 */
  font-weight: 300;
  line-height: 1.25;
  color: var(--green);
}
.dp-map__hub {
  position: absolute;
  left: 40.625%;                                      /* 780 */
  top: 27.54%;                                        /* 190 */
  width: 30.83%;                                      /* 592 */
}
.dp-map__lines {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.dp-map__eye {
  position: absolute;
  left: 49.92%;
  top: 60.5%;
  width: 18.58%;                                      /* 110 */
  height: auto;
  transform: translate(-50%, -50%);
}
.dp-map__panel {
  position: absolute;
  top: 36.96%;                                        /* 255 */
  width: 35.31%;                                      /* 678 */
}
.dp-map__panel--left  { left: 3.91%; }                /* 75 */
.dp-map__panel--right { left: 64.69%; }               /* 1242 */
.dp-map__lines--narrow {
  display: none;
}
.dp-map__shot {
  display: block;
  width: 100%;
  cursor: zoom-in;
  margin: 1.46cqw auto 0;
  border: 2px solid var(--green);
  border-radius: 1.15cqw;
  background: #000;
  box-shadow: 0 0 12px rgba(91, 232, 76, 0.35);
  overflow: hidden;
}
.dp-map__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.dp-map__shot--vuln {
  padding: 1.82cqw 1.55cqw 0.89cqw;   /* screenshot is cropped to its window frame */
}
.dp-map__shot--map {
  width: 53.54%;                                      /* 363 */
  aspect-ratio: 363 / 320;
  padding: 1.3cqw;
}
.dp-map__shot--map img {
  height: 100%;
  object-fit: cover;
}

/* 4. VI steps + law enforcement (shared bokeh) --------------------------------- */
.dp-intel {
  position: relative;
}
.art--bokeh {
  top: 13.49vw;                                       /* comp y 3899 */
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 1436;
  background-image: url("../img/drp/bokeh.png");
  background-image: image-set(
    url("../img/drp/bokeh.webp") type("image/webp"),
    url("../img/drp/bokeh.png") type("image/png")
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%);
}
.dp-vi {
  position: relative;
  padding-top: clamp(3.5rem, 7.76vw, 149px);
  text-align: center;
}
.dp-steps--lg {
  width: fit-content;
  max-width: min(100% - 2 * var(--pad-x), 46.3vw);    /* 889 */
  margin: clamp(2rem, 2.89vw, 55.5px) auto 0;
  text-align: left;
}
.dp-steps--lg .pr-step {
  gap: clamp(0.875rem, 1.3vw, 25px);
  min-height: clamp(44px, 2.92vw, 56px);
}
.dp-steps--lg .pr-step + .pr-step {
  margin-top: clamp(0.75rem, 1.22vw, 23.5px);
}
.dp-steps--lg .pr-step__num {
  width: clamp(48px, 3.23vw, 62px);
  font-size: clamp(0.9375rem, 1.09vw, 1.3125rem);
}
.dp-steps--lg .pr-step__text {
  max-width: max(15rem, 41.8vw);                      /* 803 */
  font-size: clamp(1rem, 1.09vw, 1.3125rem);          /* 21 */
  line-height: 1.27;
}

.dp-law {
  position: relative;
  padding-top: clamp(4rem, 13.05vw, 250.6px);
  text-align: center;
}
.dp-law__text {
  margin: clamp(0.5rem, 0.8vw, 15.3px) auto 0;
  padding-inline: var(--pad-x);
  font-size: clamp(0.9375rem, 1.25vw, 1.5rem);        /* 24 */
  line-height: 1.33;
  color: var(--ink);
}

/* arc diagram: comp box 1920 x 760 (1cqw = 19.2 px) */
.dp-arc {
  position: relative;
}
.dp-arc__inner {
  container-type: inline-size;
}
.dp-arc__canvas {
  position: relative;
  height: 39.58cqw;
}
.dp-arc__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dp-arc__eye {
  position: absolute;
  left: 44.53%;                                       /* 855 */
  top: 15.86%;
  width: 11.46%;                                      /* 220 */
  height: auto;
}
.dp-arc__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dp-anode {
  --d: 9.22cqw;                                       /* 177 */
  position: absolute;
  left: calc(var(--x) / 1920 * 100%);
  top: calc(var(--y) / 760 * 100%);
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
}
.dp-anode__num {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: max(2px, 0.16cqw) solid #66F05A;
  border-radius: 50%;
  background: var(--bg);
  font-size: max(2.08cqw, 12px);                      /* 40 */
  font-weight: 300;
  color: var(--green-soft);
  transition: box-shadow 0.3s var(--ease);
}
.dp-anode__num:hover {
  box-shadow: 0 0 24px rgba(91, 232, 76, 0.3);
}
.dp-anode__label {
  position: absolute;
  top: 50%;
  font-size: max(1.46cqw, 10px);                      /* 28 */
  line-height: 1.29;
  white-space: nowrap;
  color: var(--green-soft);
  transform: translateY(-50%);
}
.dp-anode--l .dp-anode__label { right: calc(100% + 1.15cqw); text-align: right; }
.dp-anode--r .dp-anode__label { left: calc(100% + 1.15cqw); text-align: left; }
.dp-anode--b .dp-anode__label {
  top: calc(100% + 1.1cqw);
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

/* 5. Cycles -------------------------------------------------------------------- */
.dp-cycles {
  padding: clamp(3.5rem, 6.48vw, 124.5px) var(--pad-x) clamp(4rem, 10.13vw, 194.5px);
  text-align: center;
}
.dp-cycles__eyebrow {
  margin: clamp(0.75rem, 1.2vw, 23px) 0 0;
  font-size: clamp(0.75rem, 0.94vw, 1.125rem);        /* 18 */
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}
.dp-cycles__row {
  --dot: clamp(44px, 6.77vw, 130px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 78.13vw);                          /* 1500: centres 300 apart */
  margin: clamp(2rem, 2.95vw, 56.7px) auto 0;
  padding: 0;
  list-style: none;
}
.dp-cycles__row::before {
  /* connector from R0 to R4 — the solid dots hide it under them */
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--green);
}
.dp-cycles__row li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dp-cycles__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dot);
  aspect-ratio: 1;
  border: 3px solid #66F05A;
  border-radius: 50%;
  background: var(--bg);
  font-size: clamp(0.875rem, 1.56vw, 1.875rem);       /* 30 */
  font-weight: 700;
  color: var(--green-light);
  transition: box-shadow 0.3s var(--ease);
}
.dp-cycles__dot:hover {
  box-shadow: 0 0 22px rgba(91, 232, 76, 0.3);
}
.dp-cycles__label {
  margin-top: clamp(0.5rem, 1.3vw, 25px);
  font-size: clamp(0.6875rem, 1.25vw, 1.5rem);        /* 24 */
  line-height: 1.25;
  color: var(--ink);
}
.dp-cycles__text {
  margin: clamp(2.5rem, 4.84vw, 93px) auto 0;
  font-size: clamp(1rem, 1.41vw, 1.6875rem);          /* 27 */
  line-height: 1.15;
  color: var(--ink);
}

/* 6. Responsive ------------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .dp-asm__cols {
    grid-template-columns: repeat(2, max-content);
    column-gap: 3rem;
    justify-content: center;
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .art--globe {
    background-image: image-set(
      url("../img/drp/globe-1280.webp") type("image/webp"),
      url("../img/drp/globe.jpg") type("image/jpeg")
    );
  }
  .art--bokeh {
    background-image: image-set(
      url("../img/drp/bokeh-1280.webp") type("image/webp"),
      url("../img/drp/bokeh.png") type("image/png")
    );
  }
  .dp-fcard {
    min-height: 0;
  }
  .dp-flavors__row {
    --card-w: min(100%, 420px);
    grid-template-columns: var(--card-w);
    row-gap: 1.25rem;
  }
  .dp-flavors__line {
    /* stacked cards: the connector runs vertically through their centres */
    top: 2rem;
    bottom: 2rem;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
  }
  .dp-asm__cols {
    grid-template-columns: minmax(0, 520px);
    row-gap: clamp(0.75rem, 1.3vw, 25px);
    padding-inline: var(--pad-x);
  }
  .dp-steps .pr-step__text,
  .dp-steps--lg .pr-step__text {
    max-width: none;
  }
  .dp-steps--lg {
    max-width: min(100% - 2 * var(--pad-x), 600px);
  }

  /* threat map (option A): infrastructure ↑ hub, then the two panels side by
     side below it — the hub's side arrows bend down into them, so the eye still
     sits between the two panels like on desktop */
  .dp-map {
    padding-inline: var(--pad-x);
  }
  .dp-map__canvas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(10px, 3vw, 24px);
    align-items: start;
    height: auto;
    max-width: 560px;
    margin: 0 auto;
  }
  .dp-map__infra,
  .dp-map__hub,
  .dp-map__panel {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    margin: 0;
  }
  .dp-map__infra {
    grid-column: 1 / -1;
  }
  .dp-map__box {
    margin-top: 1rem;
    min-height: 0;
    border-radius: 14px;
  }
  .dp-map__hub {
    position: relative;
    grid-column: 1 / -1;
  }
  .dp-map__lines--wide {
    display: none;
  }
  .dp-map__lines--narrow {
    display: block;
  }
  .dp-map__eye {
    left: 50%;
    top: 46.875%;                 /* ring centre 150 / 320 */
    width: 15%;
  }
  /* both panels share two grid rows (note | shot), so the two screenshot
     boxes start on the same line and have exactly the same size */
  .dp-map__panel {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    align-content: start;
    margin-top: 0.5rem;
  }
  .dp-map__panel .dp-map__note {
    align-self: end;
  }
  .dp-map__panel .dp-map__note {
    font-size: clamp(11.5px, 2.6vw, 16px);
  }
  .dp-map__shot {
    margin-top: 0.75rem;
    border-radius: 12px;
  }
  .dp-map__shot--vuln,
  .dp-map__shot--map {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dp-map__shot--vuln img,
  .dp-map__shot--map img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;        /* whole screenshot visible, same box size */
  }

  /* arc: same diagram, empty sides (comp x 0-230 / 1700-1920) cropped */
  .dp-arc {
    overflow-x: clip;
    overflow-y: visible;
  }
  .dp-arc__inner {
    width: calc(100% * 1920 / 1470);
    margin-left: calc(-100% * 230 / 1470);
  }
}

@media (max-width: 575.98px) {
  /* phones: lighter crop (comp x 60-1860) so the side labels stay on screen */
  .dp-arc__inner {
    width: calc(100% * 1920 / 1800);
    margin-left: calc(-100% * 60 / 1800);
  }
  .dp-anode__label {
    font-size: 9.5px;
    letter-spacing: -0.01em;
  }
  .dp-cycles__dot {
    border-width: 2px;
  }
  .dp-cycles__label br {
    display: none;
  }
}

/* Short desktop screens: tighter hero so the globe starts on the first screen
   (the globe's faded, empty top edge tucks under the end of the paragraph). */
@media (min-width: 992px) and (max-height: 920px) {
  .dp-hero {
    padding-top: max(96px, 8.85vw);                   /* 301 -> 170 */
  }
  .art--globe {
    margin-top: -5.21vw;
  }
  .dp-hero__eyebrow {
    margin-top: max(0.875rem, 1.25vw);                /* 46 -> 24 */
  }
  .dp-hero .pr-hero__title {
    margin-top: max(0.75rem, 1.15vw);                 /* 42 -> 22 */
  }
}
