/* Guisera — the homepage hero.
 *
 * LIGHT. The previous hero was near-black edge to edge, which read as a security
 * product rather than a creative one. This is white and airy, with blue doing the
 * work and colour used as accent rather than atmosphere.
 *
 * It has to look finished in four states, because the admin controls the media:
 *   no media          -> a clean typographic hero on white with a soft blue wash
 *   one image         -> the same layout with the picture in the frame
 *   one video         -> ditto, playing muted and looping
 *   several           -> the frame becomes a slideshow
 * Nothing here assumes media exists.
 *
 * Loaded after home.css, and deliberately overrides the dark `.h-hero` rules that
 * remain there for anything still using them.
 */

.hero {
  position: relative;
  background: #fff;
  padding: 76px 0 84px;
  overflow: hidden;
}

/* Soft colour, not a dark field. Two low-opacity pools well away from the text so
   the headline always sits on near-white. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 560px; height: 560px;
  top: -280px; left: -180px;
  background: #cfe0ff;
  opacity: .75;
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -300px; right: -160px;
  background: #d9f2fb;
  opacity: .8;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

/* ---- copy ---- */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(37px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.032em;
  color: #0b1220;
}
.hero h1 .accent {
  /* Blue, not the full violet-cyan sweep: on white a three-stop gradient reads as
     decoration, while a tight blue pair still lifts the line. */
  background: linear-gradient(100deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 20px 0 0;
  font-size: 17.5px;
  line-height: 1.66;
  color: #475569;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.hero-btn-primary {
  background: linear-gradient(100deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(37, 99, 235, .7);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .85);
}
.hero-btn-quiet {
  background: #fff;
  color: #0b1220;
  border-color: #dbe2ee;
}
.hero-btn-quiet:hover { border-color: #2563eb; color: #1d4ed8; transform: translateY(-2px); }

.hero-note { margin-top: 18px; font-size: 13.4px; color: #64748b; }
.hero-note strong { color: #0b1220; font-weight: 650; }

/* ---- the frame ---- */
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3.15;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, #eff5ff, #e6f7fd);
  border: 1px solid #e2e9f5;
  box-shadow: 0 30px 70px -34px rgba(15, 34, 78, .35);
}

/* Media state: slides stack and cross-fade. Only one is visible at a time, so a
   single slide simply never changes. */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.is-on { opacity: 1; }
.hero-slide img,
.hero-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Scrim, so a caption stays readable over a picture nobody vetted. Its strength
   is set per slide by the admin. */
.hero-slide .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 32, .05), rgba(8, 15, 32, .55));
}
.hero-caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.hero-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-on { background: #fff; width: 20px; border-radius: 999px; }

/* No-media state: a calm illustrative panel rather than an empty box. */
.hero-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.hero-rings { position: relative; width: 58%; aspect-ratio: 1; }
.hero-rings span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, .28);
  animation: hero-breathe 4s ease-in-out infinite;
}
.hero-rings span:nth-child(2) { inset: 15%; border-color: rgba(14, 165, 233, .3); animation-delay: .6s; }
.hero-rings span:nth-child(3) { inset: 30%; border-color: rgba(37, 99, 235, .34); animation-delay: 1.2s; }
.hero-rings span:nth-child(4) {
  inset: 43%;
  border: none;
  background: linear-gradient(120deg, #2563eb, #0ea5e9);
  opacity: .92;
  animation-delay: 1.8s;
}
@keyframes hero-breathe {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.05); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rings span { animation: none; }
  .hero-slide { transition: none; }
}

.hero-tag {
  position: absolute;
  padding: 8px 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4eaf5;
  box-shadow: 0 8px 22px -12px rgba(15, 34, 78, .4);
  font-size: 12.4px;
  font-weight: 650;
  color: #0b1220;
  white-space: nowrap;
  z-index: 2;
}

/* ---- trust row, light ---- */
.hero-trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid #eef1f7;
  background: #fbfcfe;
}
.hero-trust-inner {
  max-width: 1180px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  text-align: center;
}
.hero-trust .val {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #0b1220;
}
.hero-trust .lab { font-size: 12.6px; color: #64748b; margin-top: 3px; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 720px) {
  .hero { padding: 54px 0 62px; }
  .hero-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-actions .hero-btn { flex: 1 1 auto; justify-content: center; }
  .hero-tag { display: none; }
}
