@font-face {
  font-family: IranianSans;
  src: url("/assets/IranianSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050407;
  --graphite: #100d11;
  --wine: #351018;
  --red: #e94b5f;
  --red-soft: #ff7a89;
  --mint: #42d68c;
  --text: #f8f0f2;
  --muted: rgba(248, 240, 242, 0.74);
  --faint: rgba(248, 240, 242, 0.48);
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  margin: 0;
  font-family: IranianSans, Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(233, 75, 95, 0.22), transparent 32rem),
    radial-gradient(circle at 78% 85%, rgba(66, 214, 140, 0.12), transparent 26rem),
    linear-gradient(145deg, #050407 0%, #11090d 42%, #080608 100%);
  overflow-x: hidden;
}

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

.landing-shell {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  padding: clamp(16px, 2.6vw, 34px);
  isolation: isolate;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(16, 13, 17, 0.66);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.brand-chip {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #050407;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-link,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}

.login-link {
  padding: 0 22px;
  color: #04120b;
  background: var(--mint);
  box-shadow: 0 16px 38px rgba(66, 214, 140, 0.18);
}

.login-link:hover,
.primary-action:hover {
  transform: translateY(-2px);
}

.login-link:focus-visible,
.primary-action:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  max-width: 1180px;
  width: 100%;
  min-height: calc(100dvh - 112px);
  margin: 0 auto;
}

.hero-copy {
  direction: rtl;
  min-width: 0;
  max-width: 560px;
  padding-top: 18px;
}

.kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(233, 75, 95, 0.32);
  border-radius: 999px;
  color: var(--red-soft);
  background: rgba(233, 75, 95, 0.1);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 7.8em;
  margin: 0;
  font-size: clamp(44px, 6.8vw, 88px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-action {
  min-width: 172px;
  min-height: 58px;
  padding: 0 32px;
  color: #04120b;
  background: var(--mint);
  box-shadow: 0 22px 54px rgba(66, 214, 140, 0.22);
}

.availability {
  color: var(--faint);
  font-size: 13px;
}

.map-stage {
  position: relative;
  direction: rtl;
  min-height: min(540px, 62dvh);
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.09), transparent 13rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
}

.map-stage::before {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
}

.orbit-grid {
  position: absolute;
  inset: 9%;
  animation: mapFloat 12s var(--ease) infinite alternate;
}

.route {
  position: absolute;
  border: 1px solid rgba(248, 240, 242, 0.18);
  border-radius: 48% 52% 45% 55%;
}

.route-one {
  inset: 12% 22% 16% 18%;
  transform: rotate(-18deg);
}

.route-two {
  inset: 22% 10% 24% 38%;
  transform: rotate(28deg);
}

.route-three {
  inset: 5% 36% 8% 38%;
  transform: rotate(3deg);
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.72), 0 0 42px rgba(233, 75, 95, 0.24);
  animation: pulse 4.4s ease-in-out infinite;
}

.node-a { top: 18%; right: 22%; animation-delay: -0.4s; }
.node-b { top: 28%; right: 54%; animation-delay: -1.2s; }
.node-c { top: 43%; right: 31%; animation-delay: -2.1s; }
.node-d { top: 62%; right: 64%; animation-delay: -0.8s; }
.node-e { top: 72%; right: 22%; animation-delay: -2.8s; }
.node-f { top: 20%; right: 76%; animation-delay: -1.7s; }
.node-g { top: 50%; right: 78%; animation-delay: -3.2s; }
.node-h { top: 76%; right: 49%; animation-delay: -2.4s; }
.node-i { top: 36%; right: 12%; animation-delay: -1s; }

.app-entry-shell {
  direction: rtl;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.app-entry-shell img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.app-entry-shell h1 {
  max-width: 12em;
  font-size: clamp(30px, 8vw, 56px);
}

.app-entry-shell p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.86);
    opacity: 0.55;
  }
  45% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes mapFloat {
  from {
    transform: translate3d(-8px, 10px, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(10px, -12px, 0) rotate(1deg);
  }
}

@media (max-width: 840px) {
  .landing-shell {
    padding: 14px;
  }

  .topbar {
    width: 100%;
    max-width: 362px;
    margin-right: auto;
    margin-left: 0;
    border-radius: 24px;
  }

  .ghost-link {
    display: none;
  }

  .hero {
    width: 100%;
    max-width: 362px;
    margin-right: auto;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 34px 0 12px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(44px, 14vw, 58px);
    line-height: 1.14;
    text-align: center;
    overflow-wrap: break-word;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 24px;
  }

  .primary-action {
    width: 100%;
  }

  .map-stage {
    width: 100%;
    max-width: calc(100vw - 28px);
    min-height: 330px;
    border-radius: 34px;
  }
}

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