/* Arena motion layer: progressive enhancement, isolated to the home page. */
.home-page {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  background: #090d10;
}
.home-page main { overflow: clip; }
html:has(.home-page) { scroll-padding-top: 110px; }
.home-page .hero-actions:focus-within { animation: none !important; opacity: 1; translate: 0 0; }
.home-page .site-header {
  position: fixed;
  top: 18px;
  height: 76px;
  width: min(88%, 1380px);
  padding: 12px 22px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: linear-gradient(115deg, #192126b5, #1116197d);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: inset 0 1px #ffffff09, 0 12px 45px #0003;
  transition: background .35s, box-shadow .35s, top .35s, height .35s;
}
.home-page.is-scrolled .site-header {
  top: 10px;
  height: 68px;
  background: #0e161aeb;
  box-shadow: inset 0 1px #ffffff0a, 0 12px 36px #0005;
}
.home-page .site-header .brand img { width: 46px; height: 46px; }
.home-page .site-header .brand span { font-size: 36px; }
.home-page .site-header .login { min-height: 42px; border-color: #ffffff36; border-radius: 6px; }
.home-page .desktop-nav > a:not(.login) { position: relative; padding-block: 12px; }
.home-page .desktop-nav > a:not(.login)::after {
  content: ""; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 1px; background: #ff6251; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--motion-ease);
}
.home-page .desktop-nav > a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.home-page .hero { min-height: 790px; padding-top: 114px; }
.hero-scene { position: absolute; inset: -40px 0 -95px; z-index: -2; }
.home-page .hero-image { position: static; height: 100%; object-position: 55% center; }
.home-page .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, #090d10 0%, transparent 24%), linear-gradient(90deg, #090d1050, transparent 70%);
}
.arena-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.arena-haze {
  position: absolute; width: 66%; height: 58%; right: -8%; bottom: 1%; opacity: .6;
  background: radial-gradient(ellipse, #e8521820, transparent 65%);
}
.arena-embers i {
  position: absolute; display: block; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb171; box-shadow: 0 0 12px 2px #ff492f73; opacity: 0;
  bottom: 12%; left: 64%;
}
.arena-embers i:nth-child(2) { left: 77%; bottom: 27%; animation-delay: -2s; }
.arena-embers i:nth-child(3) { left: 91%; bottom: 8%; animation-delay: -5s; }
.arena-embers i:nth-child(4) { left: 55%; bottom: 38%; animation-delay: -7s; }
.arena-embers i:nth-child(5) { left: 85%; bottom: 46%; animation-delay: -1s; }
.arena-embers i:nth-child(6) { left: 40%; bottom: 10%; animation-delay: -4s; }
.arena-embers i:nth-child(7) { left: 70%; bottom: 3%; animation-delay: -6s; }
.arena-embers i:nth-child(8) { left: 96%; bottom: 33%; animation-delay: -3s; }
.home-page .hero-content { position: relative; padding-top: 14px; padding-bottom: 116px; }
.home-page .hero .eyebrow { color: #ff8a77; }
.home-page .hero h1 { font-size: clamp(100px, 9.7vw, 140px); }
.home-page .hero h1 .accent { color: #ff4136; text-shadow: 0 8px 50px #f3452225; }
.home-page .hero-description { color: #e7e5df; }
.home-page .primary {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 6px;
  background: linear-gradient(120deg, #ef3529, #d81f22);
  border-color: #ff897580; box-shadow: inset 0 1px #ffffff2a, 0 7px 30px #c8181722;
  transition: transform .35s var(--motion-ease), box-shadow .35s, border-color .35s;
}
.home-page .primary::before {
  content: ""; position: absolute; inset: -100% -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, #fff3 50%, transparent 60%);
  transform: translateX(-70%); transition: transform .65s var(--motion-ease);
}
.home-page .primary:is(:hover, :focus-visible) {
  transform: translateY(-3px); border-color: #ffbba6;
  box-shadow: inset 0 1px #ffffff3a, 0 10px 34px #e426263f;
}
.home-page .primary:is(:hover, :focus-visible)::before { transform: translateX(70%); }
.home-page .primary > span { transition: transform .35s var(--motion-ease); }
.home-page .primary:is(:hover, :focus-visible) > span { transform: translateX(5px); }
.home-page .primary:active { transform: translateY(0); }
.scroll-cue {
  position: absolute; bottom: 170px; right: 6%; display: flex; align-items: center;
  gap: 20px; font-size: 9px; letter-spacing: 2.8px; color: #e7e5dfc4;
}
.scroll-cue > span:last-child {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px;
  border: 1px solid #ffffff35; border-radius: 50%; background: #11181c66;
  transition: background .3s, transform .3s;
}
.scroll-cue:hover > span:last-child { background: #e4322b; transform: translateY(4px); }
.home-page .content-shell {
  z-index: 2; margin-top: -55px; border: 0; padding-block: 0 65px;
  gap: 22px; grid-template-columns: 1.35fr 1fr; scroll-margin-top: 0;
}
.home-page .content-shell::before { display: none; }
.glass-panel {
  position: relative; isolation: isolate; border-radius: 14px;
  border: 1px solid #a3c1cc30;
  background: linear-gradient(130deg, #25343bbf, #11191edb 70%);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px #ffffff12, 0 18px 60px #0003;
}
.glass-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(440px circle at var(--spot-x, 50%) var(--spot-y, 0%), #a3d8ee12, transparent 65%);
  z-index: -1; opacity: .65; transition: opacity .35s;
}
.glass-panel:hover::after { opacity: 1; }
.home-page .playbook, .home-page .home-forum { padding: 28px; }
.home-page .home-forum { border-left: 1px solid #a3c1cc30; }
.home-page .content-shell h2 { font-size: 40px; }
.home-page .feature { grid-template-columns: 46% 1fr; gap: 22px; }
.home-page .feature-image { border-radius: 6px; border: 1px solid #ffffff20; }
.home-page .feature-image img { height: 212px; transition: transform .8s var(--motion-ease), filter .8s; }
.home-page .feature-image:hover img { transform: scale(1.07); filter: saturate(1.15); }
.home-page .feature-copy h3 { font-size: 25px; }
.home-page .feature-copy p { font-size: 14px; }
.home-page .forum-links a { transition: padding .35s var(--motion-ease), background .35s; border-color: #ffffff20; }
.home-page .forum-links a:hover { padding-left: 10px; background: #ffffff04; }
.home-page .forum-icon { transition: transform .5s var(--motion-ease); }
.home-page .forum-links a:hover .forum-icon { transform: rotate(-12deg) scale(1.12); }
.home-page .replay-feature { position: relative; border-top: 0; padding-block: 45px 90px; }
.home-page .replay-feature::before {
  content: ""; position: absolute; inset: -20% -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 75% 50%, #324f601f, transparent 60%);
}
.home-page .replay-diagram { padding: 30px; background: linear-gradient(135deg, #2738419e, #111b20db); }
.home-page .replay-diagram::before { left: 30px; width: 52px; right: auto; border-color: #ff7060; box-shadow: 0 0 18px #ff4b4680; }
.home-page .diagram-step { position: relative; border-color: #ffffff16; padding-block: 18px; }
.home-page .diagram-step > span { color: #ff7b68; }
.home-page .diagram-step.is-revealed > span { animation: step-light 1.2s ease-out both; }
.home-page .latest-section .empty-state { border: 1px solid #a3c1cc24; border-radius: 12px; background: linear-gradient(120deg, #172329a8, #0c1317b0); }
.home-page .site-footer { margin-top: 30px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; background: #ff5343; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.motion-toggle {
  position: fixed; right: 20px; bottom: 18px; z-index: 40; display: flex;
  align-items: center; gap: 9px; padding: 10px 13px; border-radius: 30px;
  background: #10191eee; color: #cbd2d3; border: 1px solid #ffffff25;
  box-shadow: 0 5px 24px #0004; font: 11px Inter, sans-serif; cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #fff; border-color: #ffffff55; }
.motion-toggle-icon { color: #ff8a77; width: 12px; text-align: center; }
.motion-toggle:disabled { cursor: default; }
.home-page.motion-off *, .home-page.motion-off *::before, .home-page.motion-off *::after { animation: none !important; transition: none !important; }
.home-page.motion-off .arena-embers { display: none; }
.home-page.motion-off .hero-scene { transform: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.home-page) { scroll-behavior: smooth; }
  .motion-enabled .hero-image { animation: scene-enter 3.6s var(--motion-ease) both; }
  .motion-enabled .hero .eyebrow { animation: enter-up .8s var(--motion-ease) both; }
  .motion-enabled .hero h1 > span { animation: enter-up 1s var(--motion-ease) both; }
  .motion-enabled .hero h1 > span:nth-child(2) { animation-delay: .1s; }
  .motion-enabled .hero h1 > span:nth-child(3) { animation-delay: .2s; }
  .motion-enabled .hero-description { animation: enter-up 1s .3s var(--motion-ease) both; }
  .motion-enabled .hero-actions { animation: enter-up 1s .4s var(--motion-ease) both; }
  .motion-enabled .arena-embers i { animation-name: ember-rise; animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .motion-enabled .arena-haze { animation: haze-drift 12s ease-in-out infinite alternate; }
  .home-page.motion-suspended .arena-atmosphere * { animation-play-state: paused; }
  html:has(.motion-off) { scroll-behavior: auto; }
}
@keyframes enter-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes scene-enter { from { transform: scale(1.085); } to { transform: scale(1.015); } }
@keyframes ember-rise { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 20% { opacity: .65; } 80% { opacity: .3; } 100% { opacity: 0; transform: translate3d(-50px, -190px, 0); } }
@keyframes haze-drift { to { transform: translate3d(-28px, -18px, 0); opacity: .85; } }
@keyframes step-light { from { text-shadow: 0 0 22px #ff4939c0; } to { text-shadow: 0 0 0 transparent; } }

@media (max-width: 1050px) {
  .home-page .hero { min-height: 760px; }
  .home-page .hero h1 { font-size: 112px; }
  .home-page .content-shell { grid-template-columns: 1fr; gap: 20px; }
  .home-page .feature { grid-template-columns: 42% 1fr; }
  .home-page .feature-copy h3 { font-size: 30px; }
  .home-page .home-forum { border-top: 1px solid #a3c1cc30; }
  .scroll-cue { bottom: 140px; }
}
@media (max-width: 680px) {
  html:has(.home-page) { scroll-padding-top: 90px; }
  .home-page .hero h1 .accent { padding-top: 12px; }
  .home-page .site-header, .home-page.is-scrolled .site-header { width: calc(100% - 28px); top: 12px; height: 64px; padding: 10px 14px; border-radius: 10px; gap: 14px; }
  .home-page .site-header .brand img { width: 34px; height: 34px; }
  .home-page .site-header .brand span { font-size: 28px; }
  .home-page .discipline { padding-left: 14px; gap: 8px; font-size: 8px; }
  .home-page .discipline img { width: 17px; height: 17px; }
  .home-page .mobile-menu nav { top: 72px; border-radius: 10px; background: #101a20fa; }
  .home-page .hero { min-height: 0; padding-top: 105px; }
  .home-page .hero-content { padding-top: 20px; padding-bottom: 112px; }
  .home-page .hero h1 { font-size: clamp(68px, 18.5vw, 108px); }
  .home-page .hero-image { object-position: 57% center; }
  .hero-scene { inset: 0; }
  .home-page .hero::after { background: linear-gradient(0deg, #090d10, transparent 35%); }
  .scroll-cue { bottom: 42px; left: 5%; right: auto; gap: 14px; font-size: 8px; letter-spacing: 2px; }
  .scroll-cue > span:last-child { width: 30px; height: 30px; font-size: 18px; }
  .home-page .content-shell { margin-top: -16px; padding-bottom: 30px; gap: 16px; scroll-margin-top: 0; }
  .home-page .playbook, .home-page .home-forum { padding: 23px; }
  .home-page .content-shell h2 { font-size: 35px; }
  .home-page .feature { grid-template-columns: 1fr; gap: 20px; }
  .home-page .feature-image img { height: auto; }
  .home-page .feature-copy h3 { font-size: 27px; }
  .glass-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(135deg, #233038ed, #10191ef7); }
  .home-page .replay-feature { padding-block: 25px 45px; }
  .home-page .replay-diagram { padding: 24px; }
  .home-page .site-footer { padding-bottom: 75px; }
  .motion-toggle { right: 12px; bottom: 12px; font-size: 10px; padding: 9px 11px; }
  .arena-embers i:nth-child(n+5) { display: none; }
  .motion-enabled .hero-image { animation: none; }
}
@media (max-width: 360px) {
  .home-page .hero h1 { font-size: 64px; }
  .home-page .content-shell h2 { font-size: 31px; }
  .home-page .playbook, .home-page .home-forum { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene { transform: none !important; }
  .arena-embers, .scroll-progress { display: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .home-page .site-header { background: #10191ef5; }
  .glass-panel { background: #152027f5; }
}
