/*
 * 3GPP Platform page styles.
 * Visual system copied from hta-services.css (HTA Services template) and
 * scoped to .ieb-3gpp-page so neither page can affect the other or the theme.
 * Fonts (Inter, Manrope) are enqueued by template-3gpp-platform.php.
 */

/* ---------- Tokens and base ---------- */

.ieb-3gpp-page {
  --navy: #061a33;
  --blue: #0c58a6;
  --cyan: #19b7d6;
  --green: #75bf43;
  --ink: #112337;
  --muted: #607083;
  --line: #dce6ef;
  --pale: #f2f7fb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(8, 36, 70, 0.12);

  margin: 0;
  font: 400 16px/1.65 Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}

.ieb-3gpp-page * {
  box-sizing: border-box;
}

.ieb-3gpp-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ieb-3gpp-page a {
  text-decoration: none;
  color: inherit;
}

.ieb-3gpp-page button {
  font: inherit;
}

.ieb-3gpp-page a:focus-visible,
.ieb-3gpp-page button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.ieb-3gpp-page .container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.ieb-3gpp-page h1,
.ieb-3gpp-page h2,
.ieb-3gpp-page h3 {
  font-family: Manrope, Inter, sans-serif;
  line-height: 1.14;
  margin: 0;
  color: inherit;
}

.ieb-3gpp-page h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.035em;
}

.ieb-3gpp-page h3 {
  font-size: 1.2rem;
}

.ieb-3gpp-page p {
  margin: 0;
  color: var(--muted);
}

.ieb-3gpp-page ul,
.ieb-3gpp-page ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ieb-3gpp-page section {
  padding: 96px 0;
}

.ieb-3gpp-page .eyebrow {
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.ieb-3gpp-page .section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.ieb-3gpp-page .section-head h2 {
  margin: 10px 0 14px;
}

/* ---------- Buttons ---------- */

.ieb-3gpp-page .btn {
  border: 0;
  border-radius: 4px;
  padding: 14px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.ieb-3gpp-page .btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), #0879bc 62%, var(--green));
  box-shadow: 0 12px 25px rgba(16, 99, 167, 0.24);
}

.ieb-3gpp-page .btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.ieb-3gpp-page .btn-light {
  background: #fff;
  color: var(--navy);
}

.ieb-3gpp-page .btn-light:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Hero (HTA gradient hero, two-column layout) ---------- */

.ieb-3gpp-page .hero {
  min-height: max(520px, 31.25vw);
  color: #fff;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 79% 28%, rgba(25, 183, 214, 0.19), transparent 23%),
    radial-gradient(circle at 92% 72%, rgba(117, 191, 67, 0.16), transparent 25%),
    linear-gradient(122deg, #041326 0%, #082c50 58%, #0a4c73 100%);
}

.ieb-3gpp-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.ieb-3gpp-page .hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.025),
    0 0 0 180px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.ieb-3gpp-page .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 82px 0;
}

.ieb-3gpp-page .hero .eyebrow {
  color: #9ae7f5;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ieb-3gpp-page .hero h1 {
  margin: 18px 0 22px;
  color: #fff;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: normal;
}

.ieb-3gpp-page .hero p {
  max-width: 650px;
  margin: 0 0 30px;
  color: #e4edf5;
  font-size: 20px;
  line-height: 1.7;
}

.ieb-3gpp-page .hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ieb-3gpp-page .hero-link {
  color: #b8eaf3;
  font-weight: 700;
  font-size: 0.92rem;
}

.ieb-3gpp-page .hero-link:hover {
  color: #fff;
}

.ieb-3gpp-page .hero .hero-note {
  margin: 26px 0 0;
  font-size: 0.92rem;
  color: #aebed0;
}

.ieb-3gpp-page .hero-visual {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
}

.ieb-3gpp-page .hero-visual img {
  width: 100%;
  border-radius: 10px;
}

.ieb-3gpp-page .hero-visual figcaption {
  padding: 12px 6px 4px;
  color: #c9dbe8;
  font-size: 0.86rem;
}

/* ---------- Research challenge heading: three lines on wide screens ---------- */

.ieb-3gpp-page #challenge .section-head {
  max-width: 940px;
}

.ieb-3gpp-page #challenge .section-head p {
  max-width: 780px;
}

.ieb-3gpp-page .section-head .challenge-title {
  text-wrap: balance;
}

/* ---------- Research challenge (HTA quote cards, 2 x 2) ---------- */

.ieb-3gpp-page .quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ieb-3gpp-page .quote-grid.challenge-grid {
  grid-template-columns: repeat(2, 1fr);
}

.ieb-3gpp-page .quote {
  padding: 30px;
  border: 0;
  border-radius: 18px;
  background: #f5f9fc;
  box-shadow: inset 0 4px var(--cyan);
}

.ieb-3gpp-page .quote h3 {
  margin-bottom: 12px;
}

.ieb-3gpp-page .quote .helps {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ieb-3gpp-page .quote .helps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.ieb-3gpp-page .quote .helps p {
  color: var(--ink);
}

/* ---------- Capabilities (card grid from marketing's index.html, HTA styling) ---------- */

.ieb-3gpp-page .capabilities {
  background: #eef5fa;
}

.ieb-3gpp-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ieb-3gpp-page .feature {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ieb-3gpp-page .feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 12px;
  background: #e5f4f8;
  color: var(--blue);
}

.ieb-3gpp-page .feature-icon svg {
  width: 26px;
  height: 26px;
}

.ieb-3gpp-page .feature h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.ieb-3gpp-page .syntax {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ieb-3gpp-page .syntax li {
  padding: 5px 11px;
  border-radius: 6px;
  background: #e9f2ff;
  color: #174b93;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- AI analysis (layout from marketing's index.html, HTA styling) ---------- */

.ieb-3gpp-page .ai-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.ieb-3gpp-page .ai-intro h2 {
  margin: 11px 0 22px;
}

.ieb-3gpp-page .ai-intro p {
  font-size: 1.05rem;
}

/* Bullets drawn with ::before so theme list resets cannot hide them */
.ieb-3gpp-page .ai-list {
  display: grid;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ieb-3gpp-page .ai-list li {
  position: relative;
  padding-left: 24px;
  list-style: none;
  color: #405268;
  font-size: 1.05rem;
}

.ieb-3gpp-page .ai-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.ieb-3gpp-page .ai-list strong {
  color: var(--ink);
}

.ieb-3gpp-page .ai-intro .ai-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.ieb-3gpp-page .product-shot {
  margin: 48px 0 0;
  border: 1px solid #c7d8e5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.ieb-3gpp-page .product-shot a {
  display: block;
}

.ieb-3gpp-page .product-shot img {
  width: 100%;
}

.ieb-3gpp-page .product-shot figcaption {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- How it works (HTA navy approach band, 6 steps) ---------- */

.ieb-3gpp-page #workflow {
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
}

.ieb-3gpp-page #workflow p {
  color: #aebed0;
}

.ieb-3gpp-page #workflow .eyebrow {
  color: #81dceb;
}

.ieb-3gpp-page #workflow .section-head {
  margin-bottom: 36px;
}

/* Six-step timeline: layout from marketing's index.html, HTA colours */
.ieb-3gpp-page .steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 12px;
  margin-top: 8px;
}

.ieb-3gpp-page .step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid rgba(174, 190, 208, 0.45);
}

.ieb-3gpp-page .step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 183, 214, 0.18);
}

.ieb-3gpp-page .step-no {
  display: block;
  margin-bottom: 14px;
  color: #81dceb;
  font: 800 0.85rem Manrope, Inter, sans-serif;
  letter-spacing: 0.04em;
}

.ieb-3gpp-page .step h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ieb-3gpp-page #workflow .step p {
  margin-top: 10px;
  color: #b9cedd;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ieb-3gpp-page #workflow .workflow-note {
  max-width: none;
  margin-top: 48px;
  padding: 20px 0 0;
  border-left: 0;
  border-top: 1px solid rgba(174, 190, 208, 0.3);
  color: #c1d3e2;
  font-size: 0.95rem;
}

/* ---------- Research applications ---------- */

.ieb-3gpp-page #applications .quote h3 {
  margin-bottom: 10px;
}

/* ---------- Roadmap ---------- */

.ieb-3gpp-page #roadmap {
  background: #f4f8fb;
}

.ieb-3gpp-page .roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ieb-3gpp-page .roadmap-item {
  padding: 28px 24px;
  border: 1px dashed #b9cddd;
  border-radius: 18px;
  background: #fff;
}

.ieb-3gpp-page .article-meta {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ieb-3gpp-page .roadmap-item h3 {
  margin: 10px 0 10px;
  font-size: 1.12rem;
}

/* ---------- FAQ (HTA contact section, FAQ only) ---------- */

.ieb-3gpp-page .contact {
  border-radius: 42px 42px 0 0;
  background: linear-gradient(140deg, #041326, #092e52);
  color: #fff;
}

.ieb-3gpp-page .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 65px;
  align-items: start;
}

.ieb-3gpp-page .contact .eyebrow {
  color: #81dceb;
}

.ieb-3gpp-page .contact h2 {
  margin: 10px 0 16px;
}

.ieb-3gpp-page .faq-intro {
  position: sticky;
  top: 108px;
}

.ieb-3gpp-page .faq-item {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.ieb-3gpp-page .faq-btn {
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  padding: 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  cursor: pointer;
}

.ieb-3gpp-page .faq-btn span:last-child {
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s;
}

.ieb-3gpp-page .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s;
}

.ieb-3gpp-page .faq-answer > div {
  overflow: hidden;
}

.ieb-3gpp-page .faq-answer p {
  padding: 0 20px 20px;
  color: #aebed0;
}

.ieb-3gpp-page .faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.ieb-3gpp-page .faq-item.open .faq-btn span:last-child {
  transform: rotate(45deg);
}

/* ---------- CTA band ---------- */

.ieb-3gpp-page .cta-band {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 96px;
  padding: 42px 36px;
  border-radius: 28px;
  background: linear-gradient(120deg, #0b65a9, #0d97ad 65%, #68ad43);
  box-shadow: 0 25px 60px rgba(10, 101, 169, 0.22);
  color: #fff;
}

.ieb-3gpp-page .cta-band::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 65px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -70px;
  top: -155px;
  pointer-events: none;
}

.ieb-3gpp-page .cta-band .cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.ieb-3gpp-page .cta-band .cta-inner > div:first-child {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.ieb-3gpp-page .cta-band .eyebrow {
  color: #e8f4fa;
}

.ieb-3gpp-page .cta-band h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.25;
}

.ieb-3gpp-page .cta-band p {
  color: #e8f4fa;
  line-height: 1.65;
}

.ieb-3gpp-page .cta-band p + p {
  margin-top: 8px;
}

.ieb-3gpp-page .cta-action {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.ieb-3gpp-page .cta-action .btn {
  white-space: nowrap;
}

.ieb-3gpp-page .cta-action small {
  color: #e8f4fa;
  font-size: 0.85rem;
}

/* ---------- Demo request modal (HTA proposal modal styling) ---------- */

body.gpp-modal-open {
  overflow: hidden;
}

.ieb-3gpp-page .modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(3, 16, 32, 0.78);
}

.ieb-3gpp-page .modal.open {
  display: grid;
}

.ieb-3gpp-page .modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.32);
}

.ieb-3gpp-page .modal-card h2 {
  margin: 8px 0 8px;
  font-size: 2rem;
}

.ieb-3gpp-page .close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf3f7;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ieb-3gpp-page .form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ieb-3gpp-page .field {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7fafc;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.ieb-3gpp-page .field:focus {
  border-color: #5bc8dd;
}

.ieb-3gpp-page .field::placeholder {
  color: #8090a0;
}

.ieb-3gpp-page textarea.field {
  min-height: 115px;
  resize: vertical;
}

.ieb-3gpp-page .form .btn {
  justify-self: start;
}

.ieb-3gpp-page .form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.ieb-3gpp-page .gpp-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ieb-3gpp-page .success {
  display: none;
  color: #4c9136;
  font-weight: 700;
}

.ieb-3gpp-page .success.error {
  color: #b42318;
}

.ieb-3gpp-page .success.show {
  display: block;
}

/* ---------- Reveal on scroll (only when JS has run) ---------- */

.ieb-3gpp-page.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s, transform 0.65s;
}

.ieb-3gpp-page.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .ieb-3gpp-page .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ieb-3gpp-page .br-wide {
    display: none;
  }

  .ieb-3gpp-page .hero-grid,
  .ieb-3gpp-page .ai-intro,
  .ieb-3gpp-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ieb-3gpp-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ieb-3gpp-page .quote-grid,
  .ieb-3gpp-page .quote-grid.challenge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ieb-3gpp-page .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .ieb-3gpp-page .faq-intro {
    position: static;
  }

  .ieb-3gpp-page .cta-band .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .ieb-3gpp-page .hero h1 {
    font-size: 36px;
  }

  .ieb-3gpp-page .hero p {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .ieb-3gpp-page .container {
    width: min(100% - 28px, 1180px);
  }

  .ieb-3gpp-page section {
    padding: 70px 0;
  }

  .ieb-3gpp-page .hero-grid {
    padding: 62px 0;
  }

  .ieb-3gpp-page .hero h1 {
    font-size: 32px;
  }

  .ieb-3gpp-page .feature-grid {
    grid-template-columns: 1fr;
  }

  .ieb-3gpp-page .feature {
    padding: 26px 22px;
  }

  .ieb-3gpp-page .quote-grid,
  .ieb-3gpp-page .quote-grid.challenge-grid,
  .ieb-3gpp-page .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .ieb-3gpp-page .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .ieb-3gpp-page .product-shot {
    margin-top: 32px;
    border-radius: 12px;
  }

  .ieb-3gpp-page .product-shot figcaption {
    font-size: 0.82rem;
  }

  .ieb-3gpp-page #workflow {
    padding: 70px 0;
  }

  .ieb-3gpp-page .contact {
    border-radius: 26px 26px 0 0;
  }

  .ieb-3gpp-page .cta-band {
    width: calc(100% - 28px);
    margin: 48px auto 70px;
    padding: 30px 24px;
  }

  .ieb-3gpp-page .cta-band h2 {
    font-size: 26px;
  }

  .ieb-3gpp-page .cta-action .btn {
    white-space: normal;
  }

  .ieb-3gpp-page .modal-card {
    padding: 29px 20px;
  }

  .ieb-3gpp-page .modal-card h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ieb-3gpp-page {
    scroll-behavior: auto;
  }

  .ieb-3gpp-page.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ieb-3gpp-page .btn,
  .ieb-3gpp-page .faq-answer,
  .ieb-3gpp-page .faq-btn span:last-child {
    transition: none;
  }
}
