/* ═══════════════════════════════════════════════════════════
   Nexus Gaming Solutions — Design System
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #05080f;
  --bg-2: #0a0f1c;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-solid: #0d1526;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6edf6;
  --muted: #8b98ab;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --grad: linear-gradient(120deg, #22d3ee, #818cf8);

  --c-client: #22d3ee;
  --c-betslip: #34d399;
  --c-agent: #fbbf24;
  --c-manager: #a78bfa;
  --c-brackets: #f472b6;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
  --radius: 18px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Intro (cinematic opener) ── */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: #030509;
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity .8s ease;
}
.intro::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 20%, rgba(34,211,238,0.10), transparent),
    radial-gradient(ellipse 45% 35% at 50% 90%, rgba(129,140,248,0.10), transparent);
}
.intro.done { opacity: 0; pointer-events: none; }
.intro__skip {
  position: absolute; top: 24px; right: 28px; z-index: 2;
  background: rgba(148,163,184,0.08); border: 1px solid var(--border);
  color: var(--muted); font: 600 .82rem var(--font-body);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.intro__skip:hover { color: var(--accent); border-color: var(--accent); }

.intro__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 24px; text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.intro__stage.on { opacity: 1; visibility: visible; }
.intro__stage.off { opacity: 0; visibility: hidden; }

.intro__mark {
  width: 120px; height: 120px; border-radius: 26px;
  transform: scale(.6); opacity: 0;
  filter: drop-shadow(0 0 40px rgba(34,211,238,0.35));
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .9s ease;
}
.intro__stage.on .intro__mark { transform: scale(1); opacity: 1; }
.intro__wordmark {
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700;
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease .45s, transform .8s ease .45s;
}
.intro__stage.on .intro__wordmark { opacity: 1; transform: translateY(0); }
.intro__wordmark span { color: var(--muted); font-weight: 500; }

.intro__line {
  font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600; color: var(--text);
  opacity: 0; transition: opacity .6s ease;
}
.intro__stage.on .intro__line { opacity: 1; }
.intro__icons { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.intro__icons figure {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(26px) scale(.85);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(.25s + var(--i) * .28s);
}
.intro__stage.on .intro__icons figure { opacity: 1; transform: translateY(0) scale(1); }
.intro__icons img { width: 82px; height: 82px; border-radius: 19px; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.intro__icons figcaption { font: 600 .8rem var(--font-body); color: var(--muted); }

.intro__ai-icon {
  width: 110px; height: 110px; border-radius: 24px;
  opacity: 0; transform: scale(.7);
  filter: drop-shadow(0 0 46px rgba(129,140,248,0.4));
  transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.intro__stage.on .intro__ai-icon { opacity: 1; transform: scale(1); }
.intro__ai-line {
  font-family: var(--font-display); font-size: clamp(1.2rem, 3.4vw, 1.9rem); font-weight: 600;
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s ease .35s, transform .8s ease .35s;
}
.intro__stage.on .intro__ai-line { opacity: 1; transform: translateY(0); }
.intro__ai-line span {
  background: linear-gradient(120deg, #818cf8, #22d3ee, #818cf8);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Background layers ── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-orb {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: 0.16; pointer-events: none;
}
.bg-orb--cyan   { width: 560px; height: 560px; background: #22d3ee; top: -180px; right: -120px; }
.bg-orb--violet { width: 480px; height: 480px; background: #6366f1; top: 45%; left: -180px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 10px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn--lg { padding: 14px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn--primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(34, 211, 238, 0.5); }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(148,163,184,0.06); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border-color: var(--border); color: var(--text); background: transparent; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 36px; height: 36px; }
.nav__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.nav__name span { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 4px; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero ── */
.hero { padding: 170px 0 80px; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.25); border-radius: 999px;
  padding: 7px 18px; background: rgba(34,211,238,0.06);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(34,211,238,0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin: 28px 0 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 1.12rem; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__suite {
  display: flex; justify-content: center; align-items: center; gap: 26px;
  margin-top: 76px; flex-wrap: wrap;
}
.hero__suite img {
  width: 76px; height: 76px; border-radius: 18px;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.hero__suite-center { width: 96px !important; height: 96px !important; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Stats ── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(13,21,38,0.35); }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 24px; gap: 20px; text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { color: var(--muted); font-size: .88rem; }

/* ── Sections ── */
.section { padding: 110px 0; }
.section__eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .82rem; margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section__sub { color: var(--muted); max-width: 560px; font-size: 1.05rem; margin-bottom: 54px; }

/* ── Cards ── */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: rgba(34,211,238,0.4); transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 30px rgba(34,211,238,0.07);
}
.card__icon { font-size: 1.7rem; margin-bottom: 16px; }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }

/* ── Suite / App cards ── */
.section--suite { background: linear-gradient(180deg, transparent, rgba(13,21,38,0.4) 18%, rgba(13,21,38,0.4) 82%, transparent); }
.suite-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.app-card {
  position: relative; overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: 22px; padding: 36px 30px 30px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: border-color .3s, transform .3s;
}
.app-card:hover { transform: translateY(-6px); }
.app-card__glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 160px; border-radius: 50%;
  filter: blur(60px); opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.app-card:hover .app-card__glow { opacity: 0.22; }
.app-card[data-app="client"]   { --app-c: var(--c-client); }
.app-card[data-app="betslip"]  { --app-c: var(--c-betslip); }
.app-card[data-app="agent"]    { --app-c: var(--c-agent); }
.app-card[data-app="manager"]  { --app-c: var(--c-manager); }
.app-card[data-app="brackets"] { --app-c: var(--c-brackets); }
.app-card:hover { border-color: color-mix(in srgb, var(--app-c) 55%, transparent); }
.app-card__glow { background: var(--app-c); }
.app-card__icon { width: 68px; height: 68px; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.app-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.app-card__name strong { font-weight: 700; color: var(--app-c); }
.app-card__tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--app-c); margin: 6px 0 14px;
}
.app-card__desc { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 22px; }
.app-card__btn { width: 100%; border-radius: 12px; }
.app-card__btn:hover { border-color: var(--app-c); color: var(--app-c); background: color-mix(in srgb, var(--app-c) 8%, transparent); }
.app-card__btn.is-disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ── AI section ── */
.ai-panel {
  position: relative;
  border-radius: 26px; padding: 46px 42px;
  background: linear-gradient(#0b1322, #0b1322) padding-box,
              linear-gradient(120deg, rgba(129,140,248,0.55), rgba(34,211,238,0.55)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.ai-panel::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 380px; height: 320px; border-radius: 50%;
  background: #818cf8; filter: blur(110px); opacity: .14; pointer-events: none;
}
.ai-panel__head { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.ai-panel__head .section__eyebrow { margin-bottom: 6px; color: #818cf8; }
.ai-panel__head .section__title { margin-bottom: 0; }
.ai-panel__icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.ai-panel .section__sub { margin-bottom: 34px; }
.ai-grid .card { background: rgba(15,23,42,0.65); }
.ai-grid .card:hover { border-color: rgba(129,140,248,0.45); box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 30px rgba(129,140,248,0.08); }
@media (max-width: 720px) {
  .ai-panel { padding: 32px 24px; }
  .ai-panel__head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── CTA ── */
.section--cta { text-align: center; }
.cta { display: flex; flex-direction: column; align-items: center; }
.cta .section__sub { margin-bottom: 34px; }
.cta__logo { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 28px; box-shadow: 0 0 60px rgba(34,211,238,0.25); }
.cta__form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cta__input {
  width: 100%; resize: vertical; min-height: 110px;
  background: rgba(148,163,184,0.07); border: 1px solid rgba(148,163,184,0.18);
  border-radius: 14px; padding: 14px 16px;
  color: var(--text); font: 400 .97rem/1.55 var(--font-body);
}
.cta__input::placeholder { color: #5c6b80; }
.cta__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.16);
}
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn--whatsapp {
  background: rgba(37,211,102,0.1); color: #25d366;
  border-color: rgba(37,211,102,0.4);
}
.btn--whatsapp:hover {
  background: rgba(37,211,102,0.18); border-color: #25d366;
  transform: translateY(-2px); box-shadow: 0 0 26px rgba(37,211,102,0.25);
}
.footer__phone { color: var(--muted); transition: color .2s; }
.footer__phone:hover { color: #25d366; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer__brand img { width: 28px; height: 28px; }
.footer__copy { color: var(--muted); font-size: .85rem; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: rgba(5,8,15,0.97); border-bottom: 1px solid var(--border);
  }
  .nav__links.open a { padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,0.07); }
  .grid--3 { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero__suite img { width: 58px; height: 58px; border-radius: 14px; }
  .hero__suite-center { width: 74px !important; height: 74px !important; }
  .section { padding: 80px 0; }
}
