/* ═══════════════════════════════════════════
   Arc Raiders CZ/SK – style.css
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ─ palette ─ */
  --bg:          #0a0c10;
  --bg-card:     #111520;
  --bg-card-alt: #161b28;
  --surface:     #1a1f2e;
  --border:      rgba(0, 224, 255, .1);
  --border-hover:rgba(0, 224, 255, .3);
  --text:        #c8cdd8;
  --text-dim:    #6b7280;
  --heading:     #eaf0ff;
  --accent:      #00e0ff;
  --accent-dim:  #007a8c;
  --accent-glow: rgba(0, 224, 255, .15);
  --accent-glow2:rgba(0, 224, 255, .06);
  --orange:      #ff6a2b;

  /* ─ layout ─ */
  --max-w: 1160px;
  --section-py: 100px;
  --radius: 14px;
  --radius-sm: 8px;

  /* ─ type ─ */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; }

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


/* ── Utility: fade-in on scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: .08s; }
.fade-in:nth-child(3) { transition-delay: .16s; }
.fade-in:nth-child(4) { transition-delay: .24s; }
.fade-in:nth-child(5) { transition-delay: .32s; }


/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 12, 16, .5);
  backdrop-filter: blur(10px);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav--scrolled {
  background: rgba(10, 12, 16, .9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--heading);
  letter-spacing: -.02em; text-decoration: none;
}
.nav__logo-img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a {
  color: var(--text); font-size: .88rem; font-weight: 500;
  letter-spacing: .01em; transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }

/* ── Burger (mobile) ── */
.nav__burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav--open .nav__links {
    display: flex;
  }
  .nav--open {
    flex-wrap: wrap; background: rgba(10, 12, 16, .97);
    backdrop-filter: blur(14px);
  }
  .nav--open .nav__links {
    flex-basis: 100%; flex-direction: column; gap: 18px;
    padding: 20px 0 20px;
  }
}


/* ══════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-py) 0;
}
.section__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section__label::before {
  content: ''; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 18px;
}
.section__desc {
  max-width: 600px; color: var(--text-dim); font-size: 1.05rem;
  line-height: 1.7;
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}

/* ── Hero background image (Queen Arc) ── */
.hero__bg {
  position: absolute; inset: -10%; z-index: 0;
  overflow: hidden;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;          /* Queen is in the upper portion */
  animation: kenburns 25s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -.5%); }
}
/* Multi-layer overlay: dark left side for text, lighter on the right to show Queen */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    /* strong fade on left where text lives */
    linear-gradient(90deg,
      rgba(10,12,16, .92) 0%,
      rgba(10,12,16, .80) 35%,
      rgba(10,12,16, .45) 60%,
      rgba(10,12,16, .20) 100%
    ),
    /* top-to-bottom vignette */
    linear-gradient(180deg,
      rgba(10,12,16, .45) 0%,
      rgba(10,12,16, .15) 35%,
      rgba(10,12,16, .65) 100%
    );
  pointer-events: none;
}

/* Canvas behind content (particles) */
.hero__canvas {
  position: absolute; inset: 0; z-index: 1;
}

/* Ambient gradients */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(0,224,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(255,106,43,.04) 0%, transparent 60%);
  pointer-events: none;
}
/* Bottom fade */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 220px; z-index: 4;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* Grid overlay */
.hero__grid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .035;
  background-image:
    linear-gradient(rgba(0,224,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__inner {
  position: relative; z-index: 5;
  max-width: 720px;
  padding: 140px 0 100px;
}
.hero__logo {
  width: 100px; height: 100px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 0 40px rgba(0,224,255,.15), 0 4px 20px rgba(0,0,0,.4);
  border: 1px solid var(--border);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,224,255,.08); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 28px;
}
.hero__badge span { display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -.03em; margin-bottom: 22px;
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
}
.hero__title .accent { color: var(--accent); }

.hero__subtitle {
  font-size: 1.15rem; color: var(--text);
  max-width: 520px; margin-bottom: 38px; line-height: 1.7;
  text-shadow: 0 1px 20px rgba(0,0,0,.5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .25s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 30px rgba(0,224,255,.25);
}
.btn--primary:hover {
  background: #33e8ff; color: var(--bg);
  box-shadow: 0 0 50px rgba(0,224,255,.35);
}
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 20px rgba(0,224,255,.1);
}


/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about {
  background: var(--bg);
}
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.about__visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.about__visual-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about__stats {
  display: flex; gap: 32px; margin-top: 32px;
}
.about__stat {
  text-align: center;
}
.about__stat-num {
  display: block; font-size: 1.8rem; font-weight: 800;
  color: var(--accent); letter-spacing: -.02em;
}
.about__stat-label {
  font-size: .8rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-height: 260px; }
}


/* ══════════════════════════════════════════
   FEATURES / CAROUSEL
   ══════════════════════════════════════════ */
.features { background: var(--bg); }

/* ── Carousel wrapper ── */
.carousel {
  position: relative;
  margin-top: 48px;
  padding: 0 32px;
}
.carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 24px;
  /* hide scrollbar but keep functionality */
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

/* ── Regular card ── */
.carousel__card {
  flex: 0 0 280px; scroll-snap-align: start;
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .25s;
  overflow: hidden;
}
.carousel__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.carousel__card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,224,255,.07);
  transform: translateY(-3px);
}
.carousel__card:hover::before { opacity: 1; }

.carousel__card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-glow); display: grid; place-items: center;
  margin-bottom: 20px; color: var(--accent);
}
.carousel__card-title {
  font-size: 1.1rem; margin-bottom: 10px;
}
.carousel__card-text {
  color: var(--text-dim); font-size: .92rem; line-height: 1.6;
}

/* ── Featured card (wider, split layout) ── */
.carousel__card--featured {
  flex: 0 0 560px;
  display: flex; align-items: stretch; gap: 0;
  padding: 0; overflow: hidden;
  background:
    linear-gradient(135deg, var(--bg-card) 0%, rgba(0,224,255,.04) 100%);
  border-color: var(--border-hover);
}
.carousel__card--featured::before { opacity: 1; }

.carousel__card-body {
  flex: 1; padding: 34px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.carousel__card-badge {
  display: inline-block; align-self: flex-start;
  padding: 4px 12px; border-radius: 6px;
  background: rgba(255,106,43,.12); color: var(--orange);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.carousel__card--featured .carousel__card-title {
  font-size: 1.25rem; margin-bottom: 12px;
}
.carousel__card--featured .carousel__card-text {
  font-size: .9rem; line-height: 1.65; margin-bottom: 20px;
}
.carousel__card-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .88rem; font-weight: 700; color: var(--accent);
  transition: gap .2s;
}
.carousel__card-cta:hover { gap: 10px; color: #fff; }

/* ── Tilted screen mockup ── */
.carousel__card-screen {
  flex: 0 0 220px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px 24px 0;
}
.tilted-screen {
  position: relative;
  perspective: 900px;
}
.tilted-screen__frame {
  width: 175px; height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(0,224,255,.2);
  background: #0d0f15;
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 30px rgba(0,224,255,.08);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg);
  transition: transform .5s ease;
}
.carousel__card--featured:hover .tilted-screen__frame {
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(1deg);
}
.tilted-screen__img {
  width: 100%;
  /* image scrolls vertically inside the frame */
  animation: fake-scroll 12s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fake-scroll {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(0); }
  85%  { transform: translateY(calc(-100% + 320px)); }
  100% { transform: translateY(calc(-100% + 320px)); }
}
.tilted-screen__glow {
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,255,.12), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
}

/* ── Carousel nav arrows ── */
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s, background .2s, opacity .2s;
  z-index: 2;
}
.carousel__arrow:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--bg-card-alt);
}
.carousel__arrow--prev { left: 4px; }
.carousel__arrow--next { right: 4px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .carousel { padding: 0 16px; }
  .carousel__card--featured {
    flex: 0 0 calc(100vw - 56px);
    flex-direction: column;
  }
  .carousel__card-screen {
    flex: 0 0 auto; padding: 0 24px 24px;
    justify-content: center;
  }
  .carousel__card { flex: 0 0 260px; }
  .carousel__arrow { display: none; }
}


/* ══════════════════════════════════════════
   NEWS
   ══════════════════════════════════════════ */
.news { background: var(--bg); }

#news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin-top: 48px;
}
.news-card {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .25s;
  display: flex; flex-direction: column; gap: 10px;
}
.news-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,224,255,.07);
  transform: translateY(-3px);
}
.news-card__tag {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 6px;
  background: var(--accent-glow); color: var(--accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.news-card__date {
  font-size: .8rem; color: var(--text-dim);
}
.news-card__title {
  font-size: 1.1rem; color: var(--heading);
}
.news-card__summary {
  color: var(--text-dim); font-size: .92rem; line-height: 1.6; flex: 1;
}
.news-card__link {
  font-size: .88rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.news-card__link:hover { gap: 8px; color: #fff; }

.news-fallback {
  grid-column: 1 / -1; text-align: center; padding: 40px;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  #news-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════
   DISCORD CTA
   ══════════════════════════════════════════ */
.discord {
  background: var(--bg);
}
.discord__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,224,255,.08), rgba(88,101,242,.1));
  border: 1px solid var(--border);
  padding: 70px 50px;
  text-align: center;
}
/* glow blob */
.discord__card::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,101,242,.15), transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.discord__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 16px; position: relative;
}
.discord__text {
  color: var(--text-dim); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
  position: relative;
}
.discord__btn {
  position: relative;
  background: #5865F2; color: #fff;
  box-shadow: 0 0 30px rgba(88,101,242,.3);
}
.discord__btn:hover {
  background: #6c78ff; color: #fff;
  box-shadow: 0 0 50px rgba(88,101,242,.4);
}

@media (max-width: 640px) {
  .discord__card { padding: 48px 24px; }
}


/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.footer__copy {
  font-size: .82rem; color: var(--text-dim);
}
.footer__links {
  display: flex; gap: 24px; list-style: none;
}
.footer__links a {
  font-size: .82rem; color: var(--text-dim);
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__note {
  flex-basis: 100%; font-size: .75rem; color: var(--text-dim);
  opacity: .6; margin-top: 8px;
}

@media (max-width: 580px) {
  .footer__inner { flex-direction: column; text-align: center; }
}


/* ══════════════════════════════════════════
   GLOBAL DECORATIVE
   ══════════════════════════════════════════ */

/* Noise overlay (very subtle) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Section separator line */
.section + .section::before {
  content: ''; display: block;
  width: 100%; max-width: var(--max-w);
  height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}


/* ══════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface); border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }


/* ══════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════ */
::selection {
  background: rgba(0,224,255,.2); color: #fff;
}
