/* Home — strong modern brand composition */

.home-page {
  --home-ink: #13284f;
  --home-line: rgba(26, 50, 104, .12);
}

/* Instant, light entrance — no IO delay on hero */
.home-page .hero-content {
  animation: homeHeroIn .55s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes homeHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Typewriter */
.home-page [data-type-line] {
  min-height: 1.15em;
  white-space: pre-wrap;
}
.home-page [data-type-line].is-typing {
  text-shadow: 0 0 0 transparent;
}
.home-page [data-type-line].is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .85em;
  margin-inline-start: .18em;
  vertical-align: -0.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-red), #ff5a63);
  box-shadow: 0 0 8px rgba(227,6,19,.35);
  animation: typeCaret .65s steps(1) infinite;
}
.home-page [data-type-line].is-done::after { display: none; }
.home-page [data-type-line].is-done {
  animation: typeSettle .35s ease both;
}
@keyframes typeSettle {
  from { filter: brightness(1.08); }
  to { filter: none; }
}
.home-page .hero-after-type {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.home-page .hero-after-type.is-shown {
  opacity: 1;
  transform: none;
}
.home-page .hero-content.is-typed .hero-after-type.is-shown {
  opacity: 1;
}
@keyframes typeCaret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* ===== HERO ===== */
.home-page .hero-home {
  min-height: min(88vh, 760px);
  display: grid;
  align-items: start;
  padding-top: 0;
}
.home-page .hero-media {
  animation: none;
  transform: none;
  background:
    linear-gradient(105deg, rgba(248,250,253,.96) 0%, rgba(244,247,252,.78) 38%, rgba(20,40,80,.28) 100%),
    linear-gradient(180deg, rgba(19,40,79,.18), rgba(19,40,79,.42)),
    url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?auto=format&fit=crop&w=1800&q=72') center/cover no-repeat;
}
.home-page .hero-media::after {
  height: 120px;
  background: linear-gradient(180deg, transparent, #f4f7fb);
}
.home-page .hero-stage {
  position: relative;
  z-index: 1;
  /* Drop brand + copy well below the banner top / sticky nav */
  padding: clamp(9.5rem, 18vh, 13rem) 0 3.2rem !important;
}
.home-page .hero-content {
  max-width: 680px;
  padding: 0 !important;
  margin-top: 0;
}
.home-page .hero-brand-block {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.1rem;
}
.home-page .hero-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 25%, rgba(227,6,19,.14), transparent 50%),
    linear-gradient(145deg, #fff, #eef2f9);
  border: 1px solid rgba(26,50,104,.12);
  box-shadow: 0 14px 30px rgba(19,40,79,.12);
}
.home-page .hero-brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.home-page .hero-brand-copy strong {
  display: block;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--home-ink);
  line-height: 1;
}
.home-page .hero-brand-copy small {
  display: block;
  margin-top: .28rem;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--brand-red);
}
.home-page .hero-title {
  display: grid;
  gap: .2rem;
  margin: 0 0 .75rem;
  max-width: none;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.35;
  color: var(--home-ink);
  font-weight: 800;
}
.home-page .hero-title-a,
.home-page .hero-title-b {
  display: block;
}
.home-page .hero-title-b {
  white-space: nowrap;
}
.home-page .hero-content .lead {
  margin: 0 0 1.2rem;
  max-width: 34rem;
  min-height: 4.8em;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 650;
  color: #000;
  text-shadow: none;
}
.home-page .hero-content .lead.is-typing::after {
  vertical-align: -0.12em;
}
.home-page .hero-actions {
  gap: .65rem;
}
.home-page .hero-actions .btn-solid {
  box-shadow: 0 12px 26px rgba(31,61,122,.22);
}
.home-page .hero-actions .btn-ghost {
  background: rgba(255,255,255,.72);
  border-color: rgba(26,50,104,.18);
}

/* ===== TRUST ===== */
.home-page .home-trust {
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
  padding-bottom: .2rem;
}
.home-page .trust-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(26,50,104,.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(19,40,79,.08);
}
.home-page .trust-modern .trust-item {
  padding: 1.15rem 1.15rem 1.2rem;
  border-inline-start: 1px solid rgba(26,50,104,.08);
  background: linear-gradient(180deg, #fff, #f7f9fc);
}
.home-page .trust-modern .trust-item:first-child {
  border-inline-start: 0;
}
.home-page .trust-modern .trust-item::before { display: none; }
.home-page .trust-modern em {
  display: block;
  margin-bottom: .4rem;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand-red);
}
.home-page .trust-modern strong {
  display: block;
  margin-bottom: .3rem;
  font-size: 1rem;
  color: var(--home-ink);
}
.home-page .trust-modern span {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ===== SECTIONS ===== */
.home-page .section {
  padding: 2.4rem 0;
}
.home-page .section-kicker {
  color: var(--brand-blue);
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
}
.home-page .section-head h2,
.home-page .section-head-center h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  color: var(--home-ink);
  letter-spacing: -.01em;
}
.home-page .section-head p,
.home-page .section-head-center p {
  font-size: .92rem;
  max-width: 34rem;
}

/* Categories */
.home-page .cat-grid {
  gap: .85rem;
}
.home-page .cat-tile {
  min-height: 128px;
  padding: 1.15rem 1.1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(26,50,104,.1);
  background:
    linear-gradient(145deg, #fff 0%, #f3f6fb 100%);
  box-shadow: 0 8px 20px rgba(19,40,79,.04);
  display: grid;
  align-content: end;
  gap: .25rem;
  position: relative;
  overflow: hidden;
}
.home-page .cat-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-red), var(--brand-blue));
  opacity: .85;
}
html[dir="rtl"] .home-page .cat-tile::before {
  inset: 0 0 0 auto;
}
.home-page .cat-index {
  position: absolute;
  top: .9rem;
  left: 1rem;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(26,50,104,.28);
}
html[dir="rtl"] .home-page .cat-index {
  left: auto;
  right: 1rem;
}
.home-page .cat-tile strong {
  font-size: 1.12rem;
  color: var(--home-ink);
}
.home-page .cat-tile span {
  font-size: .86rem;
  color: var(--muted);
}
.home-page .cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(31,61,122,.22);
  box-shadow: 0 16px 32px rgba(19,40,79,.1);
}

/* Products / news */
.home-page .home-featured { padding-top: 1.2rem; }
.home-page .product-card,
.home-page .news-card {
  border: 1px solid rgba(26,50,104,.09);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(19,40,79,.045);
}
.home-page .product-card:hover,
.home-page .news-card:hover {
  border-color: rgba(31,61,122,.18);
  box-shadow: 0 16px 34px rgba(19,40,79,.1);
}

/* Quality band — brand navy plane */
.home-page .home-quality {
  margin: .6rem 0;
  padding: 2.4rem 0;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(227,6,19,.18), transparent 55%),
    linear-gradient(135deg, #152a58 0%, #1a3268 55%, #243f78 100%);
  color: #eef3ff;
  position: relative;
  overflow: hidden;
}
.home-page .home-quality::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 80% 20%, black 10%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.home-page .home-quality .quality-grid {
  position: relative;
  z-index: 1;
  align-items: center;
}
.home-page .home-quality .quality-copy {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-page .home-quality .section-kicker {
  color: #ff8a92;
}
.home-page .home-quality h2 {
  color: #fff;
  margin: 0 0 .65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}
.home-page .home-quality p {
  color: rgba(226, 234, 252, .84);
  font-size: .95rem;
  line-height: 1.8;
  margin: 0;
}
.home-page .home-quality .btn-solid {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.home-page .home-quality .btn-solid:hover {
  background: #f4f7ff;
}
.home-page .quality-visual {
  display: grid;
  place-items: center;
  padding: .25rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-page .quality-seal {
  width: min(200px, 68%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #f4f7fc 70%, #e8eef8 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 0 0 10px rgba(255,255,255,.06),
    0 22px 44px rgba(0,0,0,.22);
  animation: qualityFloat 4s ease-in-out infinite;
}
.home-page .quality-seal img {
  width: 78%;
  height: auto;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(19,40,79,.12));
}
@keyframes qualityFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 10px rgba(255,255,255,.06),
      0 18px 36px rgba(0,0,0,.2);
  }
  50% {
    transform: translateY(-14px) scale(1.03);
    box-shadow:
      0 0 0 14px rgba(255,255,255,.08),
      0 28px 48px rgba(0,0,0,.28);
  }
}

/* Process */
.home-page .process-grid { gap: .85rem; }
.home-page .process-step {
  padding: 1.25rem 1.1rem 1.3rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(26,50,104,.1);
  background: linear-gradient(180deg, #fff, #f6f8fc);
  box-shadow: 0 8px 20px rgba(19,40,79,.04);
  position: relative;
  overflow: hidden;
}
.home-page .process-step::before {
  content: attr(data-step);
  position: absolute;
  top: .35rem;
  left: .7rem;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26,50,104,.08);
}
html[dir="rtl"] .home-page .process-step::before {
  left: auto;
  right: .7rem;
}
.home-page .process-step strong {
  display: block;
  position: relative;
  margin: .35rem 0 .45rem;
  font-size: 1.02rem;
  color: var(--home-ink);
}
.home-page .process-step p {
  position: relative;
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}
.home-page .process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(31,61,122,.2);
  box-shadow: 0 14px 28px rgba(19,40,79,.09);
}

/* Team / partners / faq on home */
.home-page .team-card,
.home-page .partner-item {
  border: 1px solid rgba(26,50,104,.09);
  background: #fff;
  box-shadow: 0 8px 18px rgba(19,40,79,.04);
}
.home-page .faq-list {
  max-width: 760px;
  margin-inline: auto;
}
.home-page .faq-item {
  border-bottom: 1px solid rgba(26,50,104,.1);
}
.home-page .faq-item summary {
  font-weight: 800;
  color: var(--home-ink);
}
.home-page .cta-band {
  margin-top: .4rem;
}

@media (max-width: 980px) {
  .home-page .hero-home {
    min-height: min(78vh, 640px);
    padding-top: 0;
  }
  .home-page .hero-stage { padding: 8rem 0 2.4rem !important; }
  .home-page .hero-content { margin-top: 0; padding: 0 !important; }
  .home-page .hero-brand-mark { width: 56px; height: 56px; border-radius: 16px; }
  .home-page .hero-brand-mark img { width: 34px; height: 34px; }
  .home-page .hero-title { font-size: clamp(1.25rem, 5.2vw, 1.7rem); }
  .home-page .trust-modern {
    grid-template-columns: 1fr;
  }
  .home-page .trust-modern .trust-item {
    border-inline-start: 0;
    border-top: 1px solid rgba(26,50,104,.08);
  }
  .home-page .trust-modern .trust-item:first-child { border-top: 0; }
  .home-page .home-trust { margin-top: -1rem; }
  .home-page .home-quality { padding: 1.9rem 0; }
  .home-page .quality-seal {
    width: min(160px, 52%);
    margin-top: .35rem;
    padding: 1.1rem;
  }
}

@media (max-width: 420px) {
  .home-page .hero-title-b { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-content,
  .home-page .quality-seal { animation: none !important; }
  .home-page .hero-after-type { opacity: 1; transform: none; transition: none; }
  .home-page [data-type-line].is-typing::after { display: none; }
  .home-page .cat-tile:hover,
  .home-page .process-step:hover { transform: none !important; }
}
