/* Lovable visual system: lime primary + cyan accent on cool dark. */

:root {
  --ft-primary-glow: color-mix(in srgb, var(--primary) 42%, transparent);
  --ft-primary-soft: color-mix(in srgb, var(--primary) 20%, transparent);
  --ft-accent-glow: color-mix(in srgb, var(--accent) 34%, transparent);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  isolation: isolate;
}

::selection {
  background: var(--primary);
  color: var(--primary-fg);
}

.ft-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--primary);
  pointer-events: none;
}

.ft-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ft-atmosphere-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 400px at 18% 6%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 58%),
    radial-gradient(720px 360px at 88% 24%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 56%),
    radial-gradient(980px 460px at 50% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 52%),
    linear-gradient(180deg, #10141b 0%, var(--bg) 100%);
}

.ft-atmosphere-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(243, 245, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 245, 248, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: ft-grid-pan 48s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

.ft-atmosphere-beams {
  position: absolute;
  inset: -30%;
  opacity: 0.55;
  background: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 120px,
    rgba(243, 245, 248, 0.04) 120px,
    transparent 240px
  );
  animation: ft-beam-pan 46s ease-in-out infinite;
}

.ft-atmosphere-waves {
  position: absolute;
  inset: 15% 0 auto;
  width: 100%;
  height: 70vh;
  opacity: 0.55;
  animation: ft-wave-drift 22s ease-in-out infinite;
}

.ft-atmosphere-waves path {
  fill: none;
  stroke-width: 1.6;
  stroke-opacity: 0.4;
}

.ft-atmosphere-waves path:nth-child(odd) {
  stroke: var(--primary);
  stroke-dasharray: 8 18;
  animation: ft-path-run 28s linear infinite;
}

.ft-atmosphere-waves path:nth-child(even) {
  stroke: var(--accent);
  stroke-dasharray: 6 16;
  animation: ft-path-run 34s linear infinite;
}

.ft-atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform;
}

.ft-orb-1 {
  left: -8rem;
  top: -8%;
  width: 38rem;
  height: 38rem;
  background: var(--ft-primary-glow);
  filter: blur(90px);
  animation: ft-orb-a 34s ease-in-out infinite;
}

.ft-orb-2 {
  right: -12%;
  top: 22%;
  width: 34rem;
  height: 34rem;
  background: var(--ft-accent-glow);
  filter: blur(100px);
  animation: ft-orb-b 42s ease-in-out infinite;
}

.ft-orb-3 {
  left: 28%;
  bottom: -16%;
  width: 32rem;
  height: 32rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  filter: blur(110px);
  animation: ft-orb-c 48s ease-in-out infinite;
}

.ft-atmosphere-scan {
  position: absolute;
  inset-inline: 0;
  height: 45vh;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--primary) 7%, transparent), transparent);
  animation: ft-scan 16s linear infinite;
}

.ft-atmosphere-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ft-atmosphere-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, var(--bg) 100%);
}

.ft-atmosphere-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-main,
.site-footer {
  position: relative;
  z-index: 1;
  background: transparent;
}

.site-header {
  z-index: 30;
}

.ft-mobile-cta,
.ft-float-actions {
  z-index: 40;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
}

.ft-card,
.ft-plan,
.ft-winner,
.ft-sample-msg,
.ft-slip,
.woocommerce ul.products li.product,
.ft-platform-box,
.ft-account-platform,
.ft-order-platform {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px);
}

.ft-card[data-sheen],
.ft-plan[data-sheen],
.ft-tip[data-sheen] {
  overflow: hidden;
}

.ft-card[data-sheen]::after,
.ft-plan[data-sheen]::after,
.ft-tip[data-sheen]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--sheen-x, 50%) var(--sheen-y, 0%),
    color-mix(in srgb, var(--primary) 12%, transparent),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.ft-card[data-sheen]:hover::after,
.ft-plan[data-sheen]:hover::after,
.ft-tip[data-sheen]:hover::after {
  opacity: 1;
}

.ft-card > *,
.ft-plan > *,
.ft-tip > * {
  position: relative;
  z-index: 2;
}

.ft-card,
.ft-plan {
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ft-card:hover,
.ft-plan:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  transform: translateY(-6px);
}

@media (min-width: 1200px) {
  .ft-plan.is-featured:hover {
    transform: scale(1.03) translateY(-6px);
  }
}

.btn-gold,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent),
    0 16px 48px -12px color-mix(in srgb, var(--primary) 55%, transparent);
}

.ft-hero,
.ft-page-hero,
.ft-cta-band {
  position: relative;
}

.ft-hero::before,
.ft-page-hero::before,
.ft-cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6rem;
  width: 45rem;
  height: 26rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ft-cta-band::before {
  top: 50%;
  width: 38rem;
  height: 18rem;
  transform: translate(-50%, -50%);
}

.ft-hero > *,
.ft-page-hero > *,
.ft-cta-band > * {
  position: relative;
  z-index: 1;
}

.ft-hero-copy > * {
  animation: ft-rise 0.7s var(--ease-out) both;
}

.ft-hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.ft-hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.ft-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.ft-hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.ft-hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
.ft-hero-copy > *:nth-child(6) { animation-delay: 0.34s; }

.ft-ticker {
  position: relative;
}

.ft-ticker::before,
.ft-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4.5rem;
  z-index: 1;
  pointer-events: none;
}

.ft-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.ft-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.ft-lock {
  z-index: 3;
}

.ft-hero-photo-wrap {
  position: relative;
  width: 86%;
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--line);
}

.ft-hero-photo-wrap img.ft-hero-photo {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out);
}

.ft-hero-photo-wrap.is-in img.ft-hero-photo {
  transform: scale(1);
}

.ft-hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 45%, transparent) 45%, transparent),
    linear-gradient(to top, color-mix(in srgb, var(--bg) 90%, transparent), transparent 55%);
  pointer-events: none;
}

.ft-float {
  animation: ft-bob 6s ease-in-out infinite;
}

.ft-float-1 { animation-delay: 0.3s; }
.ft-float-2 { animation-delay: 0.5s; }
.ft-float-3 { animation-delay: 0.7s; }

.ft-section,
.ft-band {
  padding: 5.75rem 0;
}

.ft-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  transition: transform 0.3s var(--ease-out);
}

.ft-card:hover .ft-icon-box,
.ft-sport:hover .ft-icon-box {
  transform: scale(1.1);
}

.ft-icon-box svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ft-how-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-sport .ft-icon-box {
  margin: 0 auto 0.7rem;
}

.ft-chart .ft-bar span {
  height: 0;
  transition: height 0.8s var(--ease-out);
}

.ft-chart.is-in .ft-bar span {
  height: var(--bar-h, 40%);
}

.ft-winner {
  min-height: 20rem;
}

.ft-winner img {
  transition: transform 0.9s var(--ease-out);
}

.ft-winner:hover img {
  transform: scale(1.06);
}

.ft-winner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.ft-winner:hover::after {
  opacity: 1;
}

.ft-winner-prize {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
}

.ft-winner figcaption {
  z-index: 2;
}

@media (min-width: 960px) {
  .ft-winner-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .ft-winner-grid .ft-winner:nth-child(1),
  .ft-winner-grid .ft-winner:nth-child(4) {
    grid-column: span 5;
  }
  .ft-winner-grid .ft-winner:nth-child(2),
  .ft-winner-grid .ft-winner:nth-child(3) {
    grid-column: span 7;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.ft-float-actions {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.ft-float-actions[hidden] {
  display: none !important;
}

.ft-to-top {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--paper);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ft-to-top:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  color: var(--primary);
}

.ft-mobile-cta .ft-to-top {
  position: absolute;
  right: 0.85rem;
  top: -3.4rem;
}

.ft-table th:nth-child(3) {
  color: var(--primary);
}

.ft-table td:nth-child(3) {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

@keyframes ft-grid-pan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-72px, -36px, 0); }
}

@keyframes ft-beam-pan {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(240px); }
}

@keyframes ft-wave-drift {
  0%, 100% { transform: translateY(-20px); }
  50% { transform: translateY(24px); }
}

@keyframes ft-path-run {
  to { stroke-dashoffset: -240; }
}

@keyframes ft-orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(120px, 80px) scale(1.15); }
  70% { transform: translate(-40px, 160px) scale(0.95); }
}

@keyframes ft-orb-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-140px, 120px) scale(0.9); }
  70% { transform: translate(40px, -60px) scale(1.2); }
}

@keyframes ft-orb-c {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(90px, -90px); }
  70% { transform: translate(-110px, 40px); }
}

@keyframes ft-scan {
  from { transform: translateY(-50vh); }
  to { transform: translateY(110vh); }
}

@keyframes ft-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ft-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 960px) {
  .ft-float-actions {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ft-atmosphere-grid,
  .ft-atmosphere-beams,
  .ft-atmosphere-waves,
  .ft-atmosphere-waves path,
  .ft-atmosphere-orb,
  .ft-atmosphere-scan,
  .ft-ticker-track,
  .ft-live span,
  .ft-float,
  .ft-hero-photo-wrap img.ft-hero-photo,
  .ft-hero-copy > * {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ft-chart .ft-bar span {
    height: var(--bar-h, 40%);
    transition: none;
  }

  .ft-card:hover,
  .ft-plan:hover,
  .btn-gold:hover,
  .ft-winner img,
  .ft-to-top:hover {
    transform: none;
  }
}
