:root {
  --home-navy: #0b1f4a;
  --home-navy-dark: #071536;
  --home-blue: #2f6fe0;
  --home-blue-soft: #4ea0ff;
  --home-text: #12203a;
  --home-muted: #6b7a90;
  --home-bg: #f4f7fc;
  --home-card: #ffffff;
  --home-input: #f3f6fb;
  --home-line: #e4e9f0;
  --home-success: #1f7a4d;
  --home-success-bg: #e8f6ee;
  --home-error: #b42318;
  --home-error-bg: #fdecec;
  --home-shadow: 0 24px 60px rgba(11, 31, 74, 0.12);
  --home-wrap: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

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

.home-body {
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: Pelak, Vazir, sans-serif;
}

.home-wrap {
  width: var(--home-wrap);
  margin: 0 auto;
}

.home-landing,
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  background: var(--home-navy);
  color: #fff;
}

.home-hero-band .home-header {
  background: transparent;
}

.home-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.home-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.home-brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #fff;
}

.home-brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

img.home-brand__logo {
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.home-header__title {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.home-nav {
  flex: 1;
}

.home-nav__list,
.home-footer__list,
.home-menu__children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-nav__list {
  justify-content: center;
}

.home-nav__list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.home-nav__list a:hover {
  color: #fff;
}

.home-nav__list > li.has-children {
  position: relative;
}

.home-nav__list > li.has-children > .home-menu__children {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--home-shadow);
  z-index: 8;
  flex-direction: column;
  gap: 4px;
}

.home-nav__list > li.has-children > .home-menu__children a {
  color: var(--home-navy);
  padding: 8px 10px;
  border-radius: 8px;
}

.home-nav__list > li.has-children > .home-menu__children a:hover {
  background: #f3f6fb;
}

.home-nav__list > li.has-children:hover > .home-menu__children,
.home-nav__list > li.has-children:focus-within > .home-menu__children {
  display: flex;
}

.home-header__login {
  flex-shrink: 0;
  background: #fff;
  color: var(--home-navy);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-header__login:hover {
  background: #e8f0fe;
}

.home-header__login--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.home-header__login--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

button.home-header__login {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.home-hero-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(78, 160, 255, 0.28), transparent 28%),
    linear-gradient(180deg, #0b1f4a 0%, #10275c 58%, #16306e 100%);
  color: #fff;
  padding-bottom: 120px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 36px 0 20px;
}

.home-hero.home-auth {
  display: block;
  text-align: center;
  padding: 48px 0 8px;
  color: var(--home-navy);
}

.home-hero__copy {
  max-width: 560px;
}

.home-kicker {
  margin: 0 0 12px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 700;
}

.home-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.45;
}

.home-hero-band .home-title,
.home-hero-band .home-subtitle {
  color: #fff;
}

.home-subtitle {
  margin: 0 0 28px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 2;
}

.home-hero.home-auth .home-title {
  font-size: 32px;
}

.home-hero.home-auth .home-subtitle {
  margin: 0 auto;
  color: var(--home-muted);
}

.home-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.home-highlights__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-blue-soft);
}

.home-highlights__icon svg {
  width: 18px;
  height: 18px;
}

.home-hero__visual {
  display: block;
  min-height: 360px;
}

.home-hero__visual--slider {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  background: #071536;
}

.home-scene {
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.home-slider,
.home-slider__viewport {
  width: 100%;
}

.home-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 320px;
  overflow: hidden;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.home-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.home-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.home-slider__dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.home-slider__dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.home-form-band {
  margin-top: -88px;
  padding-bottom: 24px;
}

.home-form-card {
  background: var(--home-card);
  border-radius: 28px;
  box-shadow: var(--home-shadow);
  padding: 36px 40px 32px;
}

.home-form-card__intro {
  text-align: center;
  margin-bottom: 24px;
}

.home-form-card__intro h2 {
  margin: 0 0 8px;
  color: var(--home-navy);
  font-size: 24px;
  font-weight: 800;
}

.home-form-card__intro p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
}

.home-alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.9;
}

.home-alert p {
  margin: 0;
}

.home-alert p + p {
  margin-top: 4px;
}

.home-alert--success {
  background: var(--home-success-bg);
  color: var(--home-success);
}

.home-alert--error {
  background: var(--home-error-bg);
  color: var(--home-error);
}

.home-alert--ok {
  background: var(--home-success-bg);
  color: var(--home-success);
}

.home-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.home-tab {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-navy);
  border-radius: 16px;
  padding: 16px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.home-tab__icon {
  width: 22px;
  height: 22px;
}

.home-tab__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-tab.is-active {
  background: var(--home-navy);
  border-color: var(--home-navy);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 31, 74, 0.22);
}

.home-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.home-form--auth {
  grid-template-columns: 1fr;
}

.home-field {
  display: grid;
  gap: 8px;
}

.home-field--wide,
.home-submit,
.home-secure {
  grid-column: 1 / -1;
}

.home-field__label {
  font-size: 13px;
  color: var(--home-text);
  font-weight: 700;
}

.home-field__control {
  position: relative;
  display: block;
}

.home-field__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--home-blue);
  pointer-events: none;
}

.home-field__icon--top {
  top: 18px;
  transform: none;
}

.home-field__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-field input,
.home-field textarea {
  width: 100%;
  border: 1px solid transparent;
  background: var(--home-input);
  border-radius: 14px;
  color: var(--home-text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 14px 48px 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.9;
}

.home-field input::placeholder,
.home-field textarea::placeholder {
  color: #98a4b7;
}

.home-field input:focus,
.home-field textarea:focus {
  background: #fff;
  border-color: #c5d4ea;
  box-shadow: 0 0 0 4px rgba(47, 111, 224, 0.12);
}

.home-submit {
  width: 100%;
  margin-top: 6px;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--home-navy);
  color: #fff;
  border-radius: 16px;
  padding: 16px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.home-submit svg {
  width: 18px;
  height: 18px;
}

.home-submit:hover {
  background: var(--home-navy-dark);
}

.home-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.home-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-secure svg {
  width: 16px;
  height: 16px;
}

.home-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.home-section-head h2 {
  margin: 0 0 8px;
  color: var(--home-navy);
  font-size: 28px;
  font-weight: 800;
}

.home-section-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
}

.home-why {
  padding: 48px 0 16px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-feature {
  background: var(--home-card);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(11, 31, 74, 0.06);
  padding: 28px 20px 24px;
  text-align: center;
}

.home-feature__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d7e4f8;
  background: #eef4ff;
  color: var(--home-navy);
}

.home-feature__icon img,
.home-feature__icon svg {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.home-feature__title {
  margin: 0 0 8px;
  color: var(--home-navy);
  font-size: 16px;
  font-weight: 800;
}

.home-feature__text {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 2;
}

.home-faqs {
  padding: 32px 0 64px;
}

.home-faqs__list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.home-faq {
  background: var(--home-card);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  padding: 14px 18px;
}

.home-faq__question {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--home-navy);
}

.home-faq__question::-webkit-details-marker {
  display: none;
}

.home-faq__answer {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--home-muted);
  white-space: pre-line;
}

.home-page--auth,
.home-page--cms {
  background: var(--home-bg);
}

.home-auth-main {
  width: min(560px, calc(100% - 32px));
  flex: 1;
  padding-bottom: 48px;
}

.home-page--cms > .home-wrap {
  flex: 1;
  padding: 36px 0 64px;
}

.home-cms {
  background: var(--home-card);
  border-radius: 24px;
  box-shadow: var(--home-shadow);
  padding: 36px 40px 40px;
}

.home-cms__title {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.5;
}

.home-cms__body {
  font-size: 15px;
  line-height: 2;
  color: var(--home-text);
}

.home-cms__body p {
  margin: 0 0 14px;
}

.home-cms__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.home-cms__body a {
  color: var(--home-blue);
}

.home-login-choice {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.home-login-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--home-card);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(11, 31, 74, 0.12);
}

.home-login-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--home-navy);
}

.home-login-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.home-login-card__body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.home-login-card__title {
  color: var(--home-navy);
  font-size: 16px;
  font-weight: 800;
}

.home-login-card__text {
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.8;
}

.home-login-card__arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--home-blue);
}

.home-login-card__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-auth-switch {
  display: block;
  margin: 18px 0 0;
  text-align: center;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-auth-switch:hover {
  color: var(--home-navy);
}

.home-otp {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  margin-bottom: 8px;
}

.home-otp input {
  width: 48px;
  height: 56px;
  padding: 0 !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--home-input);
  border-radius: 14px;
  color: var(--home-text);
  outline: none;
}

.home-otp input:focus {
  background: #fff;
  border-color: #c5d4ea;
  box-shadow: 0 0 0 4px rgba(47, 111, 224, 0.12);
}

.home-auth-text-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--home-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.home-auth-text-btn:disabled {
  color: var(--home-muted);
  cursor: not-allowed;
}

.home-dash-card {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.home-footer {
  margin-top: auto;
  background: var(--home-navy);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 48px;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 40px;
  padding-bottom: 36px;
}

.home-footer__brand p {
  margin: 14px 0 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.home-footer__contact {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}

.home-footer__col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.home-footer__list {
  flex-direction: column;
  gap: 10px;
}

.home-footer__list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.home-footer__list a:hover {
  color: #fff;
}

.home-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer__bar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
}

.home-footer__bar p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero__copy {
    max-width: none;
  }

  .home-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .home-highlights {
    justify-content: center;
  }

  .home-features {
    grid-template-columns: 1fr 1fr;
  }

  .home-header__inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-nav {
    order: 3;
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --home-wrap: min(100% - 24px, 1180px);
  }

  .home-form {
    grid-template-columns: 1fr;
  }

  .home-form-card {
    padding: 24px 18px 22px;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  .home-hero-band {
    padding-bottom: 88px;
  }

  .home-title {
    font-size: 30px;
  }
}
