/* ================================================
   MOTOHUB POLSKA  ·  style.css
   Dark moto · editorial · neon green pulse
   ================================================ */

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── TOKENS ─────────────────────────────────────── */
:root {
  /* brand */
  --g:          #39ff14;
  --g-dim:      rgba(57,255,20,.18);
  --g-glow:     rgba(57,255,20,.35);

  /* tiles */
  --dc:         #5865f2;
  --dc-deep:    #1a1f6b;
  --ig-a:       #bc1888;
  --ig-b:       #6b2fa0;
  --rs-a:       #c026d3;
  --rs-b:       #4c1d95;

  /* surface */
  --bg:         #07090c;
  --bg2:        #0b0e14;
  --surface:    rgba(255,255,255,.04);
  --border:     rgba(255,255,255,.07);
  --border-h:   rgba(255,255,255,.14);

  /* type */
  --white:      #f0f2f6;
  --muted:      #6b7a93;
  --muted2:     #8a98ae;

  /* fonts */
  --f-head:     'Barlow Condensed', sans-serif;
  --f-body:     'Barlow', sans-serif;

  /* eases */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── BASE ────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--g-dim); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(57,255,20,.3); border-radius: 3px; }

/* ── CANVAS ─────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .5;
}

/* nav gif logo */
.nav__logo-gif {
  height: 48px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px var(--g-dim));
}

/* hero animated logo */
.hero__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__logo-gif {
  height: clamp(100px, 18vw, 160px);
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px var(--g-glow)) drop-shadow(0 0 60px rgba(57,255,20,.15));
  transition: filter .4s;
}
.hero__logo-gif:hover {
  filter: drop-shadow(0 0 40px var(--g-glow)) drop-shadow(0 0 80px rgba(57,255,20,.25));
}


.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: background .4s, backdrop-filter .4s, padding .3s;
}

.nav.scrolled {
  background: rgba(7,9,12,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav__logo-img {
  height: 40px; width: auto;
  filter: drop-shadow(0 0 12px var(--g-dim));
}

.nav__logo-text {
  font-family: var(--f-head);
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: .12em; color: var(--white);
}
.nav__logo-text em { color: var(--g); font-style: normal; }

.nav__cta {
  font-family: var(--f-head);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--g);
  border: 1px solid rgba(57,255,20,.5);
  padding: 9px 22px; border-radius: 3px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.nav__cta:hover {
  background: var(--g); color: #000;
  box-shadow: 0 0 24px var(--g-glow);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 40px 100px;
  overflow: hidden;
}

/* animated grid */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(57,255,20,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 30%, transparent 100%);
  animation: grid-drift 20s ease-in-out infinite alternate;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

/* ambient blobs */
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.hero__glow--green {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(57,255,20,.08) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: blob-drift 12s ease-in-out infinite alternate;
}
.hero__glow--blue {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(88,101,242,.07) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: blob-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 820px; width: 100%;
  display: flex; flex-direction: column; gap: 32px;
}

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: .8rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
  width: fit-content;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g-glow);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 8px var(--g-glow); }
  50%      { opacity:.6; transform:scale(.85); box-shadow: 0 0 14px var(--g-glow); }
}

/* heading */
.hero__title {
  font-family: var(--f-head);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; color: var(--white); }
.hero__title .accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--g);
  text-stroke: 2px var(--g);
  filter: drop-shadow(0 0 30px var(--g-glow));
}

/* sub */
.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  font-weight: 300; line-height: 1.75;
  color: var(--muted2);
  max-width: 520px;
}

/* actions */
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 4px;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--g); color: #000;
  box-shadow: 0 4px 30px rgba(57,255,20,.25);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(57,255,20,.45);
}
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn--ghost {
  color: var(--muted2);
  border: 1px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--white); border-color: var(--border-h);
  transform: translateY(-2px);
}

/* stats */
.stats {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  backdrop-filter: blur(12px);
  width: fit-content;
}

.stat {
  padding: 20px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.stat__row {
  display: flex; align-items: baseline; gap: 2px;
}

.stat__num {
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1;
  color: var(--g);
  text-shadow: 0 0 20px var(--g-glow);
}

.stat__plus {
  font-family: var(--f-head);
  font-size: 1.4rem; font-weight: 700;
  color: var(--g); opacity: .7;
}

.stat__label {
  font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

.stat__sep {
  width: 1px; background: var(--border);
  align-self: stretch; flex-shrink: 0;
}

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); z-index: 2;
}
.scroll-hint__wheel {
  width: 22px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 12px; position: relative;
}
.scroll-hint__wheel::before {
  content: '';
  position: absolute; top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--g); border-radius: 2px;
  animation: wheel-scroll 2s ease-in-out infinite;
}
@keyframes wheel-scroll {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* ── FEATURES ────────────────────────────────────── */
.features {
  position: relative; z-index: 1;
  padding: 80px 40px 100px;
  border-top: 1px solid var(--border);
}

.features__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}

.feature {
  background: var(--bg2);
  padding: 44px 36px;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.feature::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--g-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.feature:hover { background: #0e1219; }
.feature:hover::after { opacity: 1; }

.feature__num {
  font-family: var(--f-head);
  font-size: 3.5rem; font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1; margin-bottom: -4px;
}
.feature__icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature__title {
  font-family: var(--f-head);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}
.feature__text {
  font-size: .9rem; line-height: 1.65;
  color: var(--muted2);
}

/* ── SOCIALS ─────────────────────────────────────── */
.socials {
  position: relative; z-index: 1;
  padding: 80px 40px 120px;
}

.socials__head {
  max-width: 1100px; margin: 0 auto 60px;
}

.socials__eyebrow {
  font-family: var(--f-head);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--g); margin-bottom: 12px;
}

.socials__title {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900; line-height: .95;
  text-transform: uppercase; color: var(--white);
}

/* tiles grid */
.tiles {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── SINGLE TILE ─────────────────────────────────── */
.tile {
  position: relative;
  aspect-ratio: 9/13;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s;
  will-change: transform;
}

.tile:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,255,255,.18);
}

/* bg layer */
.tile__bg {
  position: absolute; inset: 0;
  transition: transform .6s var(--ease-out);
}
.tile:hover .tile__bg { transform: scale(1.06); }

/* shimmer sweep */
.tile__shimmer {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255,255,255,.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .8s var(--ease-out);
  pointer-events: none;
}
.tile:hover .tile__shimmer { background-position: 200% 0; }

/* content layout */
.tile__content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  padding: 24px 22px;
}

.tile__top {
  display: flex; align-items: center; justify-content: space-between;
}

.tile__platform {
  font-family: var(--f-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  padding: 5px 12px; border-radius: 100px;
}

.tile__arrow {
  font-size: 1.1rem; color: rgba(255,255,255,.35);
  transition: color .3s, transform .3s;
}
.tile:hover .tile__arrow {
  color: rgba(255,255,255,.85);
  transform: translate(3px, -3px);
}

/* icon */
.tile__icon-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.tile__icon-wrap svg {
  width: 80px; height: 80px; color: rgba(255,255,255,.9);
  filter: drop-shadow(0 4px 24px rgba(255,255,255,.2));
  transition: transform .4s var(--ease-out), filter .4s;
}
.tile:hover .tile__icon-wrap svg {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 8px 32px rgba(255,255,255,.35));
}

/* bottom */
.tile__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.tile__label-vert {
  font-family: var(--f-head);
  font-size: 1.6rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

.tile__cta {
  font-size: .75rem; letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  transition: color .3s;
}
.tile:hover .tile__cta { color: rgba(255,255,255,.85); }

/* ── TILE COLOURS ────────────────────────────────── */
.tile--discord .tile__bg {
  background:
    radial-gradient(ellipse at 30% 20%, #3d4ec5 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, #1a1d7a 0%, transparent 60%),
    #080b1f;
}
.tile--discord:hover {
  box-shadow: 0 20px 60px rgba(88,101,242,.3);
}

.tile--insta .tile__bg {
  background:
    radial-gradient(ellipse at 20% 80%, #bc1888 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, #6b2fa0 0%, transparent 55%),
    #0e0716;
}
.tile--insta:hover {
  box-shadow: 0 20px 60px rgba(188,24,136,.3);
}

.tile--riser .tile__bg {
  background:
    radial-gradient(ellipse at 65% 15%, #7c3aed 0%, transparent 50%),
    radial-gradient(ellipse at 25% 85%, #1e0a3c 0%, transparent 55%),
    #0a0612;
}
.tile--riser:hover {
  box-shadow: 0 20px 60px rgba(124,58,237,.35);
}

/* Riser logo image */
.tile__img-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 4px 20px rgba(124,58,237,.5));
  transition: transform .4s cubic-bezier(0.22,1,0.36,1), filter .4s;
}
.tile:hover .tile__img-icon {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 8px 32px rgba(124,58,237,.75));
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  padding: 48px 40px 36px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1100px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}

.footer__left {
  display: flex; flex-direction: column; gap: 4px;
}

.footer__name {
  font-family: var(--f-head);
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: .12em; color: var(--white);
}
.footer__name em { color: var(--g); font-style: normal; }

.footer__tagline {
  font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.footer__links {
  display: flex; gap: 28px;
}
.footer__links a {
  font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  max-width: 1100px; margin: 0 auto;
  font-size: .72rem; letter-spacing: .06em;
  color: rgba(255,255,255,.2);
}

/* ── REVEAL ANIMATIONS ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-tile {
  opacity: 0; transform: translateY(48px) scale(.97);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-tile.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .features__inner { grid-template-columns: 1fr; gap: 1px; }
  .feature { padding: 32px 28px; }

  .tiles {
    grid-template-columns: 1fr;
    max-width: 420px; margin: 0 auto;
  }
  .tile { aspect-ratio: 16/9; }
  .tile__icon-wrap svg { width: 56px; height: 56px; }
  .tile__label-vert { font-size: 1.2rem; }
}

@media (max-width: 680px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .hero { padding: 110px 20px 80px; }
  .hero__title { font-size: clamp(3.2rem, 16vw, 6rem); }
  .hero__title .accent { -webkit-text-stroke-width: 1.5px; }
  .hero__sub { font-size: .9rem; }
  .stats { width: 100%; flex-direction: column; }
  .stat { padding: 16px 28px; }
  .stat__sep { width: 100%; height: 1px; align-self: auto; }
  .features { padding: 60px 20px 80px; }
  .socials { padding: 60px 20px 100px; }
  .footer { padding: 40px 20px 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .socials__title { font-size: 2.2rem; }
}
