/* Homepage (index.html): 3D and animation (home-fx.js, founder 2026-10-09). Never styles the header, notice bar or
   footer. Square corners stay (square.css); true circles use border-radius:50% !important. */

/* The hero background is plain (founder 2026-10-18: "Remove the floating animations at the background of the hero
   section"). The .hx-field canvas of drifting light points is gone, from here and from home-fx.js. */
.hx-field { display: none !important; }

/* ---------- Lean in 3D + glare ---------- */
.hx-tilt { position: relative; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.hx-tilt:hover { transition: transform .08s linear, box-shadow .35s; }
.hx-glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: background .2s; }

/* ---------- The "app is here" card ---------- */
.app-launch.hx-card { overflow: hidden; isolation: isolate; }
.app-launch.hx-card::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; padding: 1px; background: conic-gradient(from var(--hxA), transparent 0 66%, #22c55e 78%, #22d3ee 88%, #a7f3d0 94%, transparent 99%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hxBorder 7s linear infinite; }
@property --hxA { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hxBorder { to { --hxA: 360deg; } }
.app-launch.hx-card::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50% !important; background: radial-gradient(circle, rgba(34, 197, 94, .22), transparent 65%); animation: hxDrift 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes hxDrift { to { transform: translate(-60px, 40px) scale(1.15); } }
.app-launch.hx-card:hover { box-shadow: 0 0 0 1px #22c55e55, 0 26px 50px -24px rgba(34, 197, 94, .85); }
.app-launch .al-up { position: relative; overflow: hidden; }
.app-launch .al-up::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: hxShine 3.2s ease-in-out infinite 1s; pointer-events: none; }
@keyframes hxShine { 55%, 100% { transform: translateX(120%); } }
.app-launch-tag i { animation: hxBlink 1.6s ease-in-out infinite; }
@keyframes hxBlink { 50% { opacity: .35; } }

/* ---------- Dr. Daniel's photo ---------- */
.hx-photo { filter: drop-shadow(0 18px 30px rgba(56, 182, 255, .25)); animation: hxGlow 5s ease-in-out infinite; }
@keyframes hxGlow { 50% { filter: drop-shadow(0 18px 40px rgba(124, 108, 255, .45)); } }
.hx-badge { animation: hxPop .55s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--hxd, 0ms); transition: transform .2s, border-color .2s, color .2s; }
.hx-badge:hover { transform: translateY(-2px); border-color: var(--accent-2, #4cc9ff); color: var(--text, #fff); }
@keyframes hxPop { from { opacity: 0; transform: translateY(10px) scale(.9); } }

/* ---------- Cards ---------- */
#replayGrid .replay-card.hx-tilt:hover { box-shadow: 0 24px 44px -24px rgba(56, 182, 255, .65); border-color: color-mix(in srgb, var(--accent-2, #4cc9ff) 45%, var(--border, #2a3050)); }
#htQuotes .ht-quote.hx-tilt:hover { box-shadow: 0 24px 44px -24px rgba(124, 108, 255, .6); border-color: color-mix(in srgb, var(--accent, #7c6cff) 50%, var(--border, #2a3050)); }
.tnn-card.hx-tilt:hover { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent, #7c6cff) 70%, transparent); }

/* ---------- Sections rise in; light lines between them ---------- */
html.hx-on .hx-rise { opacity: 0; transform: perspective(900px) translateY(28px) rotateX(10deg); transform-origin: 50% 100%; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
html.hx-on .hx-rise.hx-in { opacity: 1; transform: none; }
html.hx-on .hx-rise.hx-tilt.hx-in { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, opacity .8s; }
.hx-line { position: relative; height: 1px; max-width: 1100px; margin: 0 auto; overflow: visible; pointer-events: none; }
.hx-line i { position: absolute; left: 50%; top: 0; width: 0; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent-2, #4cc9ff), var(--accent, #7c6cff), transparent); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.hx-line i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50% !important; background: var(--accent-2, #4cc9ff); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent-2, #4cc9ff) 70%, transparent); opacity: 0; transition: opacity .6s .8s; }
.hx-line.hx-in i { width: 80%; }
.hx-line.hx-in i::after { opacity: 1; animation: hxRun 6s ease-in-out infinite 1.6s; }
@keyframes hxRun { 0%, 100% { left: 50%; } 25% { left: 4%; } 75% { left: 96%; } }

/* ---------- Community band: light points drifting up ---------- */
.ht-community { position: relative; overflow: hidden; isolation: isolate; }
.hx-rise-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-rise-dots i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50% !important; background: var(--accent-2, #4cc9ff); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent-2, #4cc9ff) 60%, transparent); opacity: 0;
  animation: hxUp var(--t) linear infinite; animation-delay: var(--d); }
.hx-rise-dots i:nth-child(3n) { background: var(--accent, #7c6cff); }
@keyframes hxUp { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(-260px) translateX(20px); } }

@media (prefers-reduced-motion: reduce) {
  .app-launch.hx-card::before, .app-launch.hx-card::after, .app-launch .al-up::after, .app-launch-tag i, .hx-photo, .hx-badge, .hx-line i::after, .hx-rise-dots { animation: none !important; }
  .hx-rise-dots { display: none; }
  html.hx-on .hx-rise { opacity: 1; transform: none; transition: none; }
  .hx-line i { width: 80%; transition: none; }
}
