/* 案例、服务示意、代码窗。首页和案例页共用。 */

.section-head {
  margin-bottom: 2.25rem;
}

.section-head .section-title {
  margin-bottom: 1.35rem;
}

.section-lead {
  max-width: 40rem;
  margin: 0.35rem auto 0;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.75;
}

#scope,
#cases,
#products {
  scroll-margin-top: 92px;
}

/* ========== 首页首屏 ========== */
.hero.hero-split {
  min-height: 0 !important;
  padding: 124px 2rem 3rem !important;
  align-items: center;
}

.hero-split .hero-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 3rem;
  max-width: 1180px;
}

.hero-split .hero-text {
  text-align: left;
  flex: 1 1 480px;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.hero-split .hero-badge {
  margin-bottom: 1.25rem;
}

.br-sm { display: none; }

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

.hero-split .hero-title {
  align-items: flex-start;
  font-size: clamp(40px, 4.4vw, 64px);
  margin-bottom: 1rem;
}

.hero-split .hero-title .gradient-text {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  white-space: normal;
}

.hero-split .hero-subtitle {
  margin: 0 0 1.15rem;
  text-align: left;
  max-width: 34rem;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.hero-services li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

.hero-stage {
  flex: 0 1 500px;
  width: min(500px, 100%);
  max-width: 100%;
  min-width: 0;
}

/* 星球放在文案和代码窗之间，不挡点击 */
.hero-split .orbit-wrapper {
  left: 46%;
  right: auto;
  top: 48%;
  width: min(460px, 46vw);
  height: min(460px, 46vw);
  transform: translate(-50%, -50%);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

/* ========== 代码窗 ========== */
.code-stage {
  max-width: 100%;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
  text-align: left;
  color: #e2e8f0;
}

.code-stage-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.traffic i:nth-child(1) { background: #fb7185; }
.traffic i:nth-child(2) { background: #fbbf24; }
.traffic i:nth-child(3) { background: #34d399; }

.code-stage-file {
  font-style: normal;
}

.code-stage-body {
  margin: 0;
  padding: 16px 18px 20px;
  min-height: 292px;
  counter-reset: ln;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.code-stage.is-swap .code-stage-body {
  opacity: 0;
}

.code-stage-body i {
  font-style: normal;
}

.code-line {
  display: block;
  position: relative;
  min-height: 1.6em;
  padding-left: 2.4rem;
  white-space: pre;
}

.code-line:not(.live) {
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.code-line:not(.live)::before {
  content: none;
}

.code-line::before {
  counter-increment: ln;
  content: counter(ln);
  position: absolute;
  left: 0;
  width: 1.6rem;
  text-align: right;
  color: #334155;
}

.code-line.live::before {
  color: #64748b;
}

.tok {
  opacity: 0;
}

.tok.on {
  opacity: 1;
}

.tok.caret {
  box-shadow: 2px 0 0 #fbbf24;
}

.tok-cm { color: #64748b; }
.tok-kw { color: #c4b5fd; }
.tok-fn { color: #7dd3fc; }
.tok-str { color: #86efac; }
.tok-num { color: #fdba74; }
.tok-tx { color: #e2e8f0; }

/* ========== 服务示意 ========== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.svc-card {
  grid-column: span 2;
  background: var(--card-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1rem 1.25rem;
}

.svc-card:nth-child(4),
.svc-card:nth-child(5) {
  grid-column: span 3;
}

.svc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.svc-card p,
.svc-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.svc-visual {
  height: 168px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.svc-row {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 0 auto 3.5rem;
  max-width: 1080px;
}

.svc-row:nth-child(even) .svc-visual {
  order: 2;
}

.svc-row .svc-visual {
  height: 280px;
  margin-bottom: 0;
}

.svc-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #c2410c;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.svc-copy h3 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  margin-bottom: 0.6rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-list li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.8125rem;
  color: #334155;
}

.mini-browser,
.mini-admin,
.mini-phone {
  width: min(86%, 320px);
  height: 78%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mini-browser-bar {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
}

.mini-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  display: block;
}

.mini-browser-bar i:nth-child(1) { background: #fda4af; }
.mini-browser-bar i:nth-child(2) { background: #fcd34d; }
.mini-browser-bar i:nth-child(3) { background: #6ee7b7; }

.mini-stage,
.mini-site {
  position: relative;
  height: calc(100% - 22px);
  padding: 10px;
}

.mb-nav,
.mb-hero,
.mb-cols span,
.site-old .blob {
  border-radius: 6px;
  background: #e2e8f0;
}

.mb-nav { height: 10px; width: 46%; margin-bottom: 8px; }
.mb-hero { height: 36%; margin-bottom: 8px; background: linear-gradient(90deg, #0f172a, #334155); }
.mb-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 28%; }
.mb-cols span { display: block; height: 100%; }

.site-new .mb-nav,
.site-new .mb-hero,
.site-new .mb-cols span {
  animation: assemble 5.5s ease infinite;
}

.site-new .mb-hero { animation-delay: 0.15s; }
.site-new .mb-cols span:nth-child(1) { animation-delay: 0.3s; }
.site-new .mb-cols span:nth-child(2) { animation-delay: 0.42s; }
.site-new .mb-cols span:nth-child(3) { animation-delay: 0.54s; }

.mini-stage .site-old,
.mini-stage .site-new {
  position: absolute;
  inset: 0;
}

.site-old .blob { height: 14px; margin-bottom: 8px; }
.site-old .blob:nth-child(1) { width: 70%; }
.site-old .blob:nth-child(2) { width: 100%; height: 42%; }
.site-old .blob:nth-child(3) { width: 54%; }

.mini-stage .site-old { animation: fadeOld 5.2s ease infinite; }
.mini-stage .site-new { animation: fadeNew 5.2s ease infinite; }

.mini-admin {
  display: grid;
  grid-template-columns: 42px 1fr;
}

.ma-side {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
}

.ma-side span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.ma-side span.on { background: #fbbf24; }

.ma-main { padding: 10px; }

.ma-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.ma-kpis div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
}

.ma-kpis b {
  display: block;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.ma-kpis small {
  color: #64748b;
  font-size: 10px;
}

.ma-bars {
  height: 46px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 8px;
}

.ma-bars i {
  flex: 1;
  display: block;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #38bdf8, #0f172a);
  transform-origin: bottom;
  animation: barGrow 2.8s ease-in-out infinite;
}

.ma-bars i:nth-child(2) { animation-delay: 0.15s; }
.ma-bars i:nth-child(3) { animation-delay: 0.3s; }
.ma-bars i:nth-child(4) { animation-delay: 0.1s; }
.ma-bars i:nth-child(5) { animation-delay: 0.4s; }
.ma-bars i:nth-child(6) { animation-delay: 0.22s; }

.ma-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 6px;
  padding: 5px 6px;
  overflow: hidden;
  white-space: nowrap;
}

.ma-log span { color: #0f172a; }

.mini-phone {
  width: 118px;
  height: 86%;
  border-radius: 18px;
  padding: 6px;
  background: #0f172a;
  border: 0;
}

.mp-screen {
  height: 100%;
  border-radius: 13px;
  background: #fff;
  padding: 10px 8px;
  overflow: hidden;
}

.mp-q {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mp-opt {
  font-size: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 6px;
  margin-bottom: 5px;
}

.mp-opt.is-hot {
  animation: pick 3.2s ease infinite;
}

.mp-slides {
  position: relative;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}

.mp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: shotFade 9s infinite;
}

.mp-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-app-bar {
  height: 12px;
  width: 46%;
  border-radius: 6px;
  background: #0f172a;
}

.mp-app-card {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dbeafe, #fff);
  border: 1px solid #e2e8f0;
  animation: floatCard 3.2s ease-in-out infinite;
}

.mp-app-card.short {
  height: 36px;
  background: #f8fafc;
  animation-delay: 0.2s;
}

.mp-app-btn {
  margin-top: auto;
  height: 16px;
  border-radius: 8px;
  background: #0f172a;
}

.mp-slide:nth-child(2) { animation-delay: 3s; }
.mp-slide:nth-child(3) { animation-delay: 6s; }

.mp-slide.s1 { background: linear-gradient(#ede9fe, #fff 46%); }
.mp-slide.s2 { background: linear-gradient(#dbeafe, #fff 46%); }
.mp-slide.s3 { background: linear-gradient(#ffedd5, #fff 46%); }

.mp-slide::before,
.mp-slide::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.08);
}

.mp-slide::before { top: 16px; height: 28px; }
.mp-slide::after { top: 54px; height: 72px; }

/* ========== 手机案例 ========== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.case-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.case-card h3 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.35rem;
}

.case-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.kicker {
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.case-more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.case-list {
  max-width: 1080px;
  margin: 0 auto;
}

.case-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
  scroll-margin-top: 96px;
}

.case-row.reverse .phone-col {
  order: 2;
}

.case-row h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.case-row p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.phone-col {
  display: flex;
  justify-content: center;
}

.phone {
  width: 250px;
  height: 500px;
  padding: 10px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow:
    0 25px 50px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-sm {
  width: 156px;
  height: 312px;
  padding: 7px;
  border-radius: 26px;
  font-size: 10px;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #e2e8f0;
}

.phone-sm .phone-screen {
  border-radius: 20px;
}

.phone-cover {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 64%;
  object-fit: cover;
  object-position: center;
}

.phone-dock {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 44%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 8px;
  color: #0f172a;
  font-size: 12px;
}

.phone-sm .phone-dock {
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 12px;
  padding: 6px;
  font-size: 9px;
}

.dock-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.dock-bar {
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  margin-bottom: 6px;
  overflow: hidden;
}

.dock-bar i {
  display: block;
  height: 100%;
  width: 42%;
  background: #0f172a;
  animation: barSlide 3.4s ease infinite;
}

.dock-opt,
.check-btn,
.vote-btn,
.lottery-go {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 4px 6px;
  margin-bottom: 4px;
}

.dock-quiz .is-on,
.mp-opt.is-hot {
  border-color: transparent;
}

.check-btn,
.vote-btn,
.lottery-go {
  text-align: center;
  font-weight: 700;
  background: #0f172a;
  color: #fff;
  border: 0;
}

.vote-btn { animation: press 3.6s ease infinite; }
.check-btn { animation: press 3.2s ease infinite; }

.coin-pop {
  color: #c2410c;
  animation: coin 3.2s ease infinite;
}

.task-row,
.work-line,
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.92em;
  padding: 3px 0;
  color: #334155;
}

.task-row em,
.work-line em {
  font-style: normal;
  color: #0f766e;
  font-weight: 700;
}

.task-row em.wait { color: #c2410c; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 6px;
}

.tabs span {
  text-align: center;
  border-radius: 999px;
  padding: 3px 0;
  background: #f1f5f9;
}

.tabs .on {
  background: #0f172a;
  color: #fff;
}

.spot-scene {
  position: relative;
  height: calc(100% - 22px);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.35), transparent 42%),
    linear-gradient(160deg, #0ea5e9, #1e3a8a);
}

.hotspot {
  position: absolute;
  left: 58%;
  top: 36%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: ping 1.6s ease-out infinite;
}

.odo {
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
  line-height: 1.15em;
}

.odo span {
  display: block;
  animation: odo 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.board-row b {
  width: 1.1em;
}

.board-row.on {
  background: #0f172a;
  color: #fff;
  border-radius: 6px;
  padding: 3px 4px;
}

.phone-screen.is-lottery {
  background: #7ec8f0;
}

.lottery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lottery-title {
  position: absolute;
  top: 18px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  height: auto;
}

.lottery-wheel {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  animation: spin 12s linear infinite;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.lottery-pointer {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid #ef4444;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen.is-lottery .lottery-go {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 0;
}

.note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: -0.5rem auto 2rem;
  max-width: 36rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.fact-grid article {
  padding: 1.25rem 1rem;
  text-align: center;
}

.fact-grid strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}

.fact-grid span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.layer-stack {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layer-stack li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  animation: layerIn 5s ease infinite;
  animation-delay: calc(var(--d) * 0.28s);
}

.layer-stack span {
  width: 2rem;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
}

.quiet-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #0f172a;
  font-weight: 600;
}

@keyframes assemble {
  0% { opacity: 0; transform: translateY(8px); }
  14% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

@keyframes fadeOld {
  0%, 40% { opacity: 1; }
  52%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeNew {
  0%, 40% { opacity: 0; }
  52%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes barGrow {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

@keyframes pick {
  0%, 30% { background: #f8fafc; color: #0f172a; }
  42%, 72% { background: #0f172a; color: #fff; }
  88%, 100% { background: #f8fafc; color: #0f172a; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes shotFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes press {
  0%, 58% { transform: none; filter: none; }
  66% { transform: scale(0.96); filter: brightness(1.3); }
  80%, 100% { transform: none; }
}

@keyframes coin {
  0%, 28% { opacity: 0; transform: translateY(6px); }
  42%, 68% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.65); }
  100% { box-shadow: 0 0 0 14px rgba(251, 191, 36, 0); }
}

@keyframes odo {
  0%, 22% { transform: translateY(0); }
  33%, 55% { transform: translateY(-1.15em); }
  66%, 88% { transform: translateY(-2.3em); }
  100% { transform: translateY(-3.45em); }
}

@keyframes barSlide {
  0% { width: 18%; }
  70%, 100% { width: 68%; }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes layerIn {
  0% { opacity: 0.35; transform: translateX(-8px); }
  18%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0.35; }
}

@media (max-width: 1024px) {
  .hero-split .orbit-wrapper {
    display: flex;
    left: 50%;
    top: auto;
    bottom: 6%;
    width: 240px;
    height: 240px;
    transform: translateX(-50%);
    opacity: 0.55;
  }
}

@media (max-width: 980px) {
  .hero.hero-split {
    padding: 108px 1rem 2rem !important;
  }

  .hero-split .hero-title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero-split .hero-title .gradient-text {
    white-space: normal !important;
  }

  .hero-services {
    width: 100%;
    max-width: 100%;
    padding: 0 2px;
  }

  .hero-split .hero-subtitle {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  #particles-canvas {
    opacity: 0.28;
  }

  .hero-split .hero-content {
    flex-direction: column;
    max-width: 100%;
  }

  .br-sm { display: inline; }

  .hero.hero-split,
  .hero-split .hero-content,
  .hero-split .hero-text,
  .hero-split .hero-stage,
  .code-stage {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .code-line {
    white-space: pre-wrap;
  }

  .hero-split .hero-text {
    flex: 1 1 auto;
  }

  .hero-split .hero-text,
  .hero-split .hero-title,
  .hero-split .hero-title .gradient-text,
  .hero-split .hero-subtitle {
    text-align: center;
  }

  .hero-split .hero-title {
    align-items: center;
  }

  .hero-split .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-services,
  .hero-split .hero-actions {
    justify-content: center;
  }

  .hero-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
  }

  .hero-services li {
    text-align: center;
  }

  .hero-services li:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .svc-card,
  .svc-card:nth-child(4),
  .svc-card:nth-child(5) {
    grid-column: auto;
  }

  .svc-row,
  .svc-row:nth-child(even) .svc-visual,
  .case-row,
  .case-row.reverse .phone-col {
    order: unset;
  }

  .svc-row,
  .case-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .case-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 168px 1fr;
  }
}

@media (max-width: 640px) {
  .svc-grid,
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card .phone-col,
  .case-card .phone {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-new .mb-nav,
  .site-new .mb-hero,
  .site-new .mb-cols span,
  .mini-stage .site-old,
  .mini-stage .site-new,
  .ma-bars i,
  .mp-opt.is-hot,
  .mp-slide,
  .dock-quiz .is-on,
  .vote-btn,
  .check-btn,
  .coin-pop,
  .hotspot,
  .odo span,
  .dock-bar i,
  .lottery-wheel,
  .layer-stack li {
    animation: none !important;
  }

  .tok { opacity: 1; }
  .mp-slide:first-child,
  .mini-stage .site-new { opacity: 1; }
  .mini-stage .site-old { opacity: 0; }
  .odo { height: auto; }
  .odo span:not(:first-child) { display: none; }
}
