/* Base */
:root {
  --bg: #0b0f17;
  --bg-elev: #121927cc;
  --text: #e6ecf5;
  --muted: #9fb0c7;
  --primary: #2fe1a2;
  --primary-700: #1ab37e;
  --card: #0f1623;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg) url("../images/bg-back.webp") center/cover fixed no-repeat;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,.75), rgba(6,10,18,.65));
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(47, 225, 162, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26, 179, 126, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(47, 225, 162, 0.05) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.section { padding: 3rem 2rem; background: rgba(12,19,32,.82); border: 1px solid #1e2a41; border-radius: 16px; box-shadow: var(--shadow); margin: 2rem auto; }
.section h1, .section h2 { color: var(--text); margin-top: 0; }
.section h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.section h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.section p, .section li { color: var(--text); line-height: 1.8; }
.section ul { margin: 1rem 0; padding-left: 1.5rem; }
.section li { margin: 0.5rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: linear-gradient(180deg, #0b0f17f8, #0b0f1700); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }

.nav ul { display: flex; list-style: none; gap: 1rem; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; opacity: .9; }
.nav a:hover { color: var(--primary); }

.burger { display: inline-flex; flex-direction: column; gap: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid #2a3447; border-radius: 10px; color: inherit; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 960px) {
  .burger { display: none; }
}

.nav { position: fixed; inset: 64px 0 auto 0; transform: translateY(-16px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; background: var(--bg-elev); padding: 1rem; box-shadow: var(--shadow); }
.nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav ul { flex-direction: column; }
.submenu { position: relative; }
.submenu__btn { background: transparent; color: var(--text); border: 0; cursor: pointer; }
.submenu__list { position: static; list-style: none; margin: .25rem 0 0; padding: .25rem 0 .5rem .75rem; border-left: 2px solid #33405a; display: none !important; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.submenu.open .submenu__list { display: block !important; visibility: visible; opacity: 1; transform: none; }

@media (min-width: 960px) {
  .nav { position: static; inset: auto; transform: none; opacity: 1; pointer-events: auto; background: transparent; padding: 0; box-shadow: none; }
  .nav ul { flex-direction: row; }
  .submenu__list { position: absolute; left: 0; top: calc(100% + 8px); background: var(--bg-elev); padding: .5rem; border-radius: 10px; min-width: 220px; box-shadow: var(--shadow); display: none !important; visibility: hidden; opacity: 0; transform: translateY(6px); }
  .submenu.open .submenu__list, .submenu:hover .submenu__list { display: block !important; visibility: visible; opacity: 1; transform: none; }
}

/* Hero */
.hero { padding: 7rem 0 3rem; display: grid; place-items: center; text-align: center; }
.hero__content { background: #0c1320e6; border: 1px solid #1e2a41; border-radius: 16px; padding: 2.5rem 2rem; box-shadow: var(--shadow); max-width: 800px; width: 100%; }
.hero__content h1 { margin: 0 0 1rem 0; line-height: 1.3; font-size: 2.5rem; font-weight: 700; }
.hero__content .subtitle { margin: 0 0 1.5rem 0; }
/* Explicit font-size for h1 in sections to avoid deprecated API warning */
section h1 { font-size: 2.5rem; font-weight: 700; }
section.hero h1 { font-size: 2.5rem; }
@media (max-width: 768px) {
  section h1 { font-size: 1.75rem; }
  section.hero h1 { font-size: 1.75rem; }
  .hero__content h1 { font-size: 1.75rem; }
}
.subtitle { color: var(--muted); margin: .25rem 0 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1px solid #2a3447; color: var(--text); background: #10192a; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #061015; border-color: transparent; }
.btn--ghost { background: #121c2e; }

/* Cards */
.cards { display: grid; gap: 1.5rem; }
.card { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1rem; 
  padding: 1.5rem; 
  background: linear-gradient(180deg, #0c1320ee, #0c1320cc); 
  border: 1px solid #1e2a41; 
  border-radius: 16px; 
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700), #2fe1a2, var(--primary), var(--primary-700));
  background-size: 400% 400%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlow 4s ease infinite;
  z-index: -1;
  filter: blur(1px);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(47, 225, 162, 0.2),
    0 12px 40px rgba(47, 225, 162, 0.1), 
    0 8px 32px rgba(0,0,0,.5);
  background: linear-gradient(180deg, #0e1523f0, #0c1320f0);
  border-color: rgba(47, 225, 162, 0.25);
}
.card:hover::before {
  opacity: 0.35;
}
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.card__media { 
  display: grid; 
  place-items: center; 
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.card__media:hover {
  opacity: 0.8;
}
.card__media img {
  max-width: 100%;
  height: auto;
}
/* Mobile: vertical layout */
.card__body { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
}
.card__title { 
  margin: 0; 
  font-size: 1.25rem; 
  font-weight: 600;
  color: var(--text);
}
.card__bonus { 
  margin: 0; 
  color: var(--primary); 
  font-weight: 600; 
  font-size: 1rem;
}
.card__bullets { 
  margin: 0; 
  padding-left: 1.25rem; 
  color: var(--muted); 
  list-style: disc;
  line-height: 1.6;
}
.card__bullets li {
  margin: 0.25rem 0;
}
.card__actions { 
  display: grid; 
  justify-content: stretch;
}

/* Desktop horizontal structure */
@media (min-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { 
    grid-template-columns: minmax(150px, 200px) 1fr minmax(150px, 180px); 
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    max-width: 100%;
    overflow: hidden;
  }
  .card__media {
    max-width: 100%;
    min-width: 0;
  }
  .card__media img {
    max-width: 100%;
    height: auto;
  }
  /* Desktop: horizontal layout inside card__body */
  .card__body { 
    display: flex; 
    flex-direction: row; 
    gap: 1.5rem; 
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
  }
  .card__title { 
    flex: 0 1 120px;
    margin: 0;
    min-width: 0;
    word-wrap: break-word;
  }
  .card__bonus { 
    flex: 0 1 180px;
    margin: 0;
    min-width: 0;
    word-wrap: break-word;
    font-size: 0.95rem;
  }
  .card__bullets { 
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    overflow: hidden;
  }
  .card__actions {
    justify-content: center;
    min-width: 0;
  }
  .card__actions .btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }
}

/* FAQ */
details.faq { background: #0c1320cc; border: 1px solid #1e2a41; border-radius: 12px; padding: .75rem 1rem; }
details.faq + details.faq { margin-top: .75rem; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #0a0f19 0%, #05080f 100%); padding: 3rem 0 1.5rem; color: var(--text); margin-top: 4rem; border-top: 1px solid rgba(30, 42, 65, 0.5); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.footer-about { padding: 1.5rem; background: rgba(12, 19, 32, 0.4); border: 1px solid rgba(30, 42, 65, 0.3); border-radius: 12px; }
.footer-about p { margin: 0.75rem 0; line-height: 1.7; }
.footer-about strong { color: var(--primary); }
.footer-links { padding: 1.5rem; background: rgba(12, 19, 32, 0.4); border: 1px solid rgba(30, 42, 65, 0.3); border-radius: 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.footer-links a { color: var(--text); opacity: .9; text-decoration: none; transition: all 0.3s ease; display: inline-block; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-help { padding: 2rem 0; border-top: 1px solid rgba(30, 42, 65, 0.4); }
.help-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; }
.help-link {background: #726c6c;border-radius: 5px;height: 50px;
    padding: 4px 6px; display: inline-block; transition: opacity 0.3s ease, transform 0.3s ease; }
.help-link:hover { opacity: 0.8; transform: translateY(-2px); }
.help-link img { max-width: 100%; height: auto; display: block; max-height: 40px; width: auto; }
.footer-copy { border-top: 1px solid rgba(30, 42, 65, 0.4); padding: 1.5rem 0; color: var(--muted); text-align: center; font-size: .9rem; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes floatGlow {
  0% { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
  50% { box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 24px rgba(47,225,162,.08) inset; }
  100% { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
}
.card:hover { animation: floatGlow 2.4s ease-in-out infinite; }

