/* ============================================================
   CSS PROMĚNNÉ
   ============================================================ */
:root {
  --c-bg:           #1e1e1e;
  --c-bg-card:      rgba(38, 38, 40, 0.92);
  --c-bg-info:      rgba(0, 0, 0, 0.45);
  --c-footer:       #000;

  --c-text:         #fff;
  --c-text-muted:   rgba(255, 255, 255, 0.82);
  --c-text-dim:     rgba(255, 255, 255, 0.55);

  --c-accent:       #005eff;
  --c-accent-h:     #1a6fff;
  --c-accent-glow:  rgba(0, 94, 255, 0.5);
  --c-purple:       #b425b4;
  --c-red:          #e53935;
  --c-nav-hover:    #868686;

  --nav-h:          68px;
  --radius:         12px;
  --radius-sm:      8px;
  --container:      1320px;
  --gap:            clamp(16px, 3vw, 28px);

  --tr:             0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:        0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; 
  position: relative;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; 
  position: relative;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar               { width: 6px; }
::-webkit-scrollbar-track         { background: #111; }
::-webkit-scrollbar-thumb         { background: #3a3a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: #555; }

/* ============================================================
   LAYOUT HELPER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--nav-h);

  /* ── Liquid glass efekt (jemný) ── */
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.22);

  transition: background var(--tr), box-shadow var(--tr), border-color var(--tr);
}

/* Po odscrollování – trochu neprůhledněji, glass zachován */
.navbar.scrolled {
  background: rgba(10, 10, 12, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 6px 32px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;   /* celý obsah vycentrován */
  gap: 36px;                 /* logo a linky blíž u sebe */
}

.navbar__brand { display: flex; align-items: center; flex-shrink: 0; }

.navbar__logo  { height: 46px; width: auto; }

/* Desktop nav – bez margin-left: auto, zůstane u loga */
.navbar__nav   { /* margin-left: auto odstraněn – nav je teď hned vedle loga */ }

.navbar__list  {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: color var(--tr);
  white-space: nowrap;
}

.navbar__link i { font-size: 0.85em; opacity: 0.85; }

.navbar__link:hover { color: var(--c-nav-hover); }

/* Podtržení ze středu ven */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 55%;
  height: 2px;
  background: var(--c-nav-hover);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform var(--tr);
}

.navbar__link:hover::after { transform: translateX(-50%) scaleX(1); }

/* Hamburger – skryt na desktopu */
.hamburger { display: none; }

/* ============================================================
   MOBILNÍ MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(12, 12, 12, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.42s ease;
}

.mobile-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu__list { text-align: center; }

.mobile-menu__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__item:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu.is-open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius);
  transition: color var(--tr), background var(--tr);
}

.mobile-menu__link:hover {
  color: var(--c-accent);
  background: rgba(0, 94, 255, 0.06);
}

.mobile-menu__link i { font-size: 0.8em; color: var(--c-accent); }

/* Hamburger button */
.hamburger {
  display: none;              /* skryt na desktopu */
  width: 32px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 901;
  /* Větší touch target bez ovlivnění vizuálu */
  margin: -10px;
  padding: 10px;
  width: 52px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger__bar {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--c-text);
  border-radius: 2px;
  transform-origin: center;
  flex-shrink: 0;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}

/* Animace → křížek */
.hamburger.is-active .hamburger__bar:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.hamburger.is-active .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger__bar:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;       /* svh = safe viewport height (mobil) */
  min-height: 100vh;
  background: url('image (1).png') no-repeat center center / cover;
  display: flex;
  align-items: center;
}

/* Vrstvený overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.38) 40%,
      rgba(0,0,0,0.20) 65%,
      rgba(30,30,30,0.85) 88%,
      #1e1e1e 100%
    );
  pointer-events: none;
}

/* Jemný ambient odlesk napravo (kde je logo) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 40% 50% at 72% 50%,
    rgba(0, 80, 220, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: var(--nav-h);
  padding-bottom: 60px;
}

/* --- Text blok --- */
.hero__text { flex: 0 1 580px; }

.hero__title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  text-align: center;
  background: linear-gradient(120deg, #fff 30%, var(--c-accent-h) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__desc p {
  font-size: clamp(0.98rem, 1.55vw, 1.15rem);
  color: var(--c-text-muted);
  line-height: 1.65;
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero__inline-link {
  color: var(--c-purple);
  font-weight: 600;
  transition: opacity var(--tr);
}
.hero__inline-link:hover { opacity: 0.75; }

/* --- Logo --- */
.hero__logo-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-img {
  width: clamp(280px, 32vw, 460px);
  height: auto;
  animation: floatLogo 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(0, 94, 255, 0.28));
  will-change: transform;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-28px); }
}

/* ============================================================
   SEKCE: PROČ SPLASHSMP
   ============================================================ */
.features {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--c-bg);
  overflow: hidden;
}

/* Jemný ambient glow uprostřed sekce */
.features::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  translate: -50% 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 94, 255, 0.055) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  letter-spacing: -0.01em;
  /* jemný text glow */
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

/* ── Karty ── */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 56px);
}

/* Výchozí stav: viditelné (CSS fallback pro případ selhání JS) */
.card {
  width: 280px;
  flex: 0 0 280px;
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  text-align: center;
  cursor: default;

  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--tr-slow), transform var(--tr-slow),
              box-shadow var(--tr), border-color var(--tr), scale var(--tr);
}

/* JS přidá třídu .will-animate na .cards → zapne scroll animaci */
.cards.will-animate .card {
  opacity: 0;
  transform: translateY(24px);
}

.cards.will-animate .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  scale: 1.04;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 94, 255, 0.18),   /* jemný modrý outline */
    inset 0 1px 0 rgba(255,255,255,0.06); /* vnitřní lesk nahoře */
  border-color: rgba(0, 94, 255, 0.3);
}

/* Ikona */
.card__icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 94, 255, 0.1);
  border-radius: 50%;
  transition: background var(--tr), box-shadow var(--tr);
}

.card:hover .card__icon-wrap {
  background: rgba(0, 94, 255, 0.18);
  box-shadow: 0 0 16px rgba(0, 94, 255, 0.22); /* záře okolo ikony při hoveru */
}

.card__icon {
  font-size: 1.35rem;
  color: var(--c-accent);
}

/* Titulek */
.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 10px;
  line-height: 1.35;
}

/* Popis */
.card__body {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* Kaskádové zpoždění (platí jen když je .will-animate aktivní) */
.cards.will-animate .card:nth-child(1) { transition-delay: 0s; }
.cards.will-animate .card:nth-child(2) { transition-delay: 0.13s; }
.cards.will-animate .card:nth-child(3) { transition-delay: 0.26s; }

/* ── CTA ── */
.cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.btn-join {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-accent);
  padding: 14px 48px;
  border-radius: var(--radius);
  box-shadow: 0 0 24px var(--c-accent-glow), 0 0 0 0 rgba(0,94,255,0);
  transition: transform var(--tr), background var(--tr), box-shadow var(--tr);
  animation: btnPulse 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 94, 255, 0.45); }
  50%       { box-shadow: 0 0 36px rgba(0, 94, 255, 0.70), 0 0 60px rgba(0, 94, 255, 0.18); }
}

.btn-join:hover {
  transform: scale(1.025) translateY(-2px);
  background: var(--c-accent-h);
  box-shadow: 0 0 44px var(--c-accent-glow), 0 10px 28px rgba(0,0,0,0.4);
  animation: none;
}

/* ── Info box ── */
.info-box {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--c-bg-info);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 0.97rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.link--purple {
  color: var(--c-purple);
  font-weight: 600;
  transition: opacity var(--tr);
}
.link--purple:hover { opacity: 0.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-footer);
  padding: clamp(50px, 7vw, 80px) 0 clamp(30px, 4vw, 50px);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
}

.footer__line {
  width: 38px;
  height: 3px;
  background: var(--c-red);
  border-radius: 2px;
  margin-bottom: 20px;
}

.footer__link {
  font-size: 0.97rem;
  color: var(--c-text-muted);
  transition: color var(--tr);
  margin-bottom: 6px;
}
.footer__link:hover { color: var(--c-red); }

/* Stats */
.footer__stat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

.footer__social-icon {
  font-size: 1.25rem;
  color: #fff;
  transition: transform var(--tr), color var(--tr);
  line-height: 1;
}
.footer__social-icon:hover { transform: scale(1.2); color: var(--c-red); }

/* Spodní část */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer__creator {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color var(--tr);
}
.footer__creator:hover { color: var(--c-accent); }

.footer__bottom p,
.footer__bottom a {
  font-size: 0.88rem;
  color: var(--c-text-dim);
}
.footer__bottom a:hover { color: var(--c-text-muted); }

/* ============================================================
   RESPONZIVITA
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero__content {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: calc(var(--nav-h) + 24px);
  }

  .hero__text     { flex: none; max-width: 560px; }
  .hero__desc p   { text-align: left; }
  .hero__logo-img { width: clamp(200px, 52vw, 340px); }

  .footer__col { align-items: center; }
  .footer__grid { justify-content: center; text-align: center; }
  .footer__line { margin-inline: auto; }
}

/* Mobil */
@media (max-width: 640px) {

  /* Nav – skrýt desktop nav, zobrazit hamburger */
  .navbar__nav  { display: none; }
  .hamburger    { display: flex; }

  /* Na mobilu: logo vlevo, hamburger vpravo */
  .navbar__inner {
    justify-content: space-between;
    gap: 0;
  }

  /* Hero */
  .hero { min-height: 100svh; min-height: 100vh; }

  .hero__content {
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 48px;
    gap: 24px;
  }

  .hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Karty – stack */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: min(100%, 360px);
    flex: none;
  }

  /* Deaktivovat transition-delay na mobilu (menší obsah, není třeba) */
  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3) { transition-delay: 0s; }

  /* Button */
  .btn-join { font-size: 1.25rem; padding: 13px 36px; }

  /* Info box */
  .info-box { font-size: 0.9rem; padding: 12px 16px; }

  /* Footer */
  .footer__grid { flex-direction: column; align-items: center; }
}

/* Velmi malé obrazovky */
@media (max-width: 380px) {
  .hero__title { font-size: 1.5rem; }
  .btn-join    { font-size: 1.1rem; padding: 12px 28px; }
}

/* Podpora pro prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__logo-img { animation: none; }
}