@font-face {
  font-family: "A Jannat LT";
  font-style: normal;
  font-weight: 400;
  src: local("A Jannat LT Regular"), local("A Jannat LT"), local("AJannatLT");
}

@font-face {
  font-family: "A Jannat LT";
  font-style: normal;
  font-weight: 700;
  src: local("A Jannat LT Bold"), local("AJannatLT-Bold");
}

:root {
  --cementix-blue: #0e6fb4;
  --cementix-sky: #138bcc;
  --cementix-mist: #9fcad7;
  --cementix-gray: #898989;
  --cementix-ash: #d0d0d0;
  --ink: #252f36;
  --muted: #65747d;
  --line: #dce6eb;
  --paper: #ffffff;
  --page: #f5f8fa;
  --soft-blue: #e8f3f8;
  --font-brand: "A Jannat LT", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-brand);
  line-height: 1.75;
  background:
    radial-gradient(circle at top left, rgba(159, 202, 215, 0.34), transparent 360px),
    linear-gradient(180deg, #ffffff 0%, var(--page) 48%, #eef4f7 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--cementix-blue), var(--cementix-sky), var(--cementix-gray));
  z-index: 10;
}

.wrap {
  width: min(1080px, calc(100% - 36px));
  margin: 36px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(137, 137, 137, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(14, 111, 180, 0.12);
}

header {
  position: relative;
  isolation: isolate;
  padding: 34px 46px 42px;
  background:
    linear-gradient(135deg, rgba(14, 111, 180, 0.08), rgba(159, 202, 215, 0.1) 42%, rgba(255, 255, 255, 0.96)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

header::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -260px;
  width: 720px;
  height: 300px;
  background: url("../assets/cementix-wave.png") center / contain no-repeat;
  opacity: 0.13;
  z-index: -1;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.brand-logo {
  display: block;
  width: 156px;
  height: auto;
}

.app-identity {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.app-icon {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(14, 111, 180, 0.2);
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  color: var(--cementix-blue);
  background: rgba(14, 111, 180, 0.08);
  border: 1px solid rgba(14, 111, 180, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cementix-gray);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: break-word;
}

header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

main {
  padding: 32px 46px 42px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 26px;
  padding: 4px;
  background: #eef4f7;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 112px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch button:hover {
  color: var(--cementix-blue);
}

.lang-switch button.active {
  background: var(--paper);
  color: var(--cementix-blue);
  box-shadow: 0 8px 22px rgba(14, 111, 180, 0.14);
}

section[lang] {
  max-width: 860px;
  padding: 2px 0 10px;
  min-width: 0;
}

section[lang] > h2:first-child {
  margin-top: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

h2::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 24px;
  background: var(--cementix-blue);
  border-radius: 999px;
}

h3 {
  margin: 28px 0 8px;
  color: var(--cementix-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

p,
li {
  color: #34424a;
  font-size: 16px;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 14px;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

ul {
  margin: 12px 0 18px;
  padding-inline-start: 22px;
}

li {
  margin-bottom: 8px;
  padding-inline-start: 2px;
}

li::marker {
  color: var(--cementix-blue);
}

a {
  color: var(--cementix-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 111, 180, 0.35);
}

a:hover {
  color: var(--cementix-sky);
  border-bottom-color: currentColor;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-brand);
}

[dir="rtl"] .brand-row {
  flex-direction: row-reverse;
}

[dir="rtl"] h2 {
  flex-direction: row-reverse;
}

[dir="rtl"] ul {
  padding-right: 24px;
  padding-left: 0;
}

[hidden] {
  display: none !important;
}

footer {
  position: relative;
  overflow: hidden;
  padding: 24px 46px 30px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(232, 243, 248, 0.75)),
    #ffffff;
}

footer::before {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -92px;
  width: 420px;
  height: 170px;
  background: url("../assets/cementix-wave-pattern.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.redirect-card {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(14, 111, 180, 0.12);
}

.redirect-card .app-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
}

.redirect-card p {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .wrap {
    width: auto;
    max-width: none;
    margin: 20px 10px;
    border-radius: 14px;
  }

  header {
    padding: 26px 22px 32px;
  }

  header::after {
    top: -34px;
    right: -330px;
    width: 620px;
    height: 250px;
    opacity: 0.11;
  }

  .brand-row {
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    min-width: 0;
  }

  .brand-logo {
    width: 138px;
  }

  .app-icon {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .hero-copy,
  section[lang] {
    width: 100%;
    max-width: 100%;
  }

  .policy-badge {
    white-space: normal;
  }

  header h1 {
    font-size: 30px;
    max-width: 100%;
  }

  main {
    padding: 24px 22px 30px;
    overflow: hidden;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 17px;
  }

  p,
  li {
    font-size: 15px;
  }

  footer {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: 370px;
    max-width: calc(100% - 20px);
    margin-right: 10px;
    margin-left: 10px;
  }

  html[dir="rtl"] .wrap {
    margin-right: auto;
    margin-left: 10px;
  }
}
