/* Service pages: #cycle after #hero. Tokens from the glass dump + Figma 36:327. */

.cycle {
  --cycle-ease: cubic-bezier(0.23, 1, 0.32, 1);
  padding-top: 8vh;
  padding-bottom: 0;
}

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

.cycle-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  color: #b8b8bc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 18px;
  text-transform: uppercase;
}

.cycle-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e5e5;
}

.cycle-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.12;
}

.cycle-word {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cycle-word-tg {
  background-image: linear-gradient(180deg, #2aabee, #229ed9);
}

.cycle-word-max {
  background-image: linear-gradient(
    193.79deg,
    rgb(25, 186, 255) 34.771%,
    rgb(30, 83, 255) 38.439%,
    rgb(45, 45, 255) 40.536%,
    rgb(84, 22, 254) 42.946%,
    rgb(129, 20, 255) 45.252%
  );
}

.cycle-lede {
  margin: 20px 0 0;
  color: #adadb2;
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.cycle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 370px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: linear-gradient(180deg, #1b1b1d, #0a0a0b);
  box-shadow:
    0 16px 32px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cycle-card h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 40px;
}

.cycle-card p {
  margin: 10px 0 0;
  color: #b6b6bb;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.cycle-diagram {
  position: relative;
  width: 100%;
  height: 220px;
  min-width: 0;
  flex-shrink: 0;
}

.cycle-diagram > * {
  position: absolute;
}

.cycle-face {
  width: 15.82%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.cycle-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cycle-glass {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #2d2d31, #17171a);
  box-shadow:
    0 8px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cycle-glass img {
  display: block;
  width: 52%;
  height: auto;
}

.cycle-glass-sm {
  width: 18.86%;
  aspect-ratio: 1;
  border-radius: 18px;
}

.cycle-glass-md {
  width: 17.04%;
  aspect-ratio: 1;
  border-radius: 17px;
}

.cycle-glass-lg {
  width: 26.77%;
  aspect-ratio: 1;
  border-radius: 24px;
}

.cycle-glass-lg img {
  width: 48%;
}

.cycle-target {
  width: 15.82%;
  aspect-ratio: 1;
}

.cycle-target img {
  width: 100%;
  height: 100%;
}

.cycle-cap {
  width: 31.64%;
  color: #aaaaaf;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.8px;
  text-align: center;
}

.cycle-dash {
  width: 0;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.38);
}

.cycle-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 23.43%;
  height: 22px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 11px;
  background: linear-gradient(180deg, #28282b, #121213);
  box-shadow:
    0 16px 16px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #d2d2d6;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.cycle-chip img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cycle-win {
  inset: 8px 0 auto;
  height: 208px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, #27282d, #101114);
  box-shadow:
    0 6px 18px -8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cycle-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cycle-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.cycle-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d6e75;
}

.cycle-win-title {
  flex: 1;
  min-width: 0;
  color: #dedfe5;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}

.cycle-win-brands {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.cycle-win-brands img {
  width: 18px;
  height: 18px;
}

.cycle-chart {
  display: block;
  width: 100%;
  height: 110px;
}

.cycle-chart-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.cycle-chart-fill {
  fill: url(#cycleFill);
  opacity: 0;
}

.cycle-chart-line {
  fill: none;
  stroke: #abdfff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cycle-chart-dot {
  fill: #e8f6ff;
  opacity: 0;
}

.cycle-chart-glow {
  fill: rgba(171, 223, 255, 0.28);
  opacity: 0;
}

.cycle-axis {
  display: flex;
  justify-content: space-between;
  padding: 4px 18px 0;
  color: #8d939f;
  font-size: 9px;
  font-weight: 500;
  line-height: 12.6px;
}

.cycle-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 10px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cycle-metrics b {
  display: block;
  color: #f2f3f7;
  font-size: 13px;
  font-weight: 600;
  line-height: 18.2px;
}

.cycle-metrics span {
  display: block;
  color: #adb2be;
  font-size: 9px;
  font-weight: 500;
  line-height: 12.6px;
}

.cycle-card,
.cycle-node,
.cycle-chart-fill,
.cycle-chart-dot,
.cycle-chart-glow {
  transition:
    opacity 250ms var(--cycle-ease),
    transform 250ms var(--cycle-ease);
  transition-delay: var(--d, 0ms);
}

.cycle-chart-line {
  transition: stroke-dashoffset 700ms var(--cycle-ease);
  transition-delay: var(--d, 280ms);
}

.cycle:not(.is-in) .cycle-card,
.cycle:not(.is-in) .cycle-node {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.cycle:not(.is-in) .cycle-chart-fill,
.cycle:not(.is-in) .cycle-chart-dot,
.cycle:not(.is-in) .cycle-chart-glow {
  opacity: 0;
}

.cycle.is-in .cycle-card,
.cycle.is-in .cycle-node {
  opacity: 1;
  transform: none;
}

.cycle.is-in .cycle-chart-fill {
  opacity: 1;
  transition-delay: 780ms;
}

.cycle.is-in .cycle-chart-dot,
.cycle.is-in .cycle-chart-glow {
  opacity: 1;
}

.cycle.is-in .cycle-chart-line {
  stroke-dashoffset: 0;
}

html.rm .cycle-card,
html.rm .cycle-node,
html.rm .cycle-chart-fill,
html.rm .cycle-chart-dot,
html.rm .cycle-chart-glow,
html.rm .cycle:not(.is-in) .cycle-card,
html.rm .cycle:not(.is-in) .cycle-node {
  transform: none;
  transition: opacity 200ms ease;
}

html.rm .cycle-chart-line,
html.rm .cycle:not(.is-in) .cycle-chart-line {
  stroke-dashoffset: 0;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .cycle-card,
  .cycle-node,
  .cycle-chart-fill,
  .cycle-chart-dot,
  .cycle-chart-glow,
  .cycle:not(.is-in) .cycle-card,
  .cycle:not(.is-in) .cycle-node {
    transform: none;
    transition: opacity 200ms ease;
  }

  .cycle-chart-line,
  .cycle:not(.is-in) .cycle-chart-line {
    stroke-dashoffset: 0;
    transition: none;
  }
}

@media (max-width: 900px) {
  .cycle {
    padding-top: 6vh;
  }

  .cycle-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cycle-card {
    min-height: 0;
  }

  .cycle-title {
    font-size: clamp(26px, 8vw, 36px);
  }
}
