:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --accent: #7c83ff;
  --accent-2: #6cff8f;
  --text: #f7f6ff;
  --muted: #bcb9d6;
  --icon: #4b4b59;
  --shadow: 0 18px 40px rgba(0, 0, 0, .28);
  --indicator-size: 66px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  font-family: Vazirmatn, Vazir, Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(124, 131, 255, .24), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(108, 255, 143, .12), transparent 24rem),
    var(--bg);
}

.page {
  width: min(100%, 680px);
  min-height: 140vh;
  margin: 0 auto;
  padding: 40px 18px 130px;
}

.hero {
  padding: 42px 10px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(28px, 9vw, 46px);
  line-height: 1.25;
}

.hero p,
.content-card p {
  color: var(--muted);
  line-height: 1.9;
}

.content-card {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}

.content-card.muted {
  opacity: .82;
}

.mobile-footer-nav {
  position: fixed;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 0 14px;
  pointer-events: none;
}

.navigation {
  --active-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--nav-items, 5), 1fr);
  align-items: center;
  width: min(420px, 100%);
  height: 74px;
  padding: 0 6px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  direction: ltr;
  pointer-events: auto;
}

.indicator {
  position: absolute;
  top: -27px;
  left: calc(((var(--active-index) + 0.5) * 100%) / var(--nav-items, 5));
  width: var(--indicator-size);
  height: var(--indicator-size);
  border: 7px solid var(--bg);
  border-radius: 50%;
  background: var(--panel);
  box-shadow:
    0 0 0 4px rgba(124, 131, 255, .46) inset,
    0 14px 22px rgba(0, 0, 0, .26);
  transform: translateX(-50%);
  transition: none;
}

.navigation.is-ready .indicator {
  transition:
    left .48s cubic-bezier(.68, -.55, .27, 1.55),
    box-shadow .35s ease;
}

.indicator::before,
.indicator::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 18px;
  height: 18px;
  background: transparent;
}

.indicator::before {
  left: -23px;
  border-top-right-radius: 18px;
  box-shadow: 7px -7px 0 0 var(--bg);
}

.indicator::after {
  right: -23px;
  border-top-left-radius: 18px;
  box-shadow: -7px -7px 0 0 var(--bg);
}

.nav-link {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 74px;
  color: var(--icon);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transition: none;
}

.navigation.is-ready .icon {
  transition:
    transform .45s cubic-bezier(.68, -.55, .27, 1.55),
    color .25s ease,
    opacity .25s ease;
}

.icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  position: absolute;
  bottom: 8px;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: none;
  white-space: nowrap;
}

.navigation.is-ready .label {
  transition: opacity .25s ease, transform .35s ease;
}

.nav-link.is-active .icon {
  color: var(--accent);
  transform: translateY(-27px) scale(1.05);
}

.nav-link.is-active .label {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .mobile-footer-nav {
    display: none;
  }

  .page {
    padding-bottom: 60px;
  }
}

@media (max-width: 360px) {
  :root {
    --indicator-size: 58px;
  }

  .navigation {
    height: 68px;
    border-radius: 20px;
  }

  .indicator {
    top: -24px;
    border-width: 6px;
  }
}


.mobile-footer-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}

.mobile-footer-nav .nav-link .label {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  opacity: 0.75;
  transition: font-weight 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  padding: 8px;
}

.mobile-footer-nav .nav-link.active .label,
.mobile-footer-nav .nav-link.is-active .label,
.mobile-footer-nav .nav-link[aria-current="page"] .label {
  font-weight: 700;
  opacity: 1;
  transform: translateY(-1px);
}
