/* ===== RESET & BASE ===== */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.6; color: #fff; background: #050509; }
a { color: inherit; }
img { max-width: 100%; }
.page { position: relative; min-height: 100vh; overflow-x: hidden; }
.page-inner { position: relative; z-index: 1; }

/* ===== ANIMATED BACKGROUND ===== */
.bg-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity 0.3s ease; }
.bg-glow-red { position: absolute; inset: 0; animation: bgDrift1 36s ease-in-out infinite; will-change: transform; }
.bg-glow-blue { position: absolute; inset: 0; animation: bgDrift2 44s ease-in-out infinite; will-change: transform; }
@media (max-width: 760px) { .bg-glow { opacity: 0.35; } }

@keyframes bgDrift1 {
  0%   { transform: translate3d(0,0,0) scale(1.18); }
  50%  { transform: translate3d(9%, 7%, 0) scale(1.32); }
  100% { transform: translate3d(0,0,0) scale(1.18); }
}
@keyframes bgDrift2 {
  0%   { transform: translate3d(0,0,0) scale(1.18); }
  50%  { transform: translate3d(-9%, -7%, 0) scale(1.32); }
  100% { transform: translate3d(0,0,0) scale(1.18); }
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes polyMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes heroWordIn { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mobileLinkIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ===== SECTION DIVIDER ===== */
.divider-wrap { padding: 0 clamp(24px, 6vw, 160px); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s cubic-bezier(.16,.84,.32,1), transform 1s cubic-bezier(.16,.84,.32,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ===== NAV ===== */
.site-header { position: sticky; top: 0; z-index: 90; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: transparent; border-bottom: 1px solid rgba(255,255,255,0.07); transition: transform 0.35s cubic-bezier(.16,.84,.32,1); }
.site-header.nav-hidden { transform: translateY(-100%); }
.nav { padding: 16px clamp(24px, 6vw, 160px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links-desktop { display: flex; align-items: center; gap: 26px; }
.nav-links-desktop a { position: relative; color: #c9ccd8; text-decoration: none; font-size: 14px; font-weight: 400; }
.nav-links-desktop a.active { color: #fff; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid #E8122E; }
.nav-links-desktop a:not(.active)::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform 0.28s ease; }
.nav-links-desktop a:not(.active):hover::after { transform: scaleX(1); }
.nav-links-desktop a:not(.active):hover { color: #fff; }
.nav-burger { display: none; background: transparent; border: none; padding: 4px 0; cursor: pointer; flex-direction: column; gap: 5px; position: relative; z-index: 95; transition: transform 0.3s cubic-bezier(.25,.8,.35,1), background 0.3s ease; }
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.32s cubic-bezier(.16,.84,.32,1), opacity 0.2s ease; }
.nav-burger.burger-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.burger-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-burger.burger-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-links-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-burger:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
}

/* ===== MOBILE MENU ===== */
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,9,0.97); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu-link { color: #c9ccd8; text-decoration: none; font-size: 20px; font-weight: 500; opacity: 0; }
.mobile-menu-link.home { color: #fff; font-weight: 600; }
.mobile-menu.open .mobile-menu-link { animation: mobileLinkIn 0.32s cubic-bezier(.16,.84,.32,1) forwards; }
.mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.00s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.06s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.24s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { animation-delay: 0.30s; }
.mobile-menu.open .mobile-menu-link:nth-child(7) { animation-delay: 0.36s; }
.mobile-menu.open .mobile-menu-link:nth-child(8) { animation-delay: 0.42s; }
.mobile-menu.open .mobile-menu-link:nth-child(9) { animation-delay: 0.48s; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; padding: 12px 30px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; border: none; }
.btn-outline { border: 1px solid rgba(255,255,255,0.45); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.10); border-color: #fff; transform: translateY(-2px); }
.btn-solid { background: #2E3BE0; color: #fff; font-weight: 600; }
.btn-solid:hover { background: #ffffff; color: #0b0a18; transform: translateY(-2px); }
.btn-round { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; font-size: 18px; }
.btn-round:hover { background: rgba(255,255,255,0.10); border-color: #fff; transform: translateY(-2px); }

/* ===== BACK TO TOP ===== */
#back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 999px; background: rgba(20,18,34,0.85); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 70; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease; }
#back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== TYPE HELPERS ===== */
.kicker { font-size: 13.5px; font-weight: 600; color: #b6bccb; letter-spacing: 0.04em; margin-bottom: 14px; }
.body-copy { font-size: 15px; font-weight: 300; line-height: 1.75; color: #ffffff; text-align: justify; margin: 0; }
.grad-text { background: linear-gradient(90deg, #E8122E, #2E3BE0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ===== FOOTER ===== */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(8,6,15,0) 0%, #08060f 32%); margin-top: 0; }
.footer-chevron-img { position: absolute; right: -38px; bottom: 0; top: auto; height: clamp(160px, 30vw, 440px); width: auto; z-index: 0; pointer-events: none; }
.footer-fade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, #05040a 92%); }
.footer-inner { position: relative; z-index: 1; padding: clamp(70px, 9vw, 130px) clamp(24px, 6vw, 160px) 0; }
.footer-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 190px)); gap: clamp(32px, 5vw, 80px); max-width: 760px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: #8a8ea2; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-col a.footer-link { color: #c9ccd8; text-decoration: none; font-size: 14px; }
.footer-links a:hover, .footer-col a.footer-link:hover { color: #ffffff; font-weight: 600; }
.footer-social a { color: #c9ccd8; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.footer-social a:hover { color: #fff; }
.footer-social a + a { margin-top: 11px; }
.footer-partners-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(30px, 4vw, 46px); opacity: 0.7; }
.footer-partners-row img { height: 24px; width: auto; object-fit: contain; }
.footer-copyright-row { margin-top: clamp(22px, 3vw, 34px); padding: 0 0 26px; text-align: center; font-size: 12px; font-weight: 400; color: rgba(201,204,216,0.45); }
.footer-mobile-logo { display: none; height: 34px; width: auto; margin: 18px auto 6px; opacity: 1; }
@media (max-width: 640px) {
  .footer-menu-grid { grid-template-columns: 1fr !important; max-width: 320px !important; gap: 28px !important; }
  .footer-chevron-img { display: none !important; }
  .footer-mobile-logo { display: block !important; }
  .footer-inner > div[class*="max-w"] { display: flex; flex-direction: column; }
  .footer-col:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; }
}
