@font-face {
  font-family: "Cormorant Noor";
  src: url("../fonts/cormorant-garamond/CormorantGaramond-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jakarta Noor";
  src: url("../fonts/plus-jakarta-sans/PlusJakartaSans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir Noor";
  src: url("../fonts/vazir/Vazir-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir Noor";
  src: url("../fonts/vazir/Vazir-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-950: #041944;
  --blue-900: #082d77;
  --blue-700: #105bd8;
  --blue-500: #2a82ff;
  --orange-600: #ff7a00;
  --orange-400: #ffb347;
  --cream: #fff8ee;
  --white: #ffffff;
  --ink: #0d234f;
  --muted: #61708d;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.72);
  --mx: 50vw;
  --my: 50vh;
  --font-display-en: "Cormorant Noor", Georgia, serif;
  --font-ui-en: "Jakarta Noor", Arial, sans-serif;
  --font-display-ar: "Vazir Noor", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font-ui-en);
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 122, 0, 0.24), transparent 0 23rem),
    radial-gradient(circle at 16% 18%, rgba(42, 130, 255, 0.24), transparent 0 24rem),
    radial-gradient(circle at 85% 80%, rgba(255, 179, 71, 0.27), transparent 0 25rem),
    linear-gradient(135deg, #f5fbff 0%, #eef5ff 48%, #fff4e3 100%);
}

html[lang="ar"] body {
  font-family: var(--font-display-ar);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.aurora,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  z-index: -2;
  overflow: hidden;
}

.cursor-light {
  z-index: -1;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.66), transparent 0 13rem);
  mix-blend-mode: soft-light;
}

.glow,
.orbit,
.floating-word {
  position: absolute;
  display: block;
}

.glow {
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.82;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

.glow-blue {
  width: 30rem;
  height: 30rem;
  top: -11rem;
  inset-inline-start: -8rem;
  background: rgba(16, 91, 216, 0.20);
}

.glow-orange {
  width: 32rem;
  height: 32rem;
  right: -10rem;
  bottom: -12rem;
  background: rgba(255, 122, 0, 0.24);
  animation-delay: -3s;
}

.glow-soft {
  width: 19rem;
  height: 19rem;
  left: 50%;
  top: 18%;
  background: rgba(255, 255, 255, 0.55);
  animation-delay: -6s;
}

.orbit {
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(8, 45, 119, 0.12);
  border-radius: 40% 60% 65% 35% / 45% 35% 65% 55%;
  animation: rotateShape 22s linear infinite;
}

.orbit-one {
  top: 14%;
  right: 7%;
}

.orbit-two {
  width: 13rem;
  height: 13rem;
  left: 8%;
  bottom: 12%;
  border-color: rgba(255, 122, 0, 0.20);
  animation-direction: reverse;
  animation-duration: 18s;
}

.floating-word {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: rgba(8, 45, 119, 0.74);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 1rem 3rem rgba(8, 45, 119, 0.08);
  backdrop-filter: blur(1rem);
  font-size: clamp(0.82rem, 1.3vw, 1.05rem);
  animation: drift 8s ease-in-out infinite alternate;
}

.word-one {
  top: 25%;
  left: 11%;
}

.word-two {
  top: 58%;
  right: 12%;
  animation-delay: -2s;
}

.word-three {
  bottom: 20%;
  left: 19%;
  animation-delay: -5s;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  max-width: min(72vw, 720px);
}

.brand strong {
  color: var(--blue-950);
  font-family: var(--font-display-en);
  font-size: clamp(1.38rem, 3.1vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 1rem 2.4rem rgba(8, 45, 119, 0.12);
}

html[lang="ar"] .brand strong {
  font-family: var(--font-display-ar);
  font-size: clamp(1.16rem, 2.55vw, 2.1rem);
  line-height: 1.55;
  letter-spacing: 0;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  min-width: 118px;
  padding: 0.82rem 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1.2rem 3rem rgba(8, 45, 119, 0.11);
  backdrop-filter: blur(1rem);
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(42, 130, 255, 0.26), rgba(255, 122, 0, 0.32));
  opacity: 0;
  transition: opacity 250ms ease;
}

.lang-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1.5rem 3.4rem rgba(8, 45, 119, 0.15);
}

.lang-toggle:hover::before {
  opacity: 1;
}

.lang-toggle span {
  font-weight: 800;
}

.lang-toggle svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74svh, 760px);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  isolation: isolate;
  animation: contentEnter 900ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
}

.hero-content::before {
  width: clamp(12rem, 28vw, 24rem);
  height: clamp(12rem, 28vw, 24rem);
  top: 50%;
  left: 50%;
  background: rgba(42, 130, 255, 0.14);
  transform: translate(-72%, -58%);
}

.hero-content::after {
  width: clamp(10rem, 24vw, 21rem);
  height: clamp(10rem, 24vw, 21rem);
  top: 50%;
  left: 50%;
  background: rgba(255, 122, 0, 0.16);
  transform: translate(6%, -28%);
}

.eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2.15rem, 4.2vw, 3.65rem);
  padding: 0.72rem 1.16rem;
  border: 1px solid rgba(16, 91, 216, 0.16);
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 0.9rem 2.4rem rgba(8, 45, 119, 0.07);
  backdrop-filter: blur(0.85rem);
  font-size: clamp(0.78rem, 1.4vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.main-title {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 0 clamp(2.1rem, 4vw, 3.4rem);
  color: var(--blue-950);
  font-family: var(--font-display-en);
  font-size: clamp(3.6rem, 10.8vw, 8.9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 1.25rem 3rem rgba(8, 45, 119, 0.12);
}

.main-title::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 0.18em;
  left: 28%;
  bottom: -0.24em;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.56), transparent);
  animation: underlinePulse 2.8s ease-in-out infinite;
}

html[lang="ar"] .main-title {
  max-width: 900px;
  font-family: var(--font-display-ar);
  font-size: clamp(2.9rem, 8.2vw, 6.9rem);
  line-height: 1.27;
  letter-spacing: -0.025em;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.9;
}

html[lang="ar"] .hero-text {
  max-width: 700px;
  line-height: 2.05;
}

.spark {
  position: absolute;
  z-index: 1;
  width: 0.74rem;
  height: 0.74rem;
  border-radius: 999px;
  background: var(--orange-600);
  box-shadow: 0 0 0 0.6rem rgba(255, 122, 0, 0.10);
  animation: sparkle 3.2s ease-in-out infinite;
}

.spark-one {
  top: 12%;
  left: 7%;
}

.spark-two {
  top: 19%;
  right: 18%;
  width: 0.56rem;
  height: 0.56rem;
  background: var(--blue-500);
  box-shadow: 0 0 0 0.6rem rgba(42, 130, 255, 0.10);
  animation-delay: -1.1s;
}

.spark-three {
  left: 14%;
  bottom: 18%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: -2.2s;
}

.spark-four {
  right: 8%;
  bottom: 10%;
  width: 0.92rem;
  height: 0.92rem;
  background: var(--blue-500);
  box-shadow: 0 0 0 0.7rem rgba(42, 130, 255, 0.10);
  animation-delay: -1.7s;
}

.footer {
  color: rgba(13, 35, 79, 0.66);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

html[lang="ar"] .footer {
  font-family: var(--font-display-ar);
}

@keyframes contentEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(-1.2rem, -0.6rem, 0) scale(1);
  }
  to {
    transform: translate3d(1.4rem, 1rem, 0) scale(1.08);
  }
}

@keyframes rotateShape {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  to {
    transform: translate3d(1.1rem, -1.2rem, 0) rotate(3deg);
  }
}

@keyframes underlinePulse {
  0%, 100% {
    transform: scaleX(0.7);
    opacity: 0.42;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.88;
  }
}

@keyframes bounceTile {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.42rem) rotate(2deg);
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.7);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding: 16px 0;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    max-width: calc(100% - 112px);
  }

  .brand strong {
    font-size: clamp(1.18rem, 7vw, 1.72rem);
    line-height: 1.05;
  }

  html[lang="ar"] .brand strong {
    font-size: clamp(1rem, 5.5vw, 1.42rem);
    line-height: 1.55;
  }

  .lang-toggle {
    min-width: 96px;
    padding: 0.72rem 0.82rem;
  }

  .floating-word {
    display: none;
  }

  .page-main {
    min-height: 68svh;
    padding: clamp(4rem, 12vw, 6rem) 0;
  }

  .spark-one { top: 8%; left: 5%; }
  .spark-two { top: 16%; right: 7%; }
  .spark-three { left: 8%; bottom: 12%; }
  .spark-four { right: 10%; bottom: 7%; }

  .main-title {
    letter-spacing: -0.055em;
  }

  html[lang="ar"] .main-title {
    letter-spacing: -0.02em;
  }
}

.main-title .title-char,
.main-title .title-word {
  position: relative;
  display: inline-block;
  will-change: transform, color, filter;
  transform-origin: 50% 75%;
}

.main-title .title-word {
  white-space: nowrap;
}

.main-title .title-word-en {
  display: inline-flex;
}

.main-title .title-char:not(.title-space),
.main-title .title-word {
  cursor: default;
}

.main-title .title-char:not(.title-space)::after {
  content: "";
  position: absolute;
  width: 0.42em;
  height: 0.42em;
  left: 50%;
  bottom: -0.24em;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.52);
  opacity: 0;
  transform: translateX(-50%) scale(0.45);
  transition: opacity 240ms ease, transform 240ms ease;
}

.main-title .title-char:not(.title-space):hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.main-title .title-space {
  display: inline-block;
  width: 0.24em;
  flex: 0 0 0.24em;
}

html[lang="ar"] .main-title .title-word {
  padding: 0 0.045em 0.04em;
  border-radius: 0.18em;
  background-image: linear-gradient(110deg, currentColor 0%, currentColor 52%, rgba(255, 122, 0, 0.95) 58%, currentColor 66%, currentColor 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  transition: background-position 520ms ease, filter 520ms ease;
}

html[lang="ar"] .main-title .title-word:hover {
  background-position: 0 0;
  filter: drop-shadow(0 1.25rem 1.4rem rgba(255, 122, 0, 0.18));
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at var(--mx) var(--my), rgba(255, 122, 0, 0.18), transparent 0 16rem),
      radial-gradient(circle at 12% 16%, rgba(42, 130, 255, 0.18), transparent 0 17rem),
      radial-gradient(circle at 88% 84%, rgba(255, 179, 71, 0.20), transparent 0 17rem),
      linear-gradient(145deg, #f8fcff 0%, #eef5ff 52%, #fff4e3 100%);
  }

  .page-shell {
    width: min(100% - 26px, 1180px);
    padding: 18px 0 16px;
    gap: 14px;
  }

  .topbar {
    gap: 12px;
  }

  .brand {
    max-width: calc(100% - 104px);
  }

  .brand strong {
    font-size: clamp(1.04rem, 6.2vw, 1.54rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  html[lang="ar"] .brand strong {
    font-size: clamp(0.96rem, 4.9vw, 1.28rem);
    line-height: 1.6;
  }

  .lang-toggle {
    min-width: 92px;
    gap: 0.45rem;
    padding: 0.66rem 0.72rem;
    font-size: 0.82rem;
  }

  .lang-toggle svg {
    width: 1rem;
    height: 1rem;
  }

  .page-main {
    min-height: calc(100svh - 150px);
    padding: clamp(5.2rem, 19vw, 7rem) 0 clamp(5rem, 18vw, 6.6rem);
  }

  .hero-content {
    width: min(100%, 520px);
  }

  .hero-content::before {
    width: 15rem;
    height: 15rem;
    transform: translate(-62%, -58%);
  }

  .hero-content::after {
    width: 13rem;
    height: 13rem;
    transform: translate(-2%, -18%);
  }

  .eyebrow {
    max-width: 94%;
    margin-bottom: clamp(2.4rem, 10vw, 3.2rem);
    padding: 0.66rem 0.92rem;
    font-size: clamp(0.7rem, 3.15vw, 0.84rem);
    line-height: 1.55;
    letter-spacing: 0.035em;
  }

  html[lang="ar"] .eyebrow {
    max-width: 90%;
    font-size: clamp(0.78rem, 3.6vw, 0.94rem);
  }

  .main-title {
    width: 100%;
    max-width: 96vw;
    margin-bottom: clamp(2.55rem, 10vw, 3.5rem);
    font-size: clamp(3.15rem, 18vw, 5.25rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    overflow-wrap: normal;
  }

  html[lang="ar"] .main-title {
    max-width: 94vw;
    font-size: clamp(2.55rem, 12.8vw, 4.2rem);
    line-height: 1.38;
    letter-spacing: -0.012em;
  }

  .main-title::after {
    width: 54%;
    left: 23%;
    bottom: -0.31em;
  }

  .hero-text {
    max-width: 92%;
    font-size: clamp(0.92rem, 4vw, 1.06rem);
    line-height: 1.9;
  }

  html[lang="ar"] .hero-text {
    max-width: 90%;
    font-size: clamp(0.95rem, 4vw, 1.08rem);
    line-height: 2.05;
  }

  .spark {
    transform: scale(0.82);
  }

  .spark-one { top: 5%; left: 10%; }
  .spark-two { top: 10%; right: 12%; }
  .spark-three { left: 12%; bottom: 9%; }
  .spark-four { right: 13%; bottom: 4%; }

  .footer {
    font-size: 0.78rem;
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand strong {
    font-size: clamp(0.98rem, 6vw, 1.34rem);
  }

  html[lang="ar"] .brand strong {
    font-size: clamp(0.88rem, 4.7vw, 1.12rem);
  }

  .lang-toggle {
    min-width: 84px;
    padding: 0.58rem 0.62rem;
  }

  .lang-toggle span {
    font-size: 0.76rem;
  }

  .page-main {
    min-height: calc(100svh - 142px);
  }

  .main-title {
    font-size: clamp(2.78rem, 17vw, 4.35rem);
  }

  html[lang="ar"] .main-title {
    font-size: clamp(2.28rem, 12vw, 3.55rem);
  }
}
