/* ============================================================
   zanya UPL Fantasy Landing page
   Brand: orange #FF8B00, blue #005EFE, black #000, white #fff
   ============================================================ */

   :root {
    --orange: #FF8B00;
    --blue: #005EFE;
    --black: #000000;
    --white: #FFFFFF;
    --ink: rgba(10, 12, 18, 0.72);
    --line: rgba(255, 255, 255, 0.1);
    --muted: rgba(255, 255, 255, 0.62);
    --radius: 16px;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  html { scroll-behavior: smooth; background: #0a0c12; }
  
  body {
    font-family: var(--font-body);
    background: #0a0c12;
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
  }

  /* Page ambient: dark diagonal orange -> blue (Section 2.5). Not applied to the logo. */
  .page-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(
        135deg,
        rgba(255, 139, 0, 0.28) 0%,
        rgba(10, 12, 18, 0.94) 38%,
        rgba(10, 12, 18, 0.96) 58%,
        rgba(0, 94, 254, 0.30) 100%
      ),
      linear-gradient(135deg, #1a1208 0%, #0a0c12 50%, #061028 100%);
  }

  .progress-bar,
  .site-header,
  main,
  .site-footer {
    position: relative;
    z-index: 1;
  }
  
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  
  .container { width: min(1160px, 92%); margin: 0 auto; }
  
  /* ---------- Scroll progress ---------- */
  .progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--orange), var(--blue));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 200;
  }
  
  /* ---------- Header ---------- */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.4s var(--ease-out), border-color 0.4s;
    border-bottom: 1px solid transparent;
  }
  .site-header.scrolled {
    background: rgba(10, 12, 18, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
  }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none;
  }
  .brand-name {
    font-family: var(--font-display);
    font-weight: 700; font-size: 22px; letter-spacing: 0.06em;
    /* Keep brand casing as authored: zanya + Fantasy */
    text-transform: none;
  }
  .brand-name em { color: var(--orange); font-style: normal; }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
    position: relative; transition: color 0.3s;
  }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 100%; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: 100% 50%;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .nav-links a.btn::after { display: none; }
  .nav-links a.btn:hover { color: var(--black); }
  .nav-links .btn {
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex: none;
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 16px 34px; border-radius: 999px; border: 0; cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
  }
  .btn:focus-visible,
  .nav-links a:focus-visible,
  .footer-links a:focus-visible,
  .brand:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
  }
  .btn-primary { background: var(--orange); color: var(--black); }
  .btn-primary:hover { box-shadow: 0 12px 40px rgba(255, 139, 0, 0.35); }
  .btn-ghost {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  .btn-ghost:hover { border-color: var(--white); }
  .btn-sm { padding: 11px 24px; font-size: 13px; }
  
  /* Shine sweep on primary buttons */
  .btn-primary::before {
    content: ''; position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
  }
  .btn-primary:hover::before { left: 130%; }
  
  /* ---------- Hero ---------- */
  .hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 0 88px;
    overflow: hidden;
  }
  .hero-inner {
    position: relative; z-index: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-kicker {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
    /* Avoid forcing Fantasy → FANTASY */
    text-transform: none; color: var(--orange);
    margin-bottom: 28px;
    opacity: 0; animation: fade-up 0.8s var(--ease-out) 0.05s forwards;
  }
  .hero-title {
    font-family: var(--font-display);
    font-weight: 800; text-transform: uppercase;
    font-size: clamp(56px, 10vw, 132px);
    line-height: 0.92; letter-spacing: -0.01em;
    margin-bottom: 28px;
    text-align: center;
  }
  .hero-title .word {
    display: inline-block; overflow: hidden; vertical-align: top;
  }
  .hero-title .word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: word-up 0.9s var(--ease-out) forwards;
  }
  .hero-title .w-blue > span { color: var(--blue); }
  .hero-title .w-orange > span { color: var(--orange); }
  @keyframes word-up { to { transform: translateY(0); } }
  
  .hero-sub {
    max-width: 540px; color: var(--muted); font-size: 17px;
    margin: 0 auto 36px;
    line-height: 1.65;
    opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.55s forwards;
  }
  .hero-ctas {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center;
    opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.7s forwards;
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ---------- Stats strip ---------- */
  .stats {
    border-top: 1px solid transparent; border-bottom: 1px solid transparent;
    background: linear-gradient(90deg, var(--blue) 0%, #0039a8 42%, #c45a00 68%, var(--orange) 100%);
  }
  .stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 44px 24px; text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }
  .stat:last-child { border-right: 0; }
  .stat-num {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(40px, 5vw, 64px); line-height: 1;
    color: var(--white);
  }
  .stat-value { color: inherit; }
  .stat-label {
    margin-top: 8px; font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--white);
  }
  
  /* ---------- Sections ---------- */
  .section { padding: 110px 0; position: relative; }
  .section-head { margin-bottom: 64px; }
  .section-kicker {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
    /* Avoid forcing zanya → ZANYA */
    text-transform: none; color: var(--blue); margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(38px, 6vw, 72px); line-height: 0.98;
  }
  .section-sub { max-width: 560px; color: var(--muted); margin-top: 18px; }
  
  /* ---------- How it works cards ---------- */
  .cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .card {
    background: var(--ink); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out);
  }
  .card:hover { border-color: rgba(255, 139, 0, 0.5); }
  .card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
  .card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease-out);
  }
  .card:hover .card-media img { transform: scale(1.06); }
  .card-media .num {
    position: absolute; top: 16px; left: 16px;
    font-family: var(--font-display); font-weight: 800; font-size: 15px;
    background: var(--black); color: var(--orange);
    border: 1px solid rgba(255,139,0,0.4);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .card-body { padding: 26px 26px 30px; }
  .card-title {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    font-size: 26px; letter-spacing: 0.02em; margin-bottom: 10px;
  }
  .card-text { color: var(--muted); font-size: 15px; }
  
  /* ---------- Feature split ---------- */
  .split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .split-media {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .split-media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
  }
  #features .section-kicker { color: var(--orange); }
  .feature-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
  .feature-item {
    display: flex; gap: 18px; padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-item:last-child { border-bottom: 0; }
  .feature-icon {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255, 139, 0, 0.14); color: var(--orange);
    display: flex; align-items: center; justify-content: center;
  }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-item h3 {
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
    text-transform: uppercase; letter-spacing: 0.03em;
  }
  .feature-item p { color: var(--muted); font-size: 14px; margin-top: 4px; }
  
  /* ---------- Marquee ---------- */
  .marquee-section {
    padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--ink); overflow: hidden;
  }
  .marquee { display: flex; overflow: hidden; user-select: none;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .marquee-track {
    display: flex; align-items: center; gap: 80px; flex: none;
    padding-right: 80px;
    animation: marquee 26s linear infinite;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-100%); } }
  .marquee-item { display: flex; align-items: center; justify-content: center; flex: none; }
  .marquee-item img {
    height: 72px; width: auto; max-width: 160px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    mix-blend-mode: lighten;
    transition: transform 0.35s var(--ease-out);
  }
  .marquee-item img.sponsor-fufa {
    height: 250px;
    max-width: none;
  }
  .marquee-item img.sponsor-upl {
    height: 88px;
    max-width: 140px;
  }
  .marquee-item:hover img { transform: scale(1.06); }
  
  /* ---------- Final CTA ---------- */
  .cta-final {
    position: relative; text-align: center; padding: 150px 0; overflow: hidden;
    background-image: url('/assets/media/dugout.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .cta-final .container { position: relative; z-index: 1; }
  .cta-final .section-title { font-size: clamp(48px, 8vw, 104px); }
  .cta-final .section-sub { margin: 20px auto 44px; color: rgba(255, 255, 255, 0.92); }
  
  /* ---------- Footer ---------- */
  .site-footer {
    border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--ink);
  }
  .footer-inner {
    display: flex; flex-direction: column; gap: 28px;
    align-items: flex-start;
  }
  .footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
  .footer-links a { font-size: 13px; color: var(--muted); transition: color 0.3s; }
  .footer-links a:hover { color: var(--white); }
  .footer-note { font-size: 12px; color: rgba(255,255,255,0.4); }
  
  /* ---------- Reveal (JS-driven) ---------- */
  .reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }

  .d-0 { --d: 0s; }
  .d-1 { --d: 0.1s; }
  .d-12 { --d: 0.12s; }
  .d-2 { --d: 0.2s; }
  .d-24 { --d: 0.24s; }
  .d-3 { --d: 0.3s; }
  .anim-delay-1 { animation-delay: 0.1s; }
  .anim-delay-2 { animation-delay: 0.25s; }
  .anim-delay-3 { animation-delay: 0.4s; }
  .section-pt-0 { padding-top: 0; }
  .section-head-tight { margin-bottom: 8px; }
  .section-sub-narrow { max-width: 460px; }
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  
  /* ---------- Responsive ---------- */
  @media (min-width: 720px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .split {
      grid-template-columns: 1.05fr 1fr;
      gap: 72px;
      align-items: stretch;
    }
    /* Image column stretches to the features text column height. */
    .split-media {
      aspect-ratio: auto;
      height: 100%;
      min-height: 100%;
    }
    .split-media img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  }
  @media (max-width: 719px) {
    .nav-links a:not(.btn) { display: none; }
    .nav-links { gap: 0; }
    .nav-links .btn,
    .nav-links .btn-sm {
      padding: 8px 14px;
      font-size: 11px;
      letter-spacing: 0.04em;
      line-height: 1.2;
    }
    .header-inner { padding: 12px 0; }
    .brand img { height: 32px; }
    .brand-name { font-size: 18px; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
  }
  
  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-title .word > span { transform: none; }
    .hero-kicker, .hero-sub, .hero-ctas { opacity: 1; }
    .marquee-track { animation: none !important; transform: none !important; }
  }
  
