.bg-grid {
  background-image:
    linear-gradient(to right, rgba(30, 41, 59, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, .55) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glass { background: rgba(17, 24, 39, .82); border: 1px solid rgba(148, 163, 184, .16); }

.btn-glow {
  box-shadow: 0 10px 30px -8px rgba(213, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-glow:hover, .btn-glow:focus-visible {
  box-shadow: 0 0 0 4px rgba(213, 0, 0, .18), 0 16px 44px -6px rgba(213, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: translateY(-1px);
}
.btn-glow:focus-visible { outline: 2px solid #F8FAFC; outline-offset: 3px; }
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-130%); animation: btnShine 4.5s ease-in-out 2s infinite;
}
@keyframes btnShine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

.hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 88% 8%, #2A0508 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 120%, #111827 0%, transparent 60%),
    #07090F;
}
.smoke-band { position: absolute; inset: 0; background: linear-gradient(150deg, transparent 18%, rgba(213, 0, 0, .14) 42%, rgba(213, 0, 0, .05) 58%, transparent 75%); }
.smoke-source {
  position: absolute; right: -14%; top: -22%; width: 64vw; height: 64vw; max-width: 940px; max-height: 940px; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(213, 0, 0, .5), rgba(213, 0, 0, .18) 45%, transparent 100%);
  animation: breathe 7s ease-in-out infinite; will-change: transform, opacity;
}
.puff {
  position: absolute; right: -35%; top: -12%; width: 75vw; height: 24vw; min-height: 180px; border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 59, 59, .55), rgba(213, 0, 0, .22) 50%, transparent 100%);
  opacity: 0; animation: puff 18s linear infinite; will-change: transform, opacity;
}
.p2 { top: 2%; height: 18vw; animation-delay: -4.5s; animation-duration: 20s; }
.p3 { top: -22%; height: 28vw; animation-delay: -9s; animation-duration: 17s; }
.p4 { top: 10%; height: 16vw; animation-delay: -13.5s; animation-duration: 22s; }
.streak {
  position: absolute; right: -20%; top: 8%; width: 42vw; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 110, 110, .85), transparent); box-shadow: 0 0 10px rgba(255, 59, 59, .6);
  opacity: 0; animation: streak 7s linear infinite; will-change: transform, opacity;
}
.s2 { top: 22%; width: 30vw; animation-delay: -2.5s; animation-duration: 9s; }
.s3 { top: -4%; width: 36vw; height: 1px; animation-delay: -5s; animation-duration: 6s; }
@keyframes puff {
  0% { transform: translate3d(0, 0, 0) rotate(-30deg) scale(.75); opacity: 0; }
  15% { opacity: .9; } 75% { opacity: .55; }
  100% { transform: translate3d(-95vw, 55vw, 0) rotate(-30deg) scale(1.35); opacity: 0; }
}
@keyframes streak {
  0% { transform: translate3d(0, 0, 0) rotate(-30deg); opacity: 0; }
  15% { opacity: .7; } 70% { opacity: .4; }
  100% { transform: translate3d(-110vw, 64vw, 0) rotate(-30deg); opacity: 0; }
}
@keyframes breathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 767px) { .p4, .s3 { display: none; } }
.hero-paused .smoke-source, .hero-paused .puff, .hero-paused .streak { animation-play-state: paused; }

.hero-wolf { animation: wolfFloat 9s ease-in-out infinite; }
@keyframes wolfFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }

@keyframes curtain { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
.hero-curtain { animation: curtain 1.2s ease .1s both; }
@keyframes wordIn { from { opacity: 0; transform: translateX(-40px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.word { display: inline-block; animation: wordIn 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(450ms + var(--i) * 90ms); }
.text-grad { background: linear-gradient(90deg, #FF3B3B, #D50000); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fadeUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
.hero-in { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }

.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF3B3B; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #FF3B3B; animation: ping 1.8s ease-out infinite; }

.js .reveal {
  opacity: 0; translate: 0 48px; filter: blur(8px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), translate 1s cubic-bezier(.2, .7, .2, 1), filter 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; translate: none; filter: none; }
[data-exit], #hero-copy, [data-parallax] { will-change: transform; }

.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: #FF4D4D; }
.eyebrow::before { content: ''; width: 1.5rem; height: 2px; border-radius: 2px; background: #D50000; }
.icon-chip {
  display: flex; flex: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .9rem;
  background: rgba(213, 0, 0, .12); border: 1px solid rgba(213, 0, 0, .35); color: #FF4D4D;
}

.ambient { position: relative; isolation: isolate; overflow: clip; }
.ambient::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 80vw; max-width: 900px; aspect-ratio: 1; max-height: 100%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(213, 0, 0, .11), transparent);
}
.glow-left::before { left: -35vw; top: 0; }
.glow-right::before { right: -35vw; top: 0; }

.bento-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.bento-card:hover { transform: translateY(-4px); border-color: rgba(213, 0, 0, .45); box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .7), 0 0 40px -16px rgba(213, 0, 0, .45); }
[data-anim]:not(.live) *, [data-anim]:not(.live) *::before, [data-anim]:not(.live) *::after { animation-play-state: paused !important; }

@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.ping { animation: ping 1.8s ease-out infinite; }

@keyframes msgLoop {
  0%, 4% { opacity: 0; transform: translateY(12px) scale(.96); }
  10%, 78% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(-6px); }
}
.msg { opacity: 0; animation: msgLoop 9s cubic-bezier(.2, .7, .2, 1) infinite both; animation-delay: calc(var(--m, 0) * 1.3s + .6s); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.typing span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }

.js .tick { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--t, 0) * 150ms + 200ms); }
.js .in-view .tick { opacity: 1; transform: none; }
@keyframes tickLoop { 0% { transform: scale(.4); opacity: .2; } 7% { transform: scale(1.25); opacity: 1; } 11%, 82% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(.4); opacity: .2; } }
.tick-dot { animation: tickLoop 6s ease-in-out infinite both; animation-delay: calc(var(--t, 0) * 650ms + 900ms); }
@keyframes fillLoop { 0% { transform: scaleX(0); opacity: 1; } 45%, 84% { transform: scaleX(1); opacity: 1; } 94% { transform: scaleX(1); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
.fill-loop { transform-origin: left; animation: fillLoop 6s cubic-bezier(.4, 0, .2, 1) .9s infinite both; }

.js .row-in { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--r, 0) * 140ms + 300ms); }
.js .in-view .row-in { opacity: 1; transform: none; }
@keyframes rowFocus { 0%, 3% { opacity: 0; } 8%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
.row-focus { opacity: 0; animation: rowFocus 4.5s ease-in-out infinite; animation-delay: calc(var(--r, 0) * 1.5s + 1s); }
@keyframes sheen { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }
.sheen { transform: translateX(-120%); animation: sheen 3.4s ease-in-out 1.5s infinite; }
@keyframes pulseSoft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.pulse-soft { animation: pulseSoft 1.8s ease-in-out infinite; }

@keyframes stageOn { 0%, 2% { opacity: 0; } 6%, 24% { opacity: 1; } 29%, 100% { opacity: 0; } }
.stage-on { opacity: 0; animation: stageOn 8s ease-in-out infinite; animation-delay: calc(var(--s, 0) * 2s + .8s); }
@keyframes flowLine { 0% { transform: scaleX(0); } 75%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.flow-line { transform-origin: left; animation: flowLine 8s cubic-bezier(.4, 0, .2, 1) .8s infinite both; }
@media (max-width: 639px) { .flow-line { transform-origin: top; animation-name: flowLineV; } }
@keyframes flowLineV { 0% { transform: scaleY(0); } 75%, 90% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 0, 0, .55); } 50% { box-shadow: 0 0 0 10px rgba(213, 0, 0, 0); } }
.node-pulse { animation: nodePulse 2.4s ease-out infinite; animation-delay: calc(var(--n, 0) * .4s); }

#tl-fill { transform: scaleY(0); transform-origin: top; }
.tl-dot { transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.tl-step.passed .tl-dot { background: #D50000; border-color: #D50000; transform: scale(1.06); box-shadow: 0 0 20px -2px rgba(213, 0, 0, .7); }

.faq-item { transition: border-color .3s ease, background-color .3s ease; }
.faq-item.open { border-color: rgba(213, 0, 0, .45); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-plus { transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); background: #D50000; border-color: #D50000; color: #fff; }

.phone-frame { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 70px -24px rgba(213, 0, 0, .6); }
@keyframes ripple { from { box-shadow: 0 0 0 0 rgba(213, 0, 0, .65); } to { box-shadow: 0 0 0 22px rgba(213, 0, 0, 0); } }
.ripple { animation: ripple 2s ease-out infinite; }
.playing .play-cover { opacity: 0; pointer-events: none; }

.modal { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { transform: scale(.9) translateY(24px); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.modal.open .modal-box { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .tick, .js .row-in { opacity: 1; translate: none; transform: none; filter: none; transition: none; }
  .msg, .stage-on:first-child { opacity: 1; }
  .hero-curtain, .puff, .streak { display: none; }
  .bento-card, .bento-card:hover, .btn-glow, .btn-glow:hover { transition: none; transform: none; }
}
