:root {
  --navy: #0f2c4c;
  --ink: #1d2939;
  --gray: #6e7686;
  --red: #e63946;

  /* Left-panel gradient straight from the Figma fill */
  --hero-gradient: linear-gradient(
    232.46deg,
    #0f2c4c 13.56%,
    #266bb7 50.7%,
    #62adff 86.43%
  );
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Almarai", system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─────────────────────────  Page layout  ───────────────────────── */
.page {
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────  Left: hero  ───────────────────────── */
.hero {
  position: relative;
  flex: 0 0 54.65%; /* 787 / 1440 */
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84.9%; /* 668 / 787 */
  height: auto;
  max-height: 95.4%; /* 976.6 / 1024 */
  object-fit: contain;
  object-position: bottom;
}

/* Portrait photo is for narrow screens only */
.hero__photo--mobile {
  display: none;
}

/* Floating department tags ----------------------------------------- */
.tags {
  position: absolute;
  inset: 0;
}

.tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 54px;
  padding: 18px 16px;
  border-radius: 80px;
  /* Exact Figma glass values */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  /* Subtle frost: light drop shadow + luminous inner highlight */
  box-shadow:
    0 3px 10px rgba(10, 30, 55, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.tag__text {
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

.tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 90px;
  background: #fff;
  flex: none;
}

/* ─────────────────────────  Right: brand  ───────────────────────── */
.brand {
  flex: 1 1 45.35%; /* 653 / 1440 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}

.brand__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
  width: 305px;
  max-width: 100%;
}

.brand__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 53px;
  width: 100%;
}

.brand__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.brand__logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.brand__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}

.brand__soon-ar {
  margin: 0;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.3;
  color: var(--navy);
}

.brand__soon-en {
  margin: 0;
  font-family: "Allison", cursive;
  font-size: 90px;
  line-height: 0.42;
  color: var(--gray);
}

/* Hotline ---------------------------------------------------------- */
.hotline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 246.79px;
  max-width: 100%;
}

.hotline__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13.79px;
  width: 100%;
  line-height: 1.5;
  white-space: nowrap;
  text-transform: capitalize;
}

.hotline__num {
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
}

.hotline__label {
  font-weight: 700;
  font-size: 22.8px;
  color: var(--gray);
}

.hotline__pulse {
  display: block;
  width: 100%;
  height: 27.85px;
}

/* Address ---------------------------------------------------------- */
.address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  max-width: 280px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--gray);
  text-align: center;
}

.address__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--red);
}

/* Socials ---------------------------------------------------------- */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
}

.social {
  display: inline-flex;
  width: 28.57px;
  height: 28.57px;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social svg {
  width: 100%;
  height: 100%;
}

.social:hover,
.social:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

/* ─────────────────────────  Responsive  ───────────────────────── */
@media (max-width: 860px) {
  .page {
    flex-direction: column;
  }

  .brand {
    order: -1; /* branding first on small screens */
    padding: 48px 24px;
  }

  /* Stack the hero: centered chip grid on top, photo below */
  .hero {
    flex: 1 1 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Chips become a centered, evenly-spaced wrapped grid, beneath the photo */
  .tags {
    order: 2;
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 24px 16px 32px;
  }

  .tag {
    position: static;
    left: auto;
    top: auto;
  }

  /* Swap to the portrait photo, centered above the chips */
  .hero__photo--desktop {
    display: none;
  }

  .hero__photo--mobile {
    display: block;
    order: 1;
    position: static;
    transform: none;
    width: min(80%, 380px);
    height: auto;
    max-height: none;
    margin-top: 24px;
    object-fit: contain;
  }
}

/* ─────────────────────────  Lead-capture modal  ───────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 44, 76, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade 0.25s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(10, 30, 55, 0.35);
  animation: modal-pop 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.1);
  font-family: "Almarai", system-ui, sans-serif;
}

.modal__close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: #f1f3f7;
  color: var(--ink);
}

.modal__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 8px;
}

.modal__title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
}

.modal__desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

.lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #f7f9fc;
  border: 1.5px solid #dfe5ee;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field__input::placeholder {
  color: #aab2c0;
}

.field__input:focus {
  outline: none;
  background: #fff;
  border-color: #266bb7;
  box-shadow: 0 0 0 3px rgba(38, 107, 183, 0.15);
}

.field__input.is-invalid {
  border-color: var(--red);
  background: #fff5f5;
}

.field__error {
  min-height: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
}

.lead__submit {
  margin-top: 6px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--hero-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 20px rgba(38, 107, 183, 0.35);
}

.lead__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(38, 107, 183, 0.45);
}

.lead__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .brand__soon-ar {
    font-size: 52px;
  }
  .brand__soon-en {
    font-size: 54px;
  }
  .tags {
    gap: 10px;
  }
  .tag {
    height: 46px;
    padding: 12px 14px;
  }
  .tag__text {
    font-size: 14px;
  }
}
