.licensing-shell {
  padding-bottom: 52px;
}

.licensing-shell .reveal {
  opacity: 1;
  transform: none;
}

.licensing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 0 22px;
}

.licensing-hero-copy {
  display: grid;
  align-content: center;
  gap: 0;
  min-height: 460px;
}

.licensing-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 28px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 22% 18%, rgba(213, 68, 68, 0.14), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(136, 160, 255, 0.16), transparent 25%),
    radial-gradient(circle at 52% 80%, rgba(242, 235, 224, 0.05), transparent 24%),
    linear-gradient(160deg, rgba(12, 14, 18, 0.9), rgba(7, 8, 11, 0.96));
}

.licensing-wave {
  position: absolute;
  border: 1px solid rgba(136, 160, 255, 0.12);
  border-radius: 999px;
}

.wave-a {
  inset: 42px 84px 60px 120px;
}

.wave-b {
  inset: 90px 144px 108px 180px;
}

.wave-c {
  inset: 136px 208px 154px 248px;
}

.licensing-particles span {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 241, 235, 0.75), rgba(136, 160, 255, 0));
  opacity: 0.46;
}

.licensing-particles span:nth-child(1) {
  top: 72px;
  left: 92px;
}

.licensing-particles span:nth-child(2) {
  top: 114px;
  right: 126px;
}

.licensing-particles span:nth-child(3) {
  top: 220px;
  right: 196px;
}

.licensing-particles span:nth-child(4) {
  bottom: 112px;
  left: 180px;
}

.licensing-particles span:nth-child(5) {
  bottom: 76px;
  right: 112px;
}

.licensing-hero-note {
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: min(330px, calc(100% - 60px));
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(10, 11, 16, 0.58);
}

.licensing-note-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.licensing-note-value {
  margin: 0 0 10px;
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
}

.licensing-note-text,
.licensing-card p,
.licensing-case-meta,
.licensing-policy-scroll,
.licensing-cta-text {
  color: var(--muted);
  line-height: 1.78;
  font-size: 0.98rem;
}

.licensing-services {
  padding: 10px 0 14px;
}

.licensing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
  align-items: stretch;
}

.licensing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 250px;
  padding: 26px;
  border-radius: 30px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.licensing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(213, 68, 68, 0.08), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(136, 160, 255, 0.1), transparent 26%);
  opacity: 0.88;
}

.licensing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(136, 160, 255, 0.08);
}

.licensing-card > * {
  position: relative;
  z-index: 1;
}

.licensing-card-kicker {
  margin: 0;
  color: rgba(244, 241, 235, 0.58);
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.licensing-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.licensing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.licensing-chip-row span,
.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(244, 241, 235, 0.76);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.licensing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.licensing-inline-note {
  margin: 0;
  color: rgba(244, 241, 235, 0.46);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: right;
}

.licensing-card-policy {
  height: 820px;
  min-height: 820px;
  grid-template-rows: auto auto auto 1fr;
}

.licensing-card-flow {
  height: 820px;
  min-height: 820px;
  grid-template-rows: auto auto auto 1fr;
}

.licensing-download {
  white-space: nowrap;
}

.licensing-download.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.licensing-policy-scroll {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 24px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.licensing-card-policy .licensing-policy-content > :first-child {
  margin-top: 0;
}

.licensing-policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.licensing-policy-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 241, 235, 0.72);
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.licensing-policy-tab.is-active,
.licensing-policy-tab:hover,
.licensing-policy-tab:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.licensing-policy-content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.licensing-policy-content h4,
.licensing-policy-content h5 {
  margin: 0;
  color: var(--text);
  font-family: "Sora", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.35;
}

.licensing-policy-content h4 {
  font-size: 1.42rem;
  line-height: 1.28;
}

.licensing-policy-content h5 {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.licensing-policy-content p {
  margin: 8px 0 0;
}

.licensing-policy-content ul {
  margin: 8px 0 0;
  padding-left: 1.22rem;
}

.licensing-policy-content li {
  margin-top: 4px;
}

.licensing-policy-content hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.licensing-policy-signoff {
  margin-top: 16px;
  color: rgba(244, 241, 235, 0.62);
  line-height: 1.8;
  text-align: right;
}

.licensing-brand-row {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 30px;
}

.licensing-brand-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 40%, rgba(213, 68, 68, 0.08), transparent 24%),
    radial-gradient(circle at 88% 28%, rgba(136, 160, 255, 0.1), transparent 26%);
  opacity: 0.9;
}

.licensing-brand-row > * {
  position: relative;
  z-index: 1;
}

.licensing-brand-head {
  align-items: end;
}

.licensing-brand-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.licensing-brand-strip {
  position: relative;
  overflow: hidden;
  padding: 4px 0 2px;
}

.licensing-brand-strip::before,
.licensing-brand-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  z-index: 2;
  pointer-events: none;
}

.licensing-brand-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(14, 15, 20, 0.96), rgba(14, 15, 20, 0));
}

.licensing-brand-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(14, 15, 20, 0.96), rgba(14, 15, 20, 0));
}

.licensing-brand-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: licensingBrandMarquee 28s linear infinite;
}

.licensing-brand-group {
  display: flex;
  gap: 18px;
}

.licensing-brand-card {
  display: grid;
  gap: 7px;
  min-width: 280px;
  max-width: 320px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.licensing-brand-card-title {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.licensing-brand-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.licensing-brand-card-meta strong {
  color: rgba(244, 241, 235, 0.84);
  font-weight: 600;
}

.licensing-brand-card-link {
  width: fit-content;
  color: rgba(244, 241, 235, 0.72);
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 235, 0.18);
  text-underline-offset: 0.22em;
}

.licensing-brand-row:hover .licensing-brand-track {
  animation-play-state: paused;
}

.workflow-line {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 4px 0;
  min-height: 0;
  height: 100%;
}

.workflow-line::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 22px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(136, 160, 255, 0.22),
    rgba(136, 160, 255, 0.06)
  );
}

.workflow-step {
  flex: 1 1 0;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  min-height: 96px;
  padding: 14px 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 11, 16, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.workflow-step::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 241, 235, 0.9), rgba(136, 160, 255, 0.34));
  box-shadow: 0 0 0 6px rgba(136, 160, 255, 0.055);
  transform: translate(-50%, -50%);
}

.workflow-step span {
  min-height: 44px;
  padding: 0;
  border-radius: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.workflow-step strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.licensing-cta {
  padding: 14px 0 8px;
}

.licensing-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 50%, rgba(213, 68, 68, 0.12), transparent 22%),
    radial-gradient(circle at 86% 40%, rgba(136, 160, 255, 0.14), transparent 24%),
    rgba(12, 13, 18, 0.86);
}

.licensing-cta-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.licensing-contact-email {
  margin: 0;
  color: rgba(244, 241, 235, 0.62);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .licensing-hero {
    grid-template-columns: 1fr;
  }

  .licensing-card-policy {
    min-height: 740px;
    height: 740px;
  }

  .licensing-card-flow {
    min-height: 740px;
    height: 740px;
  }

  .licensing-cta-card {
    flex-direction: column;
    align-items: start;
  }

  .licensing-cta-actions {
    width: 100%;
    justify-items: start;
  }
}

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

  .licensing-hero-copy,
  .licensing-hero-visual {
    min-height: auto;
  }

  .licensing-hero-visual {
    padding: 24px;
  }

  .licensing-hero-note {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 170px;
  }

  .licensing-card,
  .licensing-card-policy {
    min-height: auto;
  }

  .licensing-card-flow {
    min-height: auto;
    height: auto;
  }

  .licensing-card-policy {
    height: auto;
  }

  .licensing-card-head {
    flex-direction: column;
    align-items: start;
  }

  .licensing-policy-scroll {
    min-height: 380px;
  }

  .licensing-brand-card {
    min-width: 250px;
  }
}

@keyframes licensingBrandMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}
