

.tm-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1),
              transform 0.7s cubic-bezier(.16,1,.3,1);
}
.tm-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.tm-reveal-left {
  transform: translateX(-50px);
}
.tm-reveal-left.in-view { transform: translateX(0); }
.tm-reveal-right {
  transform: translateX(50px);
}
.tm-reveal-right.in-view { transform: translateX(0); }
.tm-reveal-scale {
  transform: scale(0.85);
}
.tm-reveal-scale.in-view { transform: scale(1); }
.tm-reveal-rotate {
  transform: rotate(-8deg) translateY(40px);
}
.tm-reveal-rotate.in-view { transform: rotate(0) translateY(0); }

.tm-reveal[data-delay="1"].in-view { transition-delay: 0.1s; }
.tm-reveal[data-delay="2"].in-view { transition-delay: 0.2s; }
.tm-reveal[data-delay="3"].in-view { transition-delay: 0.3s; }
.tm-reveal[data-delay="4"].in-view { transition-delay: 0.4s; }
.tm-reveal[data-delay="5"].in-view { transition-delay: 0.5s; }

.tm-word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.tm-word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(8deg);
  transition: opacity .6s cubic-bezier(.16,1,.3,1),
              transform .6s cubic-bezier(.16,1,.3,1);
  margin-inline-end: 0.25em;
}
.tm-word-reveal.in-view .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.imp-section {
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.imp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(var(--brand-primary-rgb),0.08), transparent);
  pointer-events: none;
}
.imp-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.imp-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--gborder);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), border-color 0.35s;
}
body.light .imp-card { background: rgba(255,255,255,0.85); }
.imp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-primary-rgb), 0.4);
}
.imp-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb),0.15) 0%, transparent 50%);
  transform: scale(0);
  transition: transform 0.6s;
}
.imp-card:hover::before { transform: scale(1); }
.imp-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.4);
  position: relative;
  z-index: 1;
}
.imp-number {
  font-size: 2.8rem;
  font-weight: 900;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  font-feature-settings: "tnum";
  position: relative;
  z-index: 1;
}
.imp-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.imp-suffix {
  font-size: 1.4rem;
  margin-inline-start: 2px;
}

.tm-magnetic {
  position: relative;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.tm-magnetic-inner {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

.phone-section {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.phone-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.phone-content h2 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 14px 0;
}
.phone-content > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.phone-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--gborder);
  border-radius: 14px;
  transition: transform 0.25s, border-color 0.25s;
}
body.light .phone-feat { background: rgba(255,255,255,0.7); }
.phone-feat:hover {
  transform: translateX(-8px);
  border-color: rgba(var(--brand-primary-rgb), 0.4);
}
html[dir="ltr"] .phone-feat:hover { transform: translateX(8px); }
.phone-feat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(var(--brand-primary-rgb), 0.15);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.phone-feat strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.phone-feat small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.phone-3d {
  perspective: 1500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}
.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 35px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(8deg);
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0a0e1a, #1a1f2e);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-content-stream {
  position: absolute;
  inset: 0;
  padding: 48px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: phone-scroll 20s linear infinite;
}
@keyframes phone-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.phone-post {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  flex-shrink: 0;
}
.phone-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.phone-post-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
.phone-post-name {
  flex: 1;
  font-size: 0.7rem;
  color: white;
  font-weight: 700;
}
.phone-post-img {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent), var(--brand-secondary));
  background-size: 200% 200%;
  animation: phone-grad 4s ease infinite;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.phone-post-img::after {
  content: '\f167';
  font-family: 'Font Awesome 6 Brands';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
}
.phone-post.type-img .phone-post-img::after { content: '\f030'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.phone-post.type-reel .phone-post-img { background-image: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary), var(--brand-primary)); }
.phone-post.type-story .phone-post-img { background-image: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary), var(--brand-accent)); }
.phone-post-caption {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.phone-post-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
}
@keyframes phone-grad {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.phone-particle {
  position: absolute;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
}
.phone-particle.p1 { width: 16px; height: 16px; top: 10%; left: 5%; animation: phone-particle 5s ease-in-out infinite; }
.phone-particle.p2 { width: 12px; height: 12px; bottom: 15%; right: 8%; animation: phone-particle 7s ease-in-out infinite 1s; }
.phone-particle.p3 { width: 20px; height: 20px; top: 50%; left: 10%; animation: phone-particle 6s ease-in-out infinite 0.5s; }
.phone-particle.p4 { width: 14px; height: 14px; top: 20%; right: 12%; animation: phone-particle 8s ease-in-out infinite 1.5s; }
@keyframes phone-particle {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.ba-section {
  padding: 80px 24px;
  position: relative;
}
.ba-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.ba-head {
  text-align: center;
  margin-bottom: 50px;
}
.ba-head h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 14px 0;
  line-height: 1.3;
}
.ba-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.08);
  cursor: ew-resize;
  user-select: none;
  background: #0a0e1a;
}
body.light .ba-slider { box-shadow: 0 30px 80px rgba(15,23,42,0.18); }

.ba-side {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-before .ba-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  text-align: left;
}

.ba-after .ba-content {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  text-align: right;
}

html[dir="rtl"] .ba-before .ba-content { text-align: right; }
html[dir="rtl"] .ba-after .ba-content  { text-align: left; }

.ba-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.ba-before {
  background:
    linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: #cbd5e1;
}
.ba-before::after {

  content: '😴';
  position: absolute;
  font-size: 9rem;
  top: 50%;
  inset-inline-end: -30px;
  transform: translateY(-50%);
  opacity: 0.06;
  filter: grayscale(1);
}

.ba-after {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(var(--brand-primary-rgb), 0.85), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(var(--brand-accent-rgb), 0.85), transparent 60%),
    linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.ba-after::after {
  content: '🚀';
  position: absolute;
  font-size: 9rem;
  top: 50%;
  inset-inline-start: -30px;
  transform: translateY(-50%);
  opacity: 0.15;
  animation: ba-rocket 3s ease-in-out infinite;
}
@keyframes ba-rocket {
  0%, 100% { transform: translateY(-50%) rotate(-10deg); }
  50%      { transform: translateY(-60%) rotate(5deg); }
}

.ba-content {
  z-index: 1;
  max-width: 240px;
}
.ba-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}
.ba-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.ba-after .ba-tag {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.ba-stat {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.ba-after .ba-stat {
  background-image: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ba-label {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.6;
  font-weight: 500;
}

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, white, rgba(255,255,255,0.7), white);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.1),
    0 0 30px rgba(255,255,255,0.5);
  pointer-events: none;
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 0 6px rgba(255,255,255,0.15);
  color: var(--brand-primary);
  font-size: 1.3rem;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
  animation: ba-pulse 2.5s ease-in-out infinite;
}
@keyframes ba-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 6px rgba(255,255,255,0.15), 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 6px rgba(255,255,255,0.15), 0 0 0 14px rgba(255,255,255,0); }
}
.ba-handle-grip:hover {
  transform: translate(-50%, -50%) scale(1.12);
  animation-play-state: paused;
}

.ba-drag-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 4;
  backdrop-filter: blur(8px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: ba-hint-bob 2s ease-in-out infinite;
  transition: opacity 0.3s;
}
@keyframes ba-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
.ba-slider.interacted .ba-drag-hint { opacity: 0; }

.proc-section {
  padding: 80px 24px;
  position: relative;
}
.proc-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.proc-head {
  text-align: center;
  margin-bottom: 50px;
}
.proc-head h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 14px 0;
}
.proc-head p { color: var(--muted); font-size: 1rem; }

.proc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proc-steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(var(--brand-primary-rgb), 0.3),
    rgba(var(--brand-accent-rgb), 0.3),
    rgba(var(--brand-secondary-rgb), 0.3),
    rgba(var(--brand-primary-rgb), 0.3));
  z-index: 0;
}
.proc-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.proc-bubble {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg, #050918);
  border: 2px solid var(--gborder);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--brand-primary);
  position: relative;
  transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
}
.proc-step:hover .proc-bubble {
  transform: scale(1.1) translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), 0.35);
}
.proc-bubble-num {
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  border: 2px solid var(--bg, #050918);
}
.proc-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.proc-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.tm-scroll-indicator {
  position: fixed;

  bottom: 100px;
  inset-inline-end: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gborder);
  display: grid;
  place-items: center;
  color: white;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
body.light .tm-scroll-indicator {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--brand-primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.tm-scroll-indicator > i {
  position: absolute;
  font-size: 14px;
  z-index: 2;
}
.tm-scroll-indicator.visible { opacity: 1; transform: scale(1); }
.tm-scroll-indicator:hover {
  background: var(--brand-primary);
  transform: scale(1.1);
}
.tm-scroll-indicator svg { transform: rotate(-90deg); }
.tm-scroll-indicator circle {
  fill: none;
  stroke-width: 3;
}
.tm-scroll-indicator .progress-bg { stroke: rgba(255,255,255,0.1); }
.tm-scroll-indicator .progress-fill { stroke: var(--brand-primary); transition: stroke-dashoffset 0.1s; }

.tm-floating {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  will-change: transform;
}
.tm-floating-shape {
  width: 80px; height: 80px;
  border-radius: 30%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  filter: blur(2px);
  animation: tm-rotate 20s linear infinite;
}
@keyframes tm-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .imp-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-wrap { grid-template-columns: 1fr; gap: 30px; }
  .phone-3d { min-height: 500px; }
  .phone-frame { transform: rotateY(0) rotateX(0); }
  .proc-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .proc-steps::before { display: none; }
}
@media (max-width: 600px) {
  .imp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .imp-card { padding: 22px 16px; }
  .imp-number { font-size: 2.2rem; }
  .imp-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .phone-content h2,
  .ba-head h2,
  .proc-head h2 { font-size: 1.75rem; }
  .phone-frame { width: 220px; height: 440px; }
  .ba-content { max-width: 160px; }
  .ba-content .ba-stat { font-size: 2.2rem; }
  .ba-content .ba-tag { font-size: 0.7rem; padding: 5px 12px; margin-bottom: 10px; }
  .ba-content .ba-label { font-size: 0.78rem; }
  .ba-before .ba-content { left: 5%; }
  .ba-after .ba-content { right: 5%; }
  .ba-handle-grip { width: 48px; height: 48px; font-size: 1rem; }
  .ba-before::after,
  .ba-after::after { font-size: 5rem; }
}
