.product-case {
  --case-ink: #f7f9fc;
  --case-muted: #9eabc0;
  --case-line: rgba(173, 203, 255, 0.14);
  --case-cyan: #4ee6d6;
  --case-blue: #79b8ff;
  position: relative;
  isolation: isolate;
}

body.product-case-page {
  overflow-x: clip;
}

.product-case::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: min(1120px, 100vw);
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 77% 32%, rgba(46, 223, 207, 0.12), transparent 28%),
    radial-gradient(circle at 25% 18%, rgba(91, 157, 255, 0.14), transparent 32%);
  pointer-events: none;
}

.product-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.8fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: 760px;
  padding: 72px 0 64px;
}

.product-case-kicker,
.product-case-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #a9d4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-case-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--case-cyan);
}

.product-case-title {
  max-width: 10.5ch;
  font-size: clamp(3.6rem, 6.5vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.product-case-title span {
  color: transparent;
  background: linear-gradient(110deg, #f7f9fc 10%, #8fc7ff 58%, #50ead9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.product-case-intro {
  max-width: 610px;
  margin: 30px 0 0;
  color: #b8c3d5;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.72;
}

.product-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.product-case-actions .button-primary::after {
  content: "\2197";
  margin-left: 10px;
  font-size: 1rem;
}

.product-case-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  color: #8492a8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.product-case-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.product-case-platforms li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--case-cyan);
  box-shadow: 0 0 12px rgba(78, 230, 214, 0.6);
}

.product-case-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(159, 202, 255, 0.15);
  border-radius: 40px;
  background:
    linear-gradient(155deg, rgba(29, 52, 76, 0.72), rgba(7, 16, 27, 0.88)),
    #0b1623;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.4);
}

.product-case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.product-case-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(80, 230, 216, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgba(79, 179, 255, 0.035),
    0 0 0 112px rgba(79, 179, 255, 0.025);
}

.product-case-phone {
  position: absolute;
  z-index: 2;
  right: 12%;
  bottom: -74px;
  width: min(61%, 305px);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 38px;
  background: linear-gradient(145deg, #354457, #101925 38%, #070c12);
  box-shadow: 0 42px 80px rgba(0, 0, 0, 0.52);
  transform: rotate(2.5deg);
}

.product-case-phone img {
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.product-case-app-card,
.product-case-status-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(184, 218, 255, 0.2);
  background: rgba(8, 18, 29, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.product-case-app-card {
  top: 64px;
  left: 38px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
}

.product-case-app-card img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.product-case-app-card strong,
.product-case-app-card span,
.product-case-status-card strong,
.product-case-status-card span {
  display: block;
}

.product-case-app-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
}

.product-case-app-card span,
.product-case-status-card span {
  margin-top: 3px;
  color: var(--case-muted);
  font-size: 0.72rem;
}

.product-case-status-card {
  top: 238px;
  left: 30px;
  width: 184px;
  padding: 18px;
  border-radius: 24px;
}

.product-case-status-card small {
  color: #88a0b9;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-case-status-card strong {
  margin-top: 12px;
  color: #ecfbf9;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.product-case-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--case-cyan);
  box-shadow: 0 0 14px rgba(78, 230, 214, 0.8);
}

.product-case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.product-case-meta div {
  min-width: 0;
  padding: 28px 24px;
  border-right: 1px solid var(--case-line);
}

.product-case-meta div:first-child {
  padding-left: 0;
}

.product-case-meta div:last-child {
  border-right: 0;
}

.product-case-meta dt {
  margin-bottom: 8px;
  color: #75849a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-case-meta dd {
  margin: 0;
  color: #e8edf5;
  font-weight: 600;
  line-height: 1.45;
}

.product-case-chapter {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 128px 0;
  border-bottom: 1px solid var(--case-line);
}

.product-case-chapter h2,
.product-case-flow h2,
.product-case-showcase h2,
.product-case-principles h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
  line-height: 0.99;
}

.product-case-body {
  padding-top: 42px;
}

.product-case-body p {
  margin: 0;
  color: #aeb9ca;
  font-size: 1.07rem;
  line-height: 1.82;
}

.product-case-body p + p {
  margin-top: 22px;
}

.product-case-flow {
  padding: 128px 0;
}

.product-case-flow-head,
.product-case-showcase-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 68px;
}

.product-case-flow-head > p,
.product-case-showcase-head > p {
  max-width: 430px;
  margin: 0 0 6px;
  color: var(--case-muted);
  line-height: 1.7;
}

.product-case-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: product-step;
  border-top: 1px solid var(--case-line);
}

.product-case-step {
  position: relative;
  padding: 42px 34px 22px 0;
  counter-increment: product-step;
}

.product-case-step:not(:last-child) {
  border-right: 1px solid var(--case-line);
}

.product-case-step:not(:first-child) {
  padding-left: 34px;
}

.product-case-step::before {
  content: "0" counter(product-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: -62px;
  margin-bottom: 36px;
  border: 1px solid rgba(87, 229, 214, 0.38);
  border-radius: 50%;
  background: #09141f;
  color: #8af1e7;
  font-size: 0.7rem;
  font-weight: 800;
}

.product-case-step h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.product-case-step p {
  margin: 14px 0 0;
  color: var(--case-muted);
  line-height: 1.7;
}

.product-case-showcase {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  padding: 120px max(24px, calc((100vw - var(--container)) / 2)) 110px;
  border-top: 1px solid rgba(143, 199, 255, 0.1);
  border-bottom: 1px solid rgba(143, 199, 255, 0.1);
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 180, 171, 0.13), transparent 32%),
    linear-gradient(180deg, #07111b 0%, #050b12 100%);
}

.product-case-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 310px));
  justify-content: center;
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.product-case-screen {
  margin: 0;
  text-align: center;
}

.product-case-screen:nth-child(2) {
  transform: translateY(-26px);
}

.product-case-screen-frame {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: linear-gradient(145deg, #26374a, #0b121b 45%, #060a0f);
  box-shadow: 0 34px 65px rgba(0, 0, 0, 0.45);
}

.product-case-screen img {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.product-case-screen figcaption {
  max-width: 28ch;
  margin: 22px auto 0;
  color: #8f9db1;
  font-size: 0.9rem;
  line-height: 1.58;
}

.product-case-principles {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 128px 0;
}

.product-case-principle-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--case-line);
  list-style: none;
}

.product-case-principle-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--case-line);
}

.product-case-principle-list span {
  color: #5e728d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.product-case-principle-list strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.product-case-principle-list p {
  margin: 8px 0 0;
  color: var(--case-muted);
  line-height: 1.65;
}

.product-case-guide-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: #9ad6ff;
  font-weight: 600;
}

.product-case-guide-link::after {
  content: "\2192";
}

.product-case-cta {
  position: relative;
  overflow: hidden;
  margin: 8px 0 86px;
  padding: clamp(48px, 7vw, 84px);
  border: 1px solid rgba(126, 197, 255, 0.19);
  border-radius: 36px;
  background:
    radial-gradient(circle at 82% 28%, rgba(71, 230, 214, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(24, 49, 75, 0.92), rgba(9, 20, 33, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.product-case-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(78, 230, 214, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(80, 177, 255, 0.035);
}

.product-case-cta > * {
  position: relative;
  z-index: 1;
}

.product-case-cta h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}

.product-case-cta > p:not(.product-case-section-label) {
  max-width: 560px;
  margin: 22px 0 0;
  color: #aebbd0;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .product-case-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-case-copy {
    padding-top: 36px;
  }

  .product-case-title {
    max-width: 11ch;
  }

  .product-case-visual {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .product-case-chapter {
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.12fr);
  }

  .product-case-body {
    padding-top: 0;
  }

  .product-case-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-case-hero {
    gap: 46px;
    padding-top: 50px;
  }

  .product-case-title {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .product-case-visual {
    min-height: 560px;
    border-radius: 30px;
  }

  .product-case-app-card {
    top: 34px;
    left: 22px;
  }

  .product-case-status-card {
    top: 180px;
    left: 18px;
    width: 164px;
  }

  .product-case-phone {
    right: 6%;
    width: min(62%, 280px);
  }

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

  .product-case-meta div,
  .product-case-meta div:first-child {
    padding: 22px 16px;
    border-bottom: 1px solid var(--case-line);
  }

  .product-case-meta div:nth-child(2) {
    border-right: 0;
  }

  .product-case-meta div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .product-case-chapter,
  .product-case-flow,
  .product-case-principles {
    padding: 88px 0;
  }

  .product-case-chapter {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-case-body {
    grid-column: auto;
  }

  .product-case-flow-head,
  .product-case-showcase-head {
    display: grid;
    margin-bottom: 56px;
  }

  .product-case-steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .product-case-step,
  .product-case-step:not(:first-child) {
    padding: 28px 0;
    border-top: 1px solid var(--case-line);
    border-right: 0;
  }

  .product-case-step::before {
    margin: 0 0 24px;
  }

  .product-case-showcase {
    padding-top: 88px;
    padding-bottom: 82px;
  }

  .product-case-phones {
    grid-template-columns: minmax(0, 340px);
    gap: 54px;
  }

  .product-case-screen:nth-child(2) {
    transform: none;
  }

  .product-case-cta {
    margin-bottom: 48px;
    border-radius: 28px;
  }
}

@media (max-width: 460px) {
  .product-case-visual {
    min-height: 500px;
  }

  .product-case-status-card {
    top: 148px;
    width: 148px;
    padding: 15px;
  }

  .product-case-status-card strong {
    font-size: 1.55rem;
  }

  .product-case-phone {
    right: 3%;
    width: 64%;
  }

  .product-case-actions .button {
    width: 100%;
  }

  .product-case-meta dd {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-case * {
    scroll-behavior: auto;
  }
}
