.home-page {
  /* A warm off-white keeps the page calm without blending into white content blocks. */
  background: var(--site-page-bg);
}

.home-hero-copy {
  max-width: 680px;
  z-index: 2;
  align-self: center;
}

.home-hero-copy .intro {
  margin: 0;
}

html[lang="bg"] [data-home-copy="home.heroOneTitle"],
html[lang="bg"] [data-home-copy="home.heroTwoTitle"] {
  white-space: pre-line;
}

.home-hero-actions {
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.home-hero-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-position: center;
}

.home-faq-list {
  width: 100%;
  padding-inline-start: clamp(var(--space-5), 3vw, var(--space-7));
}
.home-story-section--partner { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }

/* The dashboard illustration is intentionally wider than the shared 3:2 visual frame. */
.home-story-section--partner .ui-marketing-visual { background: transparent; }
.home-story-section--partner .ui-marketing-visual img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.home-story-section .site-inline-link {
  margin-top: var(--marketing-action-gap);
  color: var(--app-text);
  font-size: var(--type-meta);
  font-weight: var(--font-weight-bold);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-story-section .site-inline-link:hover,
.home-story-section .site-inline-link:focus-visible { color: var(--color-champagne-strong); }

.home-evidence {
  background: var(--marketing-band-blue);
}

.home-evidence__heading {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.home-evidence__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-evidence__grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 150px;
  padding: 0 clamp(var(--space-5), 4vw, 56px);
  text-align: center;
}

.home-evidence__grid article + article { border-left: 1px solid rgba(17, 35, 59, .13); }

.home-evidence__grid strong {
  display: block;
  color: var(--color-champagne-strong);
  font-family: var(--font-editorial);
  font-size: var(--type-evidence-display);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1;
}

.home-evidence.has-evidence-animation .home-evidence__grid article:nth-child(2) strong {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms ease-out 110ms, transform 360ms ease-out 110ms;
}

.home-evidence.is-evidence-animated .home-evidence__grid article:nth-child(2) strong {
  opacity: 1;
  transform: translateY(0);
}

.home-evidence__grid p {
  max-width: 26ch;
  margin: var(--space-3) 0 0;
  color: var(--app-text-secondary);
  font-size: var(--type-evidence-copy);
  line-height: var(--line-height-snug);
}

.home-evidence__grid a {
  display: inline-flex;
  margin-top: auto;
  padding-top: var(--space-5);
  color: var(--app-text-secondary);
  font-size: var(--type-meta);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.home-evidence__grid a:hover,
.home-evidence__grid a:focus-visible { color: var(--color-champagne-strong); }

.home-benefits {
  background: var(--marketing-band-champagne);
  border: 0;
  border-radius: 0;
}

.home-benefits__heading { max-width: 38rem; margin-inline: auto; text-align: center; }

/* Two product highlights share the same cover element. The carousel changes
   only the content/art direction, never the surrounding page layout. */
.home-hero-carousel {
  --home-hero-min-height: clamp(560px, 35vw, 620px);
  --site-cover-overlay: linear-gradient(90deg, rgba(3, 15, 30, .99) 0%, rgba(3, 15, 30, .95) 29%, rgba(3, 15, 30, .8) 43%, rgba(3, 15, 30, .42) 61%, rgba(3, 15, 30, .16) 82%, rgba(3, 15, 30, .1) 100%);
  position: relative;
  min-height: var(--home-hero-min-height);
  overflow: hidden;
}

.home-hero-carousel .home-hero {
  position: absolute;
  inset: 0;
  min-height: var(--home-hero-min-height);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}

.home-hero-carousel .home-hero.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 700ms ease;
}

.home-hero-controls {
  position: absolute;
  z-index: 3;
  bottom: calc(var(--space-6) - 1px);
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}

.home-hero-indicators { display: flex; align-items: center; }

.home-hero-indicator {
  position: relative;
  display: inline-grid;
  width: var(--site-touch-target-size);
  height: var(--site-touch-target-size);
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-hero-indicator::before {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  content: "";
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.home-hero-indicator.is-active,
.home-hero-indicator:hover,
.home-hero-indicator:focus-visible { outline: 0; }
.home-hero-indicator.is-active::before,
.home-hero-indicator:hover::before,
.home-hero-indicator:focus-visible::before {
  border-color: var(--color-champagne);
  background: var(--color-champagne);
  transform: scale(1.16);
}
.home-hero-indicator:focus-visible::after {
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
}

.home-hero-arrow {
  appearance: none;
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-grid;
  width: var(--site-touch-target-size);
  height: var(--site-touch-target-size);
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  background-color: var(--app-accent-strong);
  background-image: none;
  color: var(--color-text-inverse);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-hero-arrow:hover {
    border-color: var(--color-champagne);
    background-color: #0c2c4a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
  }
}

.home-hero-arrow--previous {
  left: max(12px, calc((100% - var(--public-content-max-width)) / 2 - 52px));
}

.home-hero-arrow--next {
  right: max(12px, calc((100% - var(--public-content-max-width)) / 2 - 52px));
}

.home-hero-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-hero-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-carousel .home-hero { transition: none; }
}

/* Home uses the same full-bleed cover treatment as Security. The product
   image stays present, but it becomes part of the cover rather than a second,
   rounded visual card next to the copy. */
.home-hero {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #061426;
  box-shadow: none;
}

.home-hero .site-visual-cover-inner {
  box-sizing: border-box;
  position: static;
  grid-template-columns: minmax(0, 680px) minmax(0, 1fr);
  gap: clamp(var(--space-7), 5vw, 72px);
  min-height: var(--home-hero-min-height);
}

.home-hero::before {
  z-index: 1;
  border-radius: 0;
  background: var(--site-cover-overlay);
}

.home-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  max-width: none;
}

/* At tablet widths the side arrows would otherwise overlap the copy. Keep
   every carousel control in the clear lower control area instead. */
@media (min-width: 721px) and (max-width: 1120px) {
  .home-hero-carousel { --home-hero-min-height: 640px; }
  .home-hero .site-visual-cover-inner { grid-template-columns: minmax(0, 1fr); }
  .home-hero-copy { width: min(100%, 42rem); max-width: none; }
  .home-hero-copy h1 { font-size: clamp(2.45rem, 5.2vw, 3.25rem); }
  .home-hero-copy .intro { max-width: 44ch; }

  .home-hero-arrow {
    top: auto;
    bottom: var(--space-6);
    transform: none;
  }

  .home-hero-arrow--previous {
    right: calc(50% + 78px);
    left: auto;
  }

  .home-hero-arrow--next {
    right: auto;
    left: calc(50% + 78px);
  }
}

@media (max-width: 720px) {
  .hero { scroll-margin-top: 88px; }

  .home-story-section,
  .home-story-section--partner { grid-template-columns: 1fr; }
  .home-story-section--partner .home-story-section__copy { order: 2; }
  .home-evidence__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .home-evidence__grid article { padding: 0; }
  .home-evidence__grid article + article { padding-top: var(--space-6); border-top: 1px solid rgba(17, 35, 59, .13); border-left: 0; }
  .home-faq-list { padding-inline-start: 0; }

  /* A mobile landing view is a complete first screen: the summary begins
     after the cover instead of peeking in below the carousel. */
  .home-hero-carousel { --home-hero-min-height: max(580px, calc(100svh - 64px)); }
  .home-hero-controls { bottom: calc(var(--space-5) - 4px); }
  .home-hero-arrow {
    top: auto;
    bottom: calc(var(--space-5) - 4px);
    transform: none;
  }
  .home-hero-arrow--previous { right: calc(50% + 78px); left: auto; }
  .home-hero-arrow--next { right: auto; left: calc(50% + 78px); }

  .home-hero .site-visual-cover-inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }

  .home-hero-visual { inset: 0; opacity: .62; }
  .home-hero::before { background: linear-gradient(90deg, rgba(3, 15, 30, .98), rgba(3, 15, 30, .74)); }
}

@media (max-width: 390px) {
  .home-hero .site-visual-cover-inner { padding-inline: var(--space-5); }
}
