/* Safar-X Landing Page — organized production stylesheet */

/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "JF Flat";
  src: url("../fonts/JF-Flat-Regular.woff2") format("woff2"),
       url("../fonts/JF-Flat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Somar Sans";
  src: url("../fonts/SomarSans-Regular.woff2") format("woff2"),
       url("../fonts/SomarSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Somar Sans";
  src: url("../fonts/SomarSans-Medium.woff2") format("woff2"),
       url("../fonts/SomarSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Somar Sans";
  src: url("../fonts/SomarSans-Bold.woff2") format("woff2"),
       url("../fonts/SomarSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Design tokens
   ========================= */
:root {
  --brand-primary: #044155;
  --brand-secondary: #FE6E56;
  --brand-soft: #EBEEF2;
  --ink: #111111;
  --muted: #66787b;
  --line: #e3eaeb;
  --white: #ffffff;
  --container: 1180px;
  --radius-lg: 22px;
  --shadow: 0 18px 52px rgba(4, 65, 85, .08);
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "JF Flat", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: "Somar Sans", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.skip-link:focus {
  top: 12px;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--brand-primary);
  border-bottom: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-115%);
  transition: transform .26s ease, opacity .22s ease, visibility .22s ease,
    background-color .22s ease, box-shadow .22s ease;
}

.site-header.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header.is-scrolled {
  background: var(--white);
  border-bottom: 1px solid rgba(4, 65, 85, .08);
  box-shadow: 0 6px 18px rgba(4, 65, 85, .05);
}

.header-inner {
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 200px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav > a:not(.mobile-nav-login) {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: color .2s ease;
}

.main-nav > a:not(.mobile-nav-login)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 14px;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: var(--brand-secondary);
  opacity: 0;
  transform: scaleX(.84);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav > a:not(.mobile-nav-login):hover::after,
.main-nav > a:not(.mobile-nav-login).is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header.is-scrolled .main-nav > a:not(.mobile-nav-login),
.site-header.is-scrolled .language-switch {
  color: var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: "Somar Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.brand-button {
  background: var(--brand-secondary);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(254, 110, 86, .22);
  transition: transform .22s ease, box-shadow .22s ease;
}

.brand-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(254, 110, 86, .30);
}

.login-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.login-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

html[dir="rtl"] .login-icon {
  transform: scaleX(-1);
}

.mobile-nav-login {
  display: none;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--brand-secondary);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(254, 110, 86, .24);
}

.menu-icon {
  width: 21px;
  height: 21px;
  display: block;
  margin: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  overflow: visible;
  padding: 106px 0 108px;
  border-radius: 0 0 46px 46px;
  background: var(--brand-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  align-items: center;
  gap: 34px;
  /* Intentional: center hero content visually in the hero itself,
     independent of the overlaid header. */
  transform: translateY(18px);
}

.hero-copy {
  max-width: 610px;
}

.hero-badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--white);
  color: var(--brand-primary);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.70;
  letter-spacing: -.018em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.primary-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-visual > img {
  width: 100%;
  max-width: 660px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .22));
}

/* Two-part hero scroll button: both layers are solid and shadow-free. */
.hero-scroll-fab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: none;
  transform: translateY(50%);
}

.hero-scroll-fab::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: none;
}

.hero-scroll-icon {
  position: relative;
  z-index: 1;
  width: auto;
  height: 21px;
  color: var(--brand-primary);
}

/* =========================
   Section headings
   ========================= */
.section-heading,
.workflow-intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-secondary);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.section-heading h2,
.workflow-intro h2 {
  margin: 0;
  color: #0b0b0b;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.section-heading p,
.workflow-intro p {
  max-width: 650px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13.25px;
  line-height: 1.85;
}

/* Branded title underline pattern. User-positioned offset is preserved. */
.pattern-word {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.pattern-word::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 148%;
  height: 26px;
  background: url("../images/Safar-X-Logo-With-Tagline.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

html[dir="rtl"] .pattern-word::after {
  left: 20%;
  right: auto;
  transform: translateX(-50%);
}

html[dir="ltr"] .pattern-word::after {
  left: auto;
  right: 20%;
  transform: translateX(50%) scaleX(-1);
}

.workflow .pattern-word::after {
  z-index: 0;
}

/* =========================
   Services + Features cards
   ========================= */
.services,
.features {
  padding: 92px 0 100px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 15px 38px rgba(4, 65, 85, .05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.info-card:hover {
  border-color: rgba(4, 65, 85, .20);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(4, 65, 85, .08);
  color: var(--brand-primary);
}

.card-icon-svg {
  width: auto;
  height: 21px;
}

.info-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.82;
}

/* =========================
   Workflow
   ========================= */
.workflow {
  padding: 92px 0 96px;
  background: var(--brand-primary);
}


.workflow-intro h2 {
  color: var(--white);
}

.workflow-intro p {
  color: rgba(255, 255, 255, .72);
}

.workflow-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.workflow-step {
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.workflow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.workflow-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.workflow-step h3 {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.workflow-step p {
  max-width: 220px;
  margin: 9px auto 0;
  color: rgba(255, 255, 255, .70);
  font-size: 11.5px;
  line-height: 1.8;
}

.workflow-arrow {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: -4px;
}

.workflow-arrow img {
  width: 34px;
  height: 66px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

html[dir="rtl"] .workflow-arrow img {
  transform: scaleX(-1);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--brand-primary);
  color: var(--white);
  font-family: inherit;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}


.site-footer p,
.footer-credit a {
  margin: 0;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.footer-credit a {
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--white);
  opacity: .86;
}

/* =========================
   Reveal motion
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease var(--delay, 0ms), transform .55s ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="ltr"] .hero-copy {
  text-align: left;
}

/* =========================
   Tablet / phone navigation
   ========================= */
@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    width: 165px;
    flex: 0 0 auto;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 10px;
    margin-inline-start: auto;
  }

  .header-actions > .login-btn {
    display: none;
  }

  .menu-btn {
    flex: 0 0 42px;
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    width: min(420px, calc(100vw - 30px));
    height: auto;
    display: grid;
    gap: 5px;
    margin-inline: auto;
    padding: 12px;
    border: 1px solid rgba(4, 65, 85, .10);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(4, 65, 85, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-9px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > a:not(.mobile-nav-login) {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 11px;
    color: #264c52 !important;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
  }

  .main-nav > a:not(.mobile-nav-login)::after {
    display: none;
  }

  .main-nav > a:not(.mobile-nav-login):hover,
  .main-nav > a:not(.mobile-nav-login).is-active {
    background: #f4f7f7;
    color: var(--brand-primary) !important;
  }

  .main-nav .mobile-nav-login {
    min-height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 5px;
    padding: 0 15px;
    border-radius: 12px;
    background: var(--brand-secondary);
    color: var(--white);
    box-shadow: none;
  }

  .hero {
    padding: 94px 0 96px;
    border-radius: 0 0 38px 38px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    transform: translateY(12px);
  }

  .hero-copy {
    max-width: 690px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-badge,
  .hero h1 {
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(18px, 4.5vw, 25px);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 690px);
    margin: 4px auto 0;
  }

  .hero-visual > img {
    max-width: 610px;
  }

  .hero-scroll-fab {
    width: 90px;
    height: 90px;
  }

  .hero-scroll-fab::before {
    inset: 11px;
  }

  .services,
  .features {
    padding: 78px 0 86px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading h2,
  .workflow-intro h2 {
    font-size: 21px;
  }

  .workflow {
    padding: 78px 0 82px;
  }

  .workflow-path {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workflow-step {
    padding: 0 18px;
  }

  .workflow-step p {
    max-width: 420px;
  }

  .workflow-arrow {
    margin: -8px auto;
  }

  html[dir="rtl"] .workflow-arrow img,
  html[dir="ltr"] .workflow-arrow img {
    transform: rotate(90deg);
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    height: 68px;
    gap: 8px;
  }

  .brand {
    width: 138px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    padding-inline: 2px;
    font-size: 13px;
  }

  .menu-btn {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 11px;
  }

  .menu-icon {
    width: 20px;
    height: 20px;
  }

  .main-nav {
    top: 76px;
    width: min(390px, calc(100vw - 24px));
  }


  .hero {
    padding: 86px 0;
    border-radius: 0 0 30px 30px;
  }

  .hero-grid {
    gap: 14px;
    transform: translateY(8px);
  }

  .hero-badge {
    font-size: 11.75px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .primary-btn {
    min-height: 48px;
  }

  .hero-visual > img {
    max-width: 540px;
  }

  .hero-scroll-fab {
    width: 82px;
    height: 82px;
  }

  .hero-scroll-fab::before {
    inset: 10px;
  }

  .hero-scroll-icon {
    height: 19px;
  }

  .section-kicker {
    font-size: 12.5px;
  }

  .section-heading h2,
  .workflow-intro h2 {
    font-size: 20px;
  }

  .section-heading p,
  .workflow-intro p {
    font-size: 12.5px;
  }

  .pattern-word::after {
    bottom: -12px;
    width: 136%;
    height: 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-card {
    min-height: 190px;
    padding: 21px;
  }

  .card-icon {
    margin-bottom: 18px;
  }

  .workflow-icon img {
    width: 58px;
    height: 58px;
  }

  .workflow-arrow img {
    width: 32px;
    height: 62px;
  }

  .workflow-step h3 {
    font-size: 15.5px;
  }

  .footer-inner {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-block: 16px;
    text-align: center;
  }

  .site-footer p,
  .footer-credit a {
    font-size: 11.5px;
  }
}

/* =========================
   Reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* SAFAR-X LANDING SCROLLBAR START */

/*
|--------------------------------------------------------------------------
| Safar-X landing unified square scrollbar
|--------------------------------------------------------------------------
| Same design as the Safar-X system scrollbar.
| Fixed landing identity color: #044155
*/

::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
    -webkit-appearance: none !important;
}

::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

::-webkit-scrollbar-thumb {
    min-width: 10px !important;
    min-height: 32px !important;

    background-color: #044155 !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
    background-color: #044155 !important;
    background-image: none !important;
    border-radius: 0 !important;
}

::-webkit-scrollbar-corner {
    background: #f0f0f0 !important;
    border-radius: 0 !important;
}

/*
|--------------------------------------------------------------------------
| Remove Chromium scrollbar arrow buttons
|--------------------------------------------------------------------------
*/

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:double-button,
::-webkit-scrollbar-button:vertical,
::-webkit-scrollbar-button:horizontal,
::-webkit-scrollbar-button:vertical:start,
::-webkit-scrollbar-button:vertical:end,
::-webkit-scrollbar-button:horizontal:start,
::-webkit-scrollbar-button:horizontal:end,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
    display: none !important;

    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;

    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    -webkit-appearance: none !important;
}

/*
|--------------------------------------------------------------------------
| Firefox fallback
|--------------------------------------------------------------------------
*/

@-moz-document url-prefix() {
    * {
        scrollbar-width: auto;
        scrollbar-color: #044155 #f0f0f0;
    }
}

/* SAFAR-X LANDING SCROLLBAR END */
