/* =========================================
   Nyxcloud — home.css (v7) — UPDATED
   - Fix: remove huge gap (CTA no longer pushed to bottom)
   - Keep: cards spacing and divider
   - Scoped to .homePage
   ========================================= */

.homePage{
  padding: clamp(18px, 2.6vw, 30px) 0 clamp(42px, 6vw, 84px);
}

/* --- HERO layout --- */
.homePage .hero--home{
  padding: clamp(18px, 3vw, 28px) 0 clamp(22px, 3.2vw, 34px);
}

.homePage .heroHomeGrid{
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: stretch;
}

/* ✅ enforce equal height on grid items */
.homePage .heroHomeGrid > .heroMain,
.homePage .heroHomeGrid > .heroSide{
  height: 100%;
  min-height: 100%;
}

/* =========================================
   LEFT HERO AREA — same "level" as right panel
   ========================================= */
.homePage .heroMain{
  display: flex;
  flex-direction: column;

  padding: clamp(16px, 2.2vw, 22px);

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.06));
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

/* Pills */
.homePage .hero__badge{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.homePage .pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.homePage .pill--soft{
  color: rgba(255,255,255,.82);
  background: rgba(34,211,238,.08);
  border-color: rgba(34,211,238,.18);
}

/* =========================================
   HERO TEXT STRUCTURE
   H1 -> (small gap) -> H2 -> paragraph -> buttons -> divider -> cards
   ========================================= */
.homePage .heroHeading{
  margin: 6px 0 10px;
}

.homePage .heroH1{
  margin: 0;
  font-size: clamp(32px, 4.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.homePage .heroH2{
  margin: 8px 0 0;
  font-size: clamp(18px, 2.15vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 850;
  opacity: .92;
}

/* ✅ paragraph as a proper block right under headings */
.homePage .hero__lead{
  margin-top: 14px;
  margin-bottom: 12px;     /* FIX: vytvoří přirozený odstup před CTA */
  max-width: 72ch;
}

/* ✅ CTA: keep it under text (no auto push down) */
.homePage .hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 8px;         /* FIX: CTA blíž k textu */
  margin-bottom: 0;
  padding-top: 0;          /* FIX: už nepřidává další "vzduch" */
  padding-bottom: 0;       /* FIX */
}

/* =========================================
   HERO CARDS (3) — below divider and pushed down
   ========================================= */
.homePage .heroCards{
  position: relative;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  margin-top: auto;        /* FIX: karty drží dole, ne CTA */
  padding-top: 26px;       /* space under divider */
  align-items: stretch;
}

/* ✅ divider line above cards */
.homePage .heroCards::before{
  content: "";
  position: absolute;
  top: 10px;               /* FIX: čára není nalepená na karty */
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.14),
    transparent
  );
}

.homePage .heroMini{
  display: flex;
  flex-direction: column;
  gap: 8px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  padding: 14px 14px;

  min-height: 104px;
}

.homePage .heroMini__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.homePage .heroMini__title{
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 9ch;
}

.homePage .heroMini__tag{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  opacity: .95;
}

.homePage .heroMini__text{
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   Right panel — full height + CTA at bottom
   ========================================= */
.homePage .heroPanel{
  padding: clamp(16px, 2.2vw, 22px);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.homePage .heroPanel__kicker{
  font-weight: 850;
  letter-spacing: -0.01em;
}

.homePage .heroPanel__title{
  margin-top: 6px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.homePage .heroPanel__desc{
  margin-top: 6px;
  font-size: 13px;
}

.homePage .heroPanel__steps{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.homePage .hstep{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 10px 12px;
}

.homePage .hstep__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background:
    radial-gradient(120% 140% at 20% 0%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
}

.homePage .hstep__title{
  font-weight: 900;
  letter-spacing: -0.01em;
}

.homePage .hstep__text{
  font-size: 12px;
  margin-top: 2px;
}

.homePage .heroPanel__cta{
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

/* --- Sections spacing --- */
.homePage .section{
  margin-top: clamp(18px, 3vw, 28px);
}

.homePage .section__head{
  margin-bottom: 14px;
  max-width: 900px;
}

.homePage .section__head h2{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.homePage .grid--2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.homePage .grid--3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

/* Trust minis */
.homePage .mini{
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;

  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}

.homePage .mini__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.homePage .mini__title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.homePage .mini__text{
  font-size: 13px;
}

/* Bullets */
.homePage .bullets{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.homePage .bullets li{
  display: flex;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.homePage .bullets li::before{
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
  flex: 0 0 auto;
}

.homePage .bullets--tight{ gap: 6px; }

/* Steps */
.homePage .step{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}

.homePage .step__num{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
}

.homePage .step__title{
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.homePage .step__text{
  margin-top: 6px;
  font-size: 13px;
}

/* CTA row */
.homePage .ctaRow{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Final card */
.homePage .finalCard{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(12px, 2.2vw, 18px);
  padding: clamp(16px, 2.4vw, 22px);
}

.homePage .asideBox{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  padding: 14px;
}

.homePage .asideBox__title{
  font-weight: 900;
  margin-bottom: 8px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1260px){
  .homePage .heroH1{ white-space: normal; }
}

@media (max-width: 1100px){
  .homePage .heroCards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .homePage .heroMini:nth-child(3){
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px){
  .homePage .heroHomeGrid{ grid-template-columns: 1fr; }
  .homePage .grid--2{ grid-template-columns: 1fr; }
  .homePage .grid--3{ grid-template-columns: 1fr; }
  .homePage .finalCard{ grid-template-columns: 1fr; }

  .homePage .heroHomeGrid > .heroMain,
  .homePage .heroHomeGrid > .heroSide{
    height: auto;
    min-height: auto;
  }
  .homePage .heroPanel{ height: auto; min-height: auto; }

  .homePage .heroMain{
    padding: 16px;
    border-radius: 18px;
  }

  /* stacked: CTA stays under text */
  .homePage .hero__cta{
    margin-top: 12px;
  }

  /* stacked: cards follow naturally */
  .homePage .heroCards{
    margin-top: 18px;
    padding-top: 18px;
  }

  .homePage .heroCards::before{
    top: 0;
  }
}

@media (max-width: 620px){
  .homePage .heroCards{
    grid-template-columns: 1fr;
  }
  .homePage .heroMini{ min-height: auto; }
  .homePage .heroMini__text{
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 520px){
  .homePage .heroHeading{
    margin: 4px 0 10px;
  }

  .homePage .heroH1{
    font-size: clamp(28px, 9.2vw, 42px);
    line-height: 1.10;
    white-space: normal;
  }

  .homePage .heroH2{
    margin-top: 8px;
    font-size: clamp(16px, 4.6vw, 22px);
    line-height: 1.20;
    margin-bottom: 0;
  }

  .homePage .hero__lead{
    margin-top: 14px;
    margin-bottom: 10px;
  }

  .homePage .hero__cta{
    margin-top: 10px;
  }
}
