:root {
  color-scheme: light;
  --navy: #0b1020;
  --blue: #1b2d52;
  --accent: #3c7bff;
  --accent-soft: rgba(60, 123, 255, 0.15);
  --gray: #eef1f7;
  --dark: #0b0f19;
  --surface: #ffffff;
  --ink: #1b1f2a;
  --muted: #54607a;
  --shadow: 0 24px 60px rgba(12, 22, 46, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f8f9fc 0%, #eef1f7 40%, #e6ebf5 100%);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section--light {
  background: transparent;
}

.section--gray {
  background: linear-gradient(180deg, #f4f6fb 0%, #e9eef7 100%);
}

.section--white {
  background: #ffffff;
}

.section__subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.accent {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 80vh;
  color: #fff;
  background: url("images/background.webp") center/cover no-repeat #05070d;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(6, 10, 22, 0.65), rgba(6, 10, 22, 0.2) 40%, rgba(6, 10, 22, 0.7));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 6rem 5vw;
  max-width: 650px;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.hero h1 {
  color: #fff;
}

.hero__tagline {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero__stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  font-size: 0.95rem;
}

.hero__stats span {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
}

.hero__stats div {
  background: rgba(7, 12, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(8px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--surface);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 51, 84, 0.08);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.logos-box {
  width: 100%;
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 51, 84, 0.08);
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.logos-box img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, clamp(70px, 10vw, 120px));
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
  opacity: 0.9;
}

.logos-box img:nth-child(1) {
  --x: 14%;
  --y: 28%;
  --size: clamp(70px, 9vw, 115px);
  --rotate: -4deg;
}

.logos-box img:nth-child(2) {
  --x: 36%;
  --y: 20%;
  --size: clamp(80px, 11vw, 130px);
  --rotate: 3deg;
}

.logos-box img:nth-child(3) {
  --x: 58%;
  --y: 26%;
  --size: clamp(70px, 9vw, 110px);
  --rotate: -2deg;
}

.logos-box img:nth-child(4) {
  --x: 82%;
  --y: 22%;
  --size: clamp(70px, 9vw, 120px);
  --rotate: 4deg;
}

.logos-box img:nth-child(5) {
  --x: 22%;
  --y: 52%;
  --size: clamp(75px, 10vw, 120px);
  --rotate: 2deg;
}

.logos-box img:nth-child(6) {
  --x: 46%;
  --y: 50%;
  --size: clamp(80px, 11vw, 130px);
  --rotate: -3deg;
}

.logos-box img:nth-child(7) {
  --x: 70%;
  --y: 54%;
  --size: clamp(70px, 9vw, 110px);
  --rotate: 1deg;
}

.logos-box img:nth-child(8) {
  --x: 90%;
  --y: 56%;
  --size: clamp(70px, 9vw, 115px);
  --rotate: -4deg;
}

.logos-box img:nth-child(9) {
  --x: 18%;
  --y: 78%;
  --size: clamp(75px, 10vw, 120px);
  --rotate: -2deg;
}

.logos-box img:nth-child(10) {
  --x: 50%;
  --y: 78%;
  --size: clamp(85px, 12vw, 135px);
  --rotate: 3deg;
}

.logos-box img:nth-child(11) {
  --x: 78%;
  --y: 80%;
  --size: clamp(70px, 9vw, 115px);
  --rotate: 2deg;
}

@media (max-width: 640px) {
  .logos-box {
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .logos-box img {
    position: static;
    transform: none;
    width: clamp(90px, 40vw, 140px);
    opacity: 1;
  }
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: center;
  align-items: center;
}

.logos img {
  height: 34px;
  max-width: 140px;
  object-fit: contain;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 1.5rem 0;
}

.grid-list li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  box-shadow: 0 12px 24px rgba(27, 45, 82, 0.08);
}

.note {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--muted);
}

.moon {
  width: min(350px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #faf6ef, #cfc7ba 70%, #9e9488 100%);
  justify-self: center;
  box-shadow: 0 40px 80px rgba(50, 50, 50, 0.25);
}

.diagram {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 300px) minmax(220px, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  position: relative;
  align-items: center;
  z-index: 2;
}

.diagram-wrapper {
  position: relative;
  margin: 2rem 0;
  padding: 1rem 1.5rem 6rem;
  z-index: 0;
}

.diagram-wrapper::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.75rem 6.5rem;
  border: 2px solid rgba(53, 103, 198, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.diagram__column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.diagram__item {
  padding: 1.4rem;
  border: 1px dashed rgba(84, 96, 122, 0.4);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 24px rgba(17, 32, 64, 0.08);
}

.diagram__center {
  display: grid;
  place-items: center;
  z-index: 2;
}

.diagram__center img {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(17, 32, 64, 0.2));
}

.diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.diagram__lines path {
  fill: none;
  stroke: rgba(47, 58, 92, 0.5);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.25rem;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.pill-row::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 2px;
  height: 2rem;
  transform: translateX(-50%);
  background: rgba(53, 103, 198, 0.4);
}

.pill-row span:nth-child(2) {
  transform: translateY(14px);
}

@media (max-width: 960px) {
  .diagram {
    grid-template-columns: 1fr;
  }

  .diagram-wrapper {
    padding: 0;
  }

  .diagram-wrapper::before {
    display: none;
  }

  .diagram__center {
    order: -1;
    margin-bottom: 1rem;
  }

  .diagram__lines {
    display: none;
  }

  .formats-orbit {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
  }

  .formats-orbit__item {
    text-align: center;
    justify-items: center;
    max-width: 100%;
  }

  .formats-orbit__item--top-left,
  .formats-orbit__item--middle-left,
  .formats-orbit__item--top-right,
  .formats-orbit__item--middle-right,
  .formats-orbit__item--bottom {
    justify-self: stretch;
  }

  .formats-orbit__center {
    order: -1;
  }

  .formats-orbit__lines {
    display: none;
  }

  .pill-row {
    margin-top: 1rem;
  }

  .pill-row span:nth-child(2) {
    transform: none;
  }
}

.pill-row span {
  background: #dfe8ff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--blue);
  position: relative;
  z-index: 4;
}

.targeting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.targeting-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 51, 84, 0.08);
}

.targeting-card .icon {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
}

.targeting-card .icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.section__eyebrow {
  display: inline-block;
  width: 70px;
  height: 4px;
  background: #7a6aa6;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.formats-orbit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 320px));
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
  justify-items: center;
  justify-content: center;
}

.formats-orbit__item {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(84, 96, 122, 0.4);
  box-shadow: 0 12px 24px rgba(17, 32, 64, 0.08);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
  height: 240px;
  z-index: 2;
}

.formats-orbit__item:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.formats-orbit__item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.formats-orbit__item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.formats-orbit__item p {
  margin: 0;
  color: var(--muted);
}

.formats-orbit__center {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  z-index: 2;
}

.formats-orbit__center img {
  width: clamp(200px, 25vw, 320px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(17, 32, 64, 0.2));
}

.formats-orbit__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.formats-orbit__lines line {
  stroke: rgba(47, 58, 92, 0.5);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.antifraud__features {
  display: grid;
  gap: 1.8rem;
}

.antifraud__feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.antifraud__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(27, 45, 82, 0.2);
  display: grid;
  place-items: center;
  color: #0f2857;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(12, 22, 46, 0.1);
}

.antifraud__icon svg,
.antifraud__icon img,
.ethics-card__icon svg,
.identification__icon svg,
.identification__arrow svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.antifraud__visual {
  display: grid;
  place-items: center;
}

.antifraud__shield {
  width: min(320px, 60vw);
  aspect-ratio: 1 / 1.1;
  border-radius: 45%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(207, 217, 235, 0.6) 60%, rgba(177, 188, 208, 0.8));
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px rgba(14, 24, 46, 0.2);
}

.antifraud__shield svg {
  width: 70%;
  height: auto;
  fill: #0f2b63;
}

.antifraud__shield .shield__inner {
  fill: #1a3f86;
}

.antifraud__shield .shield__check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 2rem;
  align-items: start;
}

#ad-budgets h2 {
  margin-bottom: 1.6rem;
}

.budgets__chart {
  display: grid;
  gap: 1.2rem;
}

.budget-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 2fr);
  gap: 1rem;
  align-items: center;
}

.budget-row__label {
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.budget-row__bar {
  position: relative;
  height: 38px;
  background: rgba(120, 120, 120, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.budget-row__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--value);
  background: linear-gradient(90deg, #8a8a8a, #6e6e6e);
}

.budget-row__bar span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 600;
}

.budget-row__bar--strong::before {
  background: linear-gradient(90deg, #6e6e6e, #4f4f4f);
}

.budgets__note {
  border: 2px dashed rgba(64, 74, 102, 0.5);
  background: rgba(200, 205, 214, 0.35);
  padding: 1.4rem;
  font-size: 1.05rem;
  color: var(--blue);
  border-radius: var(--radius-md);
}

.budgets__source {
  margin-top: 1.8rem;
  color: var(--muted);
  font-weight: 600;
}

.ethics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.ethics-card {
  border: 2px dotted rgba(27, 45, 82, 0.35);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(12, 22, 46, 0.08);
  display: grid;
  gap: 1rem;
}

.ethics-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(27, 45, 82, 0.2);
  display: grid;
  place-items: center;
  color: #0f2857;
  background: rgba(255, 255, 255, 0.95);
}

.identification {
  text-align: center;
}

.identification__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px minmax(220px, 1fr);
  gap: 1.8rem;
  align-items: center;
  margin: 2.5rem 0;
}

.identification__side {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.identification__side h3 {
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.identification__side ul {
  list-style: disc;
  padding-left: 1.2rem;
  text-align: left;
  color: var(--blue);
}

.identification__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #0f2857;
}

.identification__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.identification__arrow svg {
  width: 100%;
  height: auto;
  stroke: #1a3167;
  stroke-width: 3;
}

.identification__note {
  display: inline-block;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 2px solid rgba(27, 45, 82, 0.45);
  font-size: 1.05rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.8);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.flow__item {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 51, 84, 0.08);
}

.flow__item ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.metrics {
  display: grid;
  gap: 1rem;
  counter-reset: metrics;
  list-style: none;
}

.metrics li {
  position: relative;
  padding-left: 4.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  padding-right: 1.2rem;
  box-shadow: 0 16px 32px rgba(12, 22, 46, 0.12);
}

.metrics li::before {
  counter-increment: metrics;
  content: counter(metrics);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.partners {
  display: grid;
  gap: 2rem;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.partners__grid span {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(12, 22, 46, 0.1);
}

.inventory {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.inventory__chart {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0grad,
    #f8c24e  0grad  90grad,
    #9aa0a6  90grad 200grad,
    #62b3ff  200grad 310grad,
    #f8c24e  310grad  360grad
  );
  box-shadow: 0 24px 60px rgba(12, 22, 46, 0.18);
  display: block;
  padding: 2.5rem;
}

.inventory__chart::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.inventory__slice {
  position: absolute;
  z-index: 1;
  text-align: center;
  color: #0b1224;
  padding: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.inventory__slice h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.inventory__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.inventory__logos img {
  height: 24px;
  max-width: 72px;
  object-fit: contain;
}

.inventory__slice--premium {
  top: 26%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
}

.inventory__slice--tv {
  bottom: 34%;
  left: 27%;
  width: 40%;
  transform: translate(-50%, 25%);
}

.inventory__slice--pirate {
  bottom: 34%;
  right: 27%;
  width: 40%;
  transform: translate(50%, 25%);
}

.footer {
  background: #0b1224;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero__content {
    padding: 4rem 8vw 5rem;
  }

  .budgets {
    grid-template-columns: 1fr;
  }

  .budget-row {
    grid-template-columns: 1fr;
  }

  .identification__grid {
    grid-template-columns: 1fr;
  }

  .identification__arrow {
    transform: rotate(90deg);
  }

  .inventory__chart {
    padding: 1.8rem;
  }

  .inventory__slice {
    font-size: 0.78rem;
    padding: 0.4rem;
  }

  .inventory__slice h3 {
    font-size: 0.9rem;
  }

  .inventory__logos img {
    height: 20px;
    max-width: 60px;
  }
}
