.products-main {
  --product-accent: #21c7b7;
  --product-accent-soft: rgba(33, 199, 183, 0.18);
  --product-warm: #e8ad55;
  --product-panel: rgba(8, 22, 38, 0.58);
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.products-page .button.primary {
  border-color: rgba(255, 255, 255, 0.92);
  background: #ffffff;
  color: #07111f;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.products-page .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.products-page .button.primary:hover {
  border-color: #f6b44b;
  background: #f6b44b;
}

.products-page .button.secondary:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #07111f;
}

.products-hero {
  order: 1;
}

.all-products {
  order: 2;
}

.flagship-product {
  order: 3;
}

.book-demo-section {
  order: 4;
}

.products-hero,
.flagship-product,
.all-products,
.book-demo-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.product-suite-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  isolation: isolate;
}

.product-suite-showcase::before {
  content: "";
  position: absolute;
  inset: 8% 2%;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(33, 199, 183, 0.18), transparent 14rem),
    radial-gradient(circle at 90% 75%, rgba(232, 173, 85, 0.11), transparent 13rem);
  filter: blur(4px);
}

.product-suite-showcase article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045)),
    var(--product-panel);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.product-suite-showcase article:nth-child(2),
.product-suite-showcase article:nth-child(3) {
  transform: translateY(1.25rem);
}

.product-suite-showcase article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.13) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.35s ease, transform 0.75s ease;
}

.product-suite-showcase article:hover {
  border-color: rgba(33, 199, 183, 0.38);
  box-shadow: 0 28px 72px rgba(1, 8, 20, 0.3);
  transform: translateY(-0.25rem);
}

.product-suite-showcase article:nth-child(2):hover,
.product-suite-showcase article:nth-child(3):hover {
  transform: translateY(1rem);
}

.product-suite-showcase article:hover::before {
  opacity: 1;
  transform: translateX(55%);
}

.product-suite-showcase span {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 14px;
  background: rgba(33, 199, 183, 0.14);
  color: var(--product-accent);
  border: 1px solid rgba(33, 199, 183, 0.26);
  font-weight: 950;
}

.product-suite-showcase strong {
  display: block;
  margin-top: 1.2rem;
  color: white;
  font-size: 1.12rem;
}

.product-suite-showcase p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.products-hero h1,
.flagship-copy h2 {
  margin: 0.85rem 0 1.15rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.products-hero p,
.flagship-copy .lead,
.book-demo-section p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.device-stage {
  position: relative;
  min-height: 520px;
}

.extracted-device-stage {
  isolation: isolate;
  min-height: 580px;
}

.extracted-device-stage::before {
  content: "";
  position: absolute;
  inset: 10% 3% 8% 3%;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 66% 22%, rgba(232, 173, 85, 0.1), transparent 12rem),
    linear-gradient(135deg, rgba(33, 199, 183, 0.12), rgba(255, 255, 255, 0.035));
  filter: blur(2px);
}

.extracted-device {
  position: absolute;
}

.extracted-device img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.38));
}

.extracted-laptop {
  left: 50%;
  top: 22%;
  z-index: 1;
  width: 80%;
  transform: translateX(-50%);
}

.extracted-tablet {
  left: -3%;
  top: 33%;
  z-index: 3;
  width: 30%;
  transform: rotate(-4deg);
}

.extracted-phone {
  right: -2%;
  top: 35%;
  z-index: 4;
  width: 26%;
  transform: rotate(4deg);
}

.product-hero-photo {
  position: absolute;
  inset: 0 7% auto 5%;
  z-index: 0;
  height: 330px;
  border-radius: 18px;
}

.product-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.02), rgba(6, 16, 30, 0.62));
  pointer-events: none;
}

.mock-laptop,
.mock-desktop,
.mock-phone,
.product-mock,
.flagship-product,
.product-panel,
.book-demo-section {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(8, 22, 38, 0.5);
  box-shadow: var(--shadow);
}

.mock-laptop {
  position: absolute;
  inset: 5% 0 auto 0;
  z-index: 1;
  min-height: 310px;
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.mock-desktop {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 58%;
  min-height: 210px;
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.mock-phone {
  position: absolute;
  left: 0;
  bottom: 1.5rem;
  z-index: 3;
  display: grid;
  width: 32%;
  min-width: 150px;
  gap: 0.75rem;
  border-radius: 22px;
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.mock-screen {
  height: 100%;
  min-height: 270px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 173, 85, 0.08), transparent 12rem),
    rgba(3, 10, 24, 0.5);
  padding: 1rem;
}

.mock-desktop .mock-screen {
  min-height: 170px;
}

.screen-chip {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(33, 199, 183, 0.12);
  color: var(--product-accent);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.45rem 0.7rem;
}

.mock-screen strong,
.mock-phone strong {
  display: block;
  margin-top: 1rem;
  color: white;
  font-size: 1.45rem;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.screen-grid span,
.mock-phone i,
.mock-phone > span,
.mock-desktop .mock-screen > span {
  display: block;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.screen-grid span {
  min-height: 72px;
}

.mock-phone i {
  height: 2.5rem;
}

.mock-phone > span {
  width: 38%;
  height: 0.35rem;
  justify-self: center;
}

.mock-desktop .mock-screen > span {
  height: 5rem;
  margin-top: 1rem;
}

.flagship-product {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.flagship-product::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(33, 199, 183, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(232, 173, 85, 0.08), transparent 16rem);
}

.flagship-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.flagship-devices {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.32fr);
  gap: 1rem;
  margin-top: 2rem;
}

.product-mock {
  border-radius: 16px;
  padding: 1rem;
}

.wide-desktop {
  min-height: 300px;
}

.mock-toolbar {
  display: flex;
  gap: 0.4rem;
}

.mock-toolbar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.wide-desktop h3 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.analytics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.analytics-row span,
.side-phone span,
.comparison-table div,
.pricing-panel p,
.product-body > div,
.product-body details {
  border-radius: 10px;
  background: rgba(3, 10, 24, 0.38);
  color: var(--muted);
  padding: 0.9rem;
}

.analytics-row strong {
  display: block;
  color: var(--product-accent);
  font-size: 1.35rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  height: 120px;
  margin-top: 1.5rem;
}

.chart-bars i {
  display: block;
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--product-accent), rgba(255, 255, 255, 0.16));
}

.chart-bars i:nth-child(1) { height: 45%; }
.chart-bars i:nth-child(2) { height: 76%; }
.chart-bars i:nth-child(3) { height: 58%; }
.chart-bars i:nth-child(4) { height: 88%; }
.chart-bars i:nth-child(5) { height: 68%; }

.side-phone {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.side-phone strong {
  font-size: 1.3rem;
}

.product-subgrid,
.media-pricing-grid,
.testimonial-faq-grid,
.product-panels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.product-subgrid,
.testimonial-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-subgrid article,
.screenshots-panel,
.video-panel,
.pricing-panel,
.testimonial-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.product-subgrid h3,
.media-pricing-grid h3,
.testimonial-faq-grid h3,
.product-panel h3,
.book-demo-section h2 {
  margin: 0;
  color: white;
}

.comparison-table {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.comparison-table div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.comparison-table strong {
  color: var(--product-warm);
}

.media-pricing-grid {
  grid-template-columns: 1fr 1fr 0.9fr;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.screenshot-strip span {
  display: grid;
  min-height: 130px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(33, 199, 183, 0.13), rgba(255, 255, 255, 0.055));
  color: white;
  font-weight: 800;
}

.video-frame {
  display: grid;
  min-height: 170px;
  place-items: center;
  border-radius: 12px;
  background: rgba(3, 10, 24, 0.5);
  margin-top: 1rem;
  text-align: center;
}

.play-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--product-warm), var(--product-accent));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.pricing-panel p {
  margin: 0.75rem 0 0;
}

.testimonial-card p,
.faq-card p,
.product-body p,
.book-demo-section p {
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-card span {
  display: block;
  color: var(--product-warm);
  font-weight: 900;
}

details {
  color: var(--muted);
}

summary {
  cursor: pointer;
  color: white;
  font-weight: 800;
}

.product-panels {
  margin-top: 1.5rem;
}

.service-categories {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.catalogue-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.catalogue-visual-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(8, 22, 38, 0.58);
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.catalogue-visual-grid article::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0 1rem;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--product-accent), var(--product-warm));
  opacity: 0.68;
}

.catalogue-visual-grid svg {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  color: var(--product-accent);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalogue-visual-grid strong,
.catalogue-visual-grid span {
  display: block;
}

.catalogue-visual-grid strong {
  color: white;
  font-size: 1.05rem;
}

.catalogue-visual-grid span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.products-page .all-products.hidden-section,
.products-page .service-category.hidden-section,
.products-page .service-list article.hidden-section {
  opacity: 1;
  transform: none;
}

.service-category {
  --category-accent: var(--product-accent);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 7%, rgba(33, 199, 183, 0.13), transparent 15rem),
    radial-gradient(circle at 0% 100%, rgba(232, 173, 85, 0.06), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 76px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(1.12);
  padding: clamp(1.15rem, 4vw, 2rem);
}

.service-category:nth-child(even) { --category-accent: var(--product-warm); }
.service-category::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 0.35s ease, transform 0.75s ease;
}

.service-category:hover::before {
  opacity: 1;
  transform: translateX(55%);
}

.service-category::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--category-accent), rgba(255, 255, 255, 0.2));
}

.service-category:hover {
  border-color: rgba(33, 199, 183, 0.34);
}

.service-category-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-icon {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--category-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 950;
  box-shadow: none;
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-category h3 {
  max-width: 860px;
  margin: 0.6rem 0 0;
  color: white;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  line-height: 1.08;
}

.service-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list.compact article {
  padding: 0.95rem 0.95rem 0.95rem 3.55rem;
}

.service-list.compact p {
  -webkit-line-clamp: 2;
}

.service-list article {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(3, 10, 24, 0.38);
  padding: 1rem 1rem 1rem 4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.24s ease, transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.service-list article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--category-accent);
  opacity: 0.68;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.service-svg-icon {
  display: grid;
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(33, 199, 183, 0.24), rgba(232, 173, 85, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--category-accent);
}

.service-svg-icon svg {
  width: 1.28rem;
  height: 1.28rem;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-list article:hover {
  border-color: rgba(33, 199, 183, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(3, 10, 24, 0.56);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-5px);
}

.service-list article:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.service-list strong {
  display: block;
  color: white;
  font-size: 1rem;
  line-height: 1.35;
}

.service-list p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-panel {
  border-radius: 18px;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.product-panel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.product-panel-hero h3 {
  margin-top: 0.65rem;
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
}

.product-panel-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}

.product-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.product-body .mini-devices {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  background: transparent;
  padding: 0;
}

.mini-devices span {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 10, 24, 0.38);
  color: white;
  font-weight: 850;
}

.product-body strong {
  color: white;
}

.product-body p {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
}

.product-body details {
  grid-column: span 2;
}

.book-demo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  border-radius: 18px;
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.book-demo-section h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

@media (max-width: 980px) {
  .products-hero,
  .product-suite-showcase,
  .flagship-devices,
  .product-subgrid,
  .testimonial-faq-grid,
  .book-demo-section {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 480px;
  }

  .extracted-device-stage {
    min-height: 560px;
  }

  .media-pricing-grid,
  .product-body,
  .catalogue-visual-grid,
  .service-list,
  .service-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-panel-hero {
    grid-template-columns: 1fr;
  }

  .product-panel-hero .button,
  .book-demo-section .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .products-main {
    width: min(100% - 24px, 1120px);
  }

  .products-hero {
    padding-top: 2.5rem;
  }

  .device-stage {
    min-height: auto;
  }

  .product-suite-showcase {
    grid-template-columns: 1fr;
  }

  .product-suite-showcase article,
  .product-suite-showcase article:nth-child(2),
  .product-suite-showcase article:nth-child(3) {
    transform: none;
  }

  .extracted-device-stage {
    display: grid;
    gap: 0.85rem;
  }

  .extracted-device {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .mock-laptop,
  .mock-desktop,
  .mock-phone {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.85rem;
  }

  .mock-laptop {
    min-height: 260px;
  }

  .analytics-row,
  .media-pricing-grid,
  .screenshot-strip,
  .catalogue-visual-grid,
  .product-body,
  .product-body .mini-devices,
  .service-list,
  .service-list.compact {
    grid-template-columns: 1fr;
  }

  .service-category-header {
    grid-template-columns: 1fr;
  }

  .product-body .mini-devices,
  .product-body details {
    grid-column: auto;
  }

  .product-panel-hero .button,
  .book-demo-section .button {
    width: 100%;
  }
}
