.home-page {
  background: #fcfbfd;
  color: #2e0b49;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.home-wrap { width: min(95%, 1480px); margin-inline: auto; }
.home-header { background: transparent; border: 0; padding: 0; }
.masthead {
  min-height: 96px;
  border-bottom: 1px solid #d8b9fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: clamp(8px, 1.6vw, 25px);
  gap: 16px;
}
.store-name { text-align: center; line-height: 1.05; }
.store-name strong { font-size: clamp(2rem, 3.4vw, 3.35rem); font-weight: 900; }
.store-name span { color: #2e0b49; font-size: clamp(1rem, 1.55vw, 1.55rem); margin-top: 6px; }
.portal-name { display: flex; align-items: center; gap: 12px; font-size: clamp(.95rem, 1.5vw, 1.4rem); font-weight: 800; }
.portal-name span { color: inherit; }
.home-tools { display: flex; align-items: center; gap: 14px; }
.home-tools .theme-toggle { color: #6417a4; }
.home-page svg { display: block; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.portal-name svg { width: clamp(24px, 2.3vw, 36px); color: #7900ff; }
.home-content { padding: 0 0 clamp(24px, 4vw, 64px); }
.hero { position: relative; isolation: isolate; margin-top: 26px; overflow: hidden; }
.hero-inner { min-height: clamp(430px, 40vw, 640px); display: flex; align-items: start; }
.hero-copy { width: 48%; padding: clamp(30px, 3.4vw, 58px) clamp(9px, 2.6vw, 42px) 0 0; }
.greeting { margin: 0 0 clamp(16px, 2vw, 28px); color: #7100e5; font-size: clamp(1.35rem, 2.65vw, 2.9rem); font-weight: 800; }
.hero h1 { color: #2e094b; font-size: clamp(2.65rem, 6.05vw, 6.2rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.12; margin: 0; }
.hero h1 span { color: #6d04df; }
.hero-description { margin: clamp(17px, 2.15vw, 32px) 0 0; color: #575065; font-size: clamp(1rem, 1.76vw, 1.75rem); font-weight: 650; }
.hero-description::after { content: ""; display: block; width: clamp(55px, 7vw, 108px); height: 5px; margin-top: clamp(18px, 2.3vw, 36px); border-radius: 15px; background: linear-gradient(90deg, #c983ff, #6500e8); }
.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 auto auto 0;
  width: min(57%, 970px);
  aspect-ratio: 870 / 625;
  overflow: hidden;
  mask-image: linear-gradient(to right, #000 79%, transparent 100%);
}
.hero-visual img { position: absolute; left: 0; top: -19.68%; width: 176.55%; height: auto; max-width: none; }
.hero-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(transparent, #fcfbfd); }

.home-links { position: relative; display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(14px, 1.5vw, 24px); }
.service-link {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.65vw, 26px);
  padding: clamp(18px, 2.55vw, 42px) clamp(18px, 2vw, 33px);
  min-height: clamp(160px, 14vw, 215px);
  border-radius: clamp(18px, 2vw, 32px);
  border: 1px solid #bc85f2;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.service-link:hover { transform: translateY(-3px); }
.service-link:focus-visible { outline: 3px solid #7813e6; outline-offset: 5px; }
.service-primary {
  color: #fff;
  background: radial-gradient(ellipse at 32% -90%, #cf65f5 12%, transparent 70%), linear-gradient(155deg, #8528c5, #390c65 82%);
  box-shadow: 0 15px 22px #681ca54a, inset 0 1px 0 #c47bf1;
}
.service-secondary { color: #2e094b; background: linear-gradient(150deg, #fbf9fd, #f3eef8); box-shadow: 0 12px 17px #6835a325; }
.service-copy { display: grid; gap: 9px; }
.service-copy strong { font-size: clamp(1.35rem, 2.3vw, 2.4rem); font-weight: 850; line-height: 1.22; }
.service-copy > span { font-size: clamp(.94rem, 1.43vw, 1.4rem); line-height: 1.5; }
.service-secondary .service-copy > span { color: #51495e; }
.service-icon, .service-action { display: grid; place-items: center; }
.service-icon { width: clamp(62px, 7.35vw, 118px); aspect-ratio: 1; border-radius: 23%; }
.service-icon svg { width: 61%; }
.service-primary .service-icon { background: linear-gradient(145deg, #ffffff42, #ffffff1c); box-shadow: inset 0 1px 0 #ffffff42; }
.service-secondary .service-icon, .service-secondary .service-action { color: #7500eb; background: #e8d2fa; }
.service-action { width: clamp(36px, 4.6vw, 70px); aspect-ratio: 1.12; border-radius: 25%; }
.service-action svg { width: 52%; }
.service-primary .service-action { background: #fff; color: #6802d4; }

@media (max-width: 760px) {
  .masthead { min-height: 76px; }
  .hero { margin-top: 10px; }
  .hero-inner { min-height: 0; display: block; }
  .hero-copy { width: 100%; padding: 24px 12px 14px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.6rem); }
  .hero-visual { position: relative; margin-top: -8px; width: min(100%, 560px); mask-image: none; order: 2; }
  .hero { display: flex; flex-direction: column; }
  .home-links { width: min(93%, 560px); grid-template-columns: 1fr; gap: 14px; margin-top: 4px; }
  .service-link { min-height: 125px; }
}
@media (max-width: 530px) {
  .home-tools { flex-wrap: wrap; gap: 3px 10px; }
  .home-tools .theme-toggle { min-height: 32px; padding-block: 3px; }
}
[data-theme="dark"] .home-page { color: #f7eaff; background: #180e25; }
[data-theme="dark"] .masthead { border-color: #5e3c70; }
[data-theme="dark"] .store-name span, [data-theme="dark"] .hero h1 { color: #f9edff; }
[data-theme="dark"] .home-tools .theme-toggle, [data-theme="dark"] .greeting, [data-theme="dark"] .hero h1 span { color: #d9a1ff; }
[data-theme="dark"] .hero-description, [data-theme="dark"] .service-secondary .service-copy > span { color: #dfcde9; }
[data-theme="dark"] .hero-visual::after { background: linear-gradient(transparent, #180e25); }
[data-theme="dark"] .service-secondary { color: #f8ebff; background: linear-gradient(145deg, #392747, #281a36); border-color: #71508a; }

@media (prefers-reduced-motion: reduce) { .service-link { transition: none; } }
