@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-extra-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #2b130b;
  --ink-soft: #6f5a4c;
  --paper: #fffaf0;
  --paper-strong: #fffdf8;
  --gold: #e6a51a;
  --gold-light: #ffc64b;
  --gold-dark: #9e6510;
  --line: rgba(111, 76, 39, 0.18);
  --shadow: 0 28px 80px rgba(65, 31, 7, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ead8b8;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 240, 0.82), rgba(255, 247, 231, 0.9)),
    url("/assets/site-background.jpg") center / cover fixed;
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.smart-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-panel {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-icon {
  width: 108px;
  height: 108px;
  border-radius: 27px;
  object-fit: contain;
  background: #fff7e6;
  box-shadow: 0 12px 30px rgba(72, 35, 8, 0.17);
}

.auto-redirect {
  margin-top: 18px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(169, 111, 13, 0.2);
  border-radius: 14px;
  color: #67452d;
  background: rgba(255, 243, 208, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.auto-redirect[hidden] {
  display: none;
}

.auto-redirect bdi {
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 800;
}

.auto-redirect button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  cursor: pointer;
}

.auto-redirect.is-cancelled {
  color: #6f5a4c;
  background: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 800;
}

.hotline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.hotline span {
  color: #169b63;
  font-size: 11px;
}

.platform-status {
  width: fit-content;
  margin: 0 0 15px;
  padding: 8px 13px;
  border: 1px solid rgba(169, 111, 13, 0.2);
  border-radius: 999px;
  color: #815615;
  background: #fff3d0;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.benefits {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.benefits span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #67452d;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 12px;
}

.button {
  min-height: 58px;
  padding: 15px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.store-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(230, 165, 26, 0.45);
  outline-offset: 3px;
}

.button-primary {
  color: #2d1807;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 13px 28px rgba(194, 127, 8, 0.27);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.button-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 19px;
}

.store-section {
  margin-top: 27px;
}

.store-section > p {
  margin: 0 0 11px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.store-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.store-link {
  height: 45px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(37, 20, 10, 0.13);
  transition: transform 160ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
}

.store-link img {
  width: auto;
  height: 100%;
  display: block;
}

.privacy-note {
  margin: 22px 0 0;
  color: #88776a;
  font-size: 12px;
  line-height: 1.7;
}

.visual-panel {
  position: relative;
  min-height: 100%;
  background: #d6b16c;
}

.visual-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(43, 19, 11, 0.08), transparent 38%), linear-gradient(0deg, rgba(43, 19, 11, 0.4), transparent 42%);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 65% center;
}

.visual-badge {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  color: #fff;
  background: rgba(43, 19, 11, 0.72);
  box-shadow: 0 14px 35px rgba(22, 10, 4, 0.25);
  backdrop-filter: blur(12px);
}

.visual-badge strong {
  font-size: 19px;
}

.visual-badge span {
  color: #f8dba6;
  font-size: 13px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #715b49;
  font-size: 13px;
}

footer a {
  font-weight: 700;
  text-underline-offset: 3px;
}

footer a.footer-meta {
  color: #88776a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

footer a.footer-meta:hover,
footer a.footer-meta:focus-visible {
  color: #5f493a;
  text-decoration: underline;
}

footer a.footer-meta bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.noscript-card {
  position: fixed;
  z-index: 20;
  inset: 20px;
  padding: 28px;
  display: grid;
  place-content: center;
  gap: 14px;
  border-radius: 26px;
  background: var(--paper-strong);
  text-align: center;
}

.noscript-card a {
  padding: 12px 18px;
  border-radius: 12px;
  background: #f4b22d;
  text-decoration: none;
  font-weight: 800;
}

html[data-platform="desktop"] #website-action {
  display: none;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(700px, calc(100% - 24px));
    padding: 18px 0 14px;
  }

  .smart-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .content-panel {
    order: 2;
    padding: 30px 24px 32px;
  }

  .visual-panel {
    order: 1;
    min-height: 270px;
    max-height: 330px;
  }

  .visual-panel img {
    object-position: center 47%;
  }

  .visual-badge {
    right: 18px;
    bottom: 18px;
  }

  h1 {
    font-size: clamp(36px, 8vw, 52px);
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .smart-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .visual-panel {
    min-height: 225px;
    max-height: 225px;
  }

  .visual-badge {
    right: 14px;
    bottom: 14px;
    padding: 10px 13px;
    border-radius: 14px;
  }

  .visual-badge strong {
    font-size: 15px;
  }

  .content-panel {
    padding: 24px 18px 28px;
  }

  .brand-row {
    margin-bottom: 19px;
  }

  .brand-icon {
    width: 84px;
    height: 84px;
    border-radius: 21px;
  }

  .eyebrow {
    font-size: 18px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .lead {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.7;
  }

  .benefits {
    margin-top: 18px;
  }

  .auto-redirect {
    align-items: flex-start;
    font-size: 12px;
  }

  .actions {
    margin-top: 23px;
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 56px;
  }

  .store-section {
    margin-top: 22px;
  }

  .store-links {
    gap: 8px;
  }

  .store-link {
    height: 41px;
  }

  footer {
    padding: 15px 20px 20px;
    background: #fffaf0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
