/* Interaction and layout refinements; the base stylesheet owns the palette. */
:root { color-scheme: dark; --accent: #ef535c; --accent-soft: #ffb4b8; }
html { scroll-padding-top: 100px; }
body { animation: none; background: #120d10; }
body::before { background-image: radial-gradient(rgba(239,83,92,.18) .9px, transparent .9px); background-size: 28px 28px; opacity: .52; animation: ambient-grid-flow 8s linear infinite !important; }
body::after { background: radial-gradient(ellipse, rgba(210,45,65,.20), transparent 65%); animation: ambient-glow-flow 10s ease-in-out infinite alternate !important; will-change: transform; }
@keyframes ambient-grid-flow { from { background-position: 0 0; } to { background-position: 56px 84px; } }
@keyframes ambient-glow-flow { from { transform: translate3d(-4vw,-3vh,0) scale(1); } to { transform: translate3d(42vw,28vh,0) scale(1.2); } }
#silkCanvas { opacity: .56 !important; }
.hero-overlay { background: radial-gradient(ellipse at top, transparent, rgba(12,8,10,.32)) !important; }
.grid-highlights { display: none; }
.hero-wrapper, .container { min-height: calc(100svh - 100px) !important; }
.logo-image { filter: none; }
.navbar-content { background: rgba(22,13,17,.88); }
.navbar.scrolled .navbar-content { background: rgba(18,10,14,.96); }
.nav-link { color: #bdafb3; }
.subtitle, .features-subtitle, .testimonials-subtitle, .integrations-description, .stats-description, .cta-description { color: #bcaeb3; }
.feature-description, .stat-description, .tool-card-desc, .testimonial-text, .tool-features li { color: #c4b3b8; }
.btn, .tool-card-btn, .tools-nav-btn, .testimonial-nav-btn { transition: transform .18s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease; }
.btn:hover, .tool-card-btn:hover { transform: translateY(-2px); }
.btn:active, .tool-card-btn:active, .tools-nav-btn:active, .testimonial-nav-btn:active { transform: translateY(1px) scale(.98); }
button:focus-visible, a:focus-visible { outline: 2px solid #ffb4b8; outline-offset: 5px; }
button:disabled { opacity: .3; cursor: default; box-shadow: none; transform: none; }
.feature-card, .tool-card-new, .stat-card { will-change: auto; }
.feature-card:hover, .tool-card-new:hover { transform: translateY(-4px); }
.stat-card.visible { animation: none; }
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.motion-ready .reveal-delay-1 { transition-delay: .04s; }
.motion-ready .reveal-delay-2 { transition-delay: .08s; }
.motion-ready .reveal-delay-3 { transition-delay: .12s; }
.motion-ready .reveal-delay-4 { transition-delay: .16s; }
.tools-carousel, .testimonials-track { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.tool-features li::before { background-image: url('./feature-check.svg'); }
.carousel-track { align-items: flex-start; }
.carousel-column { flex-shrink: 0; transition: none; will-change: transform; animation-play-state: running !important; }
.carousel-column:nth-child(1) { animation: games-down 16s linear infinite !important; }
.carousel-column:nth-child(2) { animation: games-up 18s linear infinite !important; }
.carousel-column:nth-child(3) { animation: games-down 17s linear infinite !important; }
@keyframes games-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes games-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
.section-arrival .tools-title { animation: arrival-glow .9s ease; }
@keyframes arrival-glow { 0%,100% { text-shadow: none; } 40% { text-shadow: 0 0 28px rgba(239,83,92,.65); } }
.btn, .tool-card-btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); transform: scale(0); animation: button-ripple .5s ease-out; pointer-events: none; }
@keyframes button-ripple { to { transform: scale(2); opacity: 0; } }
@media (max-width: 768px) {
 .navbar { width: calc(100% - 24px); top: 12px; }
 .navbar-content { padding: 10px 12px; gap: 10px; }
 .navbar.scrolled .navbar-content { padding: 10px 12px; }
 .navbar-menu { gap: 2px; }
 .nav-link { padding: 9px; }
 .nav-link span { display: none; }
 .logo-text { font-size: 16px; }
 .logo-image { width: 28px; height: 28px; }
 .features-section, .integrations-section, .stats-section, .cta-section, .testimonials-section, .tools-section { padding: 72px 20px; }
 .integrations-content, .stats-content { gap: 36px; min-width: 0; }
 .integrations-content > *, .stats-content > * { min-width: 0; }
 .integrations-carousel { height: 400px; }
 .carousel-track { justify-content: center; gap: 12px; }
 .carousel-item { width: clamp(80px, 26vw, 115px); height: clamp(80px, 26vw, 115px); }
 .cta-card { padding: 40px 22px; }
 .cta-buttons { flex-direction: column; align-items: center; }
 .testimonial-card { padding: 26px; }
 .features-subtitle, .testimonials-subtitle { margin-bottom: 40px; }
 .tools-title { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 * { transition: none !important; }
 .motion-ready .reveal { opacity: 1; transform: none; }
 body::before { animation: ambient-grid-flow 14s linear infinite !important; }
 body::after { animation: ambient-glow-flow 18s ease-in-out infinite alternate !important; }
 .carousel-column:nth-child(1) { animation: games-down 24s linear infinite !important; }
 .carousel-column:nth-child(2) { animation: games-up 26s linear infinite !important; }
 .carousel-column:nth-child(3) { animation: games-down 25s linear infinite !important; }
}
