/* Reference section styles — scoped under .ref-page */
:root {
  --bg: #f5f3ef;
  --surface: #fbfaf7;
  --text: #12141d;
  --muted: #666c7f;
  --line: rgba(18, 20, 29, 0.1);
  --navy: #4f5f87;
  --navy-deep: #3f4c73;
  --peach: #f5e7dc;
  --sunset: #c86c55;
  --orange: #ec6a3d;
  --soft-orange: #f3c4ad;
  --silver: #d9dce3;
  --white: #fffdf9;
  --shadow: 0 24px 60px rgba(40, 42, 55, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

.ref-page {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #f8f7f4 0%, #f1efeb 100%);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.section {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 28px 0 36px;
  color: rgba(79, 95, 135, 0.8);
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.brand {
  opacity: 0.88;
}

.dark-panel,
.dark-cta {
  background: linear-gradient(180deg, #546384 0%, #66759a 100%);
  color: #eef2fb;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-flow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: 54px;
  position: relative;
  overflow: hidden;
}

.hero-flow::before,
.dark-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 25%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.14), transparent 25%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e1f6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-section .eyebrow,
.use-cases .eyebrow,
.faq-section .eyebrow,
.software-section .eyebrow {
  background: #ece9e3;
  color: #7b7b81;
}

.software-section .coral {
  background: rgba(236, 106, 61, 0.1);
  color: #f06e43;
}

.ref-page h1,
.ref-page h2,
.ref-page h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.ref-page h1 {
  max-width: 540px;
  margin-top: 24px;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.ref-page h2 {
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.ref-page h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0;
  color: inherit;
  line-height: 1.65;
}

.section-copy > p {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(238, 242, 251, 0.82);
  font-size: 1.04rem;
}

.flow-points {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-item {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  text-align: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.flow-item span {
  font-size: 1.3rem;
  font-weight: 600;
}

.flow-item small {
  color: rgba(238, 242, 251, 0.75);
  font-size: 0.96rem;
  line-height: 1.5;
}

.flow-item:not(.active) {
  opacity: 0.55;
}

.flow-item:hover,
.flow-item:focus-visible {
  opacity: 1;
  transform: translateX(4px);
  outline: none;
}

.flow-visual {
  padding: 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.integration-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.integration-tabs span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.97);
  color: #252834;
  font-weight: 700;
  font-size: 0.94rem;
}

.signal-board {
  position: relative;
  height: 310px;
  margin-top: 22px;
  overflow: hidden;
}

.signal-line {
  position: absolute;
  top: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(236, 106, 61, 0.55));
  transform-origin: top;
}

.line-a { left: 10%; height: 188px; transform: rotate(0deg); }
.line-b { left: 25%; height: 164px; transform: rotate(0deg); }
.line-c { left: 41%; height: 120px; transform: rotate(0deg); }
.line-d { right: 41%; height: 120px; transform: rotate(0deg); }
.line-e { right: 25%; height: 164px; transform: rotate(0deg); }
.line-f { right: 10%; height: 188px; transform: rotate(0deg); }

.signal-line::after {
  content: "";
  position: absolute;
  left: -82px;
  bottom: -4px;
  width: 84px;
  height: 84px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 0 80px;
}

.line-a::after,
.line-b::after,
.line-c::after {
  left: auto;
  right: -82px;
  border-left: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 80px 0;
}

.signal-hub {
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 66px;
  height: 66px;
  margin-left: -33px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(220, 235, 255, 0.95), rgba(236, 106, 61, 0.92));
  box-shadow: 0 0 30px rgba(236, 106, 61, 0.3);
}

.signal-glow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 180px;
  height: 120px;
  margin-left: -90px;
  background: radial-gradient(circle at center, rgba(236, 106, 61, 0.72), transparent 70%);
  filter: blur(10px);
}

.summary-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.98);
  color: var(--text);
}

.summary-card h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f1eb;
  font-weight: 500;
}

.feature-section,
.software-section,
.use-cases,
.faq-section {
  padding: 104px 0 0;
}

.split-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.split-head p,
.center-head p,
.software-controls p {
  color: var(--muted);
  font-size: 1.04rem;
}

.split-head h2,
.center-head h2 {
  margin-top: 18px;
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.92fr;
  gap: 18px;
  margin-top: 44px;
}

.feature-card {
  min-height: 470px;
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.feature-card h3 {
  max-width: 220px;
}

.feature-card p {
  margin-top: 14px;
  color: rgba(18, 20, 29, 0.78);
}

.pale {
  background: linear-gradient(180deg, #eef2f7 0%, #e7ebf1 100%);
}

.navy {
  background: linear-gradient(180deg, #52648f 0%, #44567b 100%);
  color: #f5f8ff;
}

.navy p {
  color: rgba(245, 248, 255, 0.78);
}

.peach {
  background: linear-gradient(180deg, #fbf3ee 0%, #f3e4d8 100%);
}

.sunset {
  background:
    radial-gradient(circle at 70% 72%, rgba(255, 248, 220, 0.72), transparent 18%),
    linear-gradient(180deg, #6f3126 0%, #cf7b59 52%, #fed7b1 100%);
  color: #fff6ef;
}

.sunset p {
  color: rgba(255, 246, 239, 0.88);
}

.mini-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.mini-app-grid span,
.multimodal-list span {
  display: grid;
  place-items: center;
  min-height: 66px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.media-card .card-copy {
  position: relative;
  z-index: 2;
}

.container-scene {
  position: relative;
  height: 240px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #4c649d 0%, #253a68 100%);
  overflow: hidden;
}

.container-scene::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, #d9d4c9, #b7b0a1);
}

.container-box {
  position: absolute;
  bottom: 30px;
  width: 74px;
  border-radius: 6px;
  border: 2px solid rgba(15, 29, 67, 0.6);
  background:
    linear-gradient(90deg, rgba(30, 57, 110, 0.94) 0 76%, rgba(110, 145, 219, 0.92) 76%);
  box-shadow: inset 0 0 0 2px rgba(162, 188, 255, 0.18);
}

.box-a {
  left: 18px;
  height: 120px;
}

.box-b {
  left: 104px;
  height: 172px;
}

.box-c {
  right: 24px;
  height: 150px;
}

.multimodal-list {
  display: grid;
  gap: 12px;
}

.truck-scene {
  position: relative;
  flex: 1;
  margin-top: 18px;
}

.road {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 58px;
  height: 210px;
  margin-left: -29px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(91, 45, 31, 0.8));
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  opacity: 0.5;
}

.truck {
  position: absolute;
  left: 16%;
  bottom: 38px;
  width: 220px;
  height: 96px;
}

.cab,
.trailer {
  position: absolute;
  bottom: 24px;
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, #f98f56 0%, #c44f2f 100%);
  box-shadow: 0 12px 28px rgba(66, 22, 16, 0.3);
}

.cab {
  left: 0;
  width: 52px;
  height: 50px;
}

.trailer {
  right: 0;
  width: 154px;
  height: 74px;
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e211d;
}

.wheel-1 { left: 10px; }
.wheel-2 { left: 76px; }
.wheel-3 { right: 24px; }

.software-head {
  align-items: center;
}

.software-controls {
  display: grid;
  gap: 22px;
}

.tab-pills {
  display: flex;
  gap: 10px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
}

.pill.active {
  background: var(--text);
  color: #fff;
}

.software-carousel {
  margin-top: 44px;
}

.software-viewport {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.software-track {
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
}

.software-card {
  flex: 0 0 20%;
  background: #fcfbf9;
  border-right: 1px solid rgba(18, 20, 29, 0.06);
}

.software-card:last-child {
  border-right: 0;
}

.software-visual {
  position: relative;
  min-height: 244px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
}

.software-visual span {
  max-width: 118px;
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  line-height: 0.95;
}

.software-visual i {
  font-style: normal;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.software-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 108px;
  margin-left: -22px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(123, 129, 150, 0.4), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.82);
}

.silver {
  background: linear-gradient(135deg, #d8dce3 0%, #eff1f5 100%);
}

.adobe {
  background:
    linear-gradient(135deg, #8f0f03 0%, #d61c08 42%, #f34712 100%);
}

.featured .software-meta strong {
  color: #b41d0d;
}

.featured .software-visual::after {
  box-shadow: 0 0 30px rgba(255, 244, 236, 0.95);
}

.software-meta {
  padding: 20px 18px 24px;
  background: #fffdf9;
}

.software-meta strong {
  display: block;
  font-size: 1.05rem;
}

.software-meta p {
  margin-top: 8px;
  color: var(--muted);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 20, 29, 0.1);
  background: #fff;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 29, 0.16);
  padding: 0;
}

.carousel-dot.active {
  width: 30px;
  background: var(--orange);
}

.center-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.center-head h2 {
  margin-top: 18px;
}

.center-head p {
  margin-top: 18px;
}

.use-case-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 44px;
  margin-top: 54px;
  align-items: start;
}

.case-tabs,
.faq-categories {
  display: grid;
  gap: 14px;
}

.case-tab,
.faq-category {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(18, 20, 29, 0.5);
  text-align: left;
  font-size: 1.15rem;
  transition: color 180ms ease, transform 180ms ease;
}

.case-tab.active,
.faq-category.active {
  color: var(--text);
  font-weight: 600;
}

.case-tab:hover,
.case-tab:focus-visible,
.faq-category:hover,
.faq-category:focus-visible {
  color: var(--text);
  transform: translateX(4px);
  outline: none;
}

.case-quote {
  margin: 90px 0 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  line-height: 1.3;
}

.case-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-bottom: 1px solid rgba(18, 20, 29, 0.08);
}

.metric {
  padding: 22px 18px 18px;
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 2.1rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-body {
  padding: 34px 36px 40px;
}

.case-body h3 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 22px;
  margin-top: 28px;
}

.problem,
.solution {
  min-height: 232px;
  padding: 26px;
  border-radius: 22px;
}

.problem {
  background: #f2efea;
}

.solution {
  background: linear-gradient(180deg, #546384 0%, #5f7097 100%);
  color: #eef2fb;
}

.problem span,
.solution span {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
}

.problem p,
.solution p {
  font-size: 1.02rem;
}

.problem button,
.solution button,
.demo-button,
.support-box button {
  margin-top: 28px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.problem button,
.support-box button {
  background: #e6e1d9;
  color: var(--text);
}

.solution button,
.demo-button {
  background: var(--orange);
  color: #fff;
}

.support-box {
  margin-top: 70px;
  padding: 20px;
  border-left: 1px solid var(--line);
}

.support-box p {
  margin-bottom: 14px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-bottom: 1px solid rgba(18, 20, 29, 0.08);
}

.faq-item.open {
  border: 0;
}

.faq-question {
  width: 100%;
  padding: 22px 18px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  text-align: left;
  font-size: 1.12rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  transition: max-height 220ms ease, padding 220ms ease;
}

.faq-item.open .faq-question {
  border-radius: 18px 18px 0 0;
  background: #e7e2db;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 18px 22px;
  border-radius: 0 0 18px 18px;
  background: #e7e2db;
  color: #434655;
}

.cta-footer.section {
  width: 100vw;
  max-width: 100vw;
  margin-top: 104px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 46px 0 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.cta-footer .cta-top,
.cta-footer .footer-grid,
.cta-footer .footer-bottom {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
  padding-inline: 24px;
}

.cta-top {
  padding: 24px 24px 40px;
}

.center-head.light h2,
.center-head.light p {
  color: #f7f9ff;
}

.center-head.light p {
  max-width: 680px;
}

.demo-button {
  margin-top: 26px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr 1.2fr;
  gap: 10px;
}

.footer-card {
  min-height: 248px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-card h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
  color: #f2f5fc;
}

.footer-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(242, 245, 252, 0.85);
}

.newsletter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-badge {
  width: 56px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.newsletter label {
  margin-top: auto;
  margin-bottom: 12px;
  color: #e5ebfb;
  font-weight: 700;
}

.input-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.input-row input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.article-card {
  padding: 0;
  overflow: hidden;
}

.article-visual {
  height: 118px;
  background:
    linear-gradient(135deg, rgba(42, 71, 116, 0.48), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, #b7d4db 0%, #5d8399 52%, #c7d4d5 100%);
}

.article-copy {
  padding: 18px;
}

.article-copy h3 {
  font-size: 1.6rem;
  color: #f2f5fc;
}

.article-copy p {
  margin-top: 10px;
  color: rgba(242, 245, 252, 0.82);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px 0;
  color: rgba(242, 245, 252, 0.82);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .logo-strip,
  .partner-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-flow,
  .split-head,
  .use-case-layout,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .software-card {
    flex-basis: 50%;
  }
}

@media (max-width: 720px) {
  .section {
    width: min(100% - 28px, 1220px);
  }

  .logo-strip,
  .partner-row,
  .feature-grid,
  .case-metrics,
  .problem-solution {
    grid-template-columns: 1fr;
  }

  .hero-flow,
  .flow-visual,
  .feature-card,
  .case-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-footer .cta-top,
  .cta-footer .footer-grid,
  .cta-footer .footer-bottom {
    width: min(100% - 28px, 1220px);
    padding-inline: 14px;
  }

  .hero-flow {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .integration-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-board {
    height: 240px;
  }

  .software-card {
    flex-basis: 100%;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .truck {
    left: 8%;
    transform: scale(0.85);
    transform-origin: left bottom;
  }

  .case-quote {
    margin-top: 36px;
    font-size: 1.35rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
